Hello,
I'm building postfix/dovecot mail server on debian squeeze. Almost
Everything is working fine:
when I'm sending mail from my domain, localhost, to external recipients
it works fine but when I'm trying to send from home (my isp domain) I
get
May 28 11:00:18 badger postfix/smtpd[19869]: connect from
MYISPDOMAINHOST[10.10.10.10]
May 28 11:00:18 badger postfix/smtpd[19869]: NOQUEUE: reject: RCPT from
MYISPDOMAINHOST[10.10.10.10.]: 554 5.7.1 <some.u...@gmail.com>: Relay
access denied; from=<freddie.kru...@my.example.com>
to=<some.u...@gmail.com> proto=ESMTP helo=<[192.168.1.2]>
dovecot authentication is fine:
dovecot logs:
2011-05-28 11:00:18 auth(default): Info: new auth connection: pid=19954
2011-05-28 11:00:18 auth(default): Info: client in:
AUTH 2 CRAM-MD5 service=smtp nologin lip=MY_SERVERPUBLIC_IP rip=10.10.10.10 secured
2011-05-28 11:00:18 auth(default): Info: client out:
CONT 2 PDg0NTA5NzMwNjk4MzM1NzMuMTMwNjU3NzcwN0BiYWRnZXI+
2011-05-28 11:00:18 auth(default): Info: client in:
CONT 2 d29qY2llY2ggZWM4YzY5MmY1ZjQ0NTI5NjBlMWMxMzUyZDk4Mzg4ZjU=
2011-05-28 11:00:18 auth(default): Info: password(freedie,10.10.10.10):
passdb doesn't support credential lookups
2011-05-28 11:00:18 auth(default): Info:
passwd-file(freedie,10.10.10.10): lookup: user=freedie
file=/etc/dovecot/passwd
2011-05-28 11:00:18 auth(default): Info: password(freedie,10.10.10.10):
Credentials:
4da9285a97ecc9a226764b2dbc079abc7ecede8a764d5a2416424ee32b2114dc
2011-05-28 11:00:18 auth(default): Info: client out: OK 2 user=freedie
my main.cnf
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# sending out
relayhost = main_parent_domain_gateway
# appending .domain is the MUA's job.
append_dot_mydomain = no
readme_directory = no
# TLS parameters
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_security_level = may
smtpd_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/servercrt.pem
smtpd_tls_key_file = /etc/postfix/ssl/serverkey.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database =
btree:${data_directory}/smtpd_scache
smtpd_tls_auth_only = yes
tls_random_source = dev:/dev/urandom
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
myhostname = badger.$mydomain
mydomain = my.example.com
mydestination = $mydomain, $myhostname, localhost,
localhost.$mydomain
myorigin = $mydomain
mynetworks = 127.0.0.0/8, 192.168.255.0/24, 192.168.245.0/24,
192.168.235.0/24, 192.168.225.0/24, 192.168.195.0/24, 192.168.185.0/24,
192.168.175.0/24, 192.168.165.0/24
alias_maps = hash:/etc/aliases, hash:/etc/postfix/mailinglists
canonical_maps = hash:/etc/postfix/canonical
smtp_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
strict_rfc821_envelopes = yes
content_filter = amavisd:[127.0.0.1]:10024
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
# smtpd_sasl_local_domain = $myhostname
smtpd_sasl_local_domain = $mydomain
home_mailbox = Maildir/
mailbox_command = /usr/lib/dovecot/deliver -a "${RECIPIENT}"
I have tried thunderbird, evolution. so it is not a problem with client
(some suggested that authentication is off).
for any help thanks in advance
Wojciech