On 10/19/2009 10:03 PM, Michael Jean wrote:
Hello,

I have a problem with postfix. It is installed on a host in my small
home lan behind a router. My ISP is rogers. I have 3 external email
addresses I am testing to/from, one of them being m...@rogers.com, the
others m...@somewhere.ca and m...@somewhereelse.ca. My local domain is
mydomain.ca so I am trying to send from m...@mydomain.

I can receive mail for m...@mydomain.ca from each of these accounts no
problem but I can only send mail successfully from this account to
m...@rogers.com.

mymailhost:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname localhost.$mydomain localhost $mydomain
mydomain = mydomain.ca
myhostname = mymailhost.mydomain.ca
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = $mydomain
notify_classes = bounce,delay,policy,protocol,resource,software
relay_domains =
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions = permit_sasl_authenticated permit_mynetworks
smtpd_recipient_restrictions = permit_sasl_authenticated
permit_mynetworks reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/toots-cert.pem
smtpd_tls_key_file = /etc/postfix/toots-key.pem
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom

mail.log:
Oct 14 23:31:16 mymailhost postfix/smtp[9166]: 5F01426400:
to=<m...@somewhere.ca>, relay=none, delay=60, delays=0.04/0.02/60/0,
dsn=4.4.1, status=deferred (connect to
filter.somewhere.ca[ipaddress]:25: Connection timed out)

Oct 14 23:31:51 mymailhost postfix/smtp[9188]: 7EFCE26403:
to=<m...@somewhereelse.ca>, relay=none, delay=60, delays=0.03/0.01/60/0,
dsn=4.4.1, status=deferred (connect to
mail.somewhereelse.ca[ipaddress]:25: Connection timed out)

Oct 14 23:31:36 mymailhost postfix/smtp[9178]: 164E126402:
to=<m...@rogers.com>, relay=mx2.rog.mail.yahoo.com[206.190.37.7]:25,
delay=60, delays=0.03/0.01/60/0.14, dsn=2.0.0, status=sent (250 ok
dirdel)

Looks as if your ISP is blocking outbound port 25 connections.


I attempted to use relayhost=[smtp.broadband.rogers.com] in main.cf

with sasl_passwd:
[smtp.broadband.rogers.com] me:myrogerspassword

Yes, the solution you describe is correct. Maybe you fat-fingered something -- it's hard for us to tell without any evidence.


then postmap sasl_passwd and reload and send new test messages but then
mail no longer is delivered to m...@rogers.com (or the others).



Debug from that point on. What's logged here? Is postfix connecting to the correct IP? correct credentials? Is postfix built with SASL client support?

http://www.postfix.org/SASL_README.html#client_sasl
http://www.postfix.org/DEBUG_README.html

If you need more help, show unobfuscated "postconf -n" configuration (other than username/password) and logging.

  -- Noel Jones

Reply via email to