Postfix Config Problem W/ Tls

Home » CentOS » Postfix Config Problem W/ Tls
CentOS 1 Comment

I have followed the guides on setting up postfix relay to my account at network solutions.

I added these to main.cf:

inet_interfaces = localhost

relayhost = [mail.mydomain.com]:587

smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_password smtp_use_tls = yes smtp_tls_CAfile = /etc/pki/tls/certs/sendmail.pem

The username and password are correct, and all these options work fine from thunderbird on a windows box in my local network.

I get no errors on postfix restart, but when I try to send an email from the CentOS box, I get this:

Apr 26 17:00:33 host postfix/smtp[10627]: C9C1D80075:
to=, relay=mail.mydomain.com[xxx.xxx.xxx.xxx]:587, delay=0.87, delays=0.08/0.02/0.72/0.04, dsn=5.0.0, status=bounced (host mail.mydomain.com[xxx.xxx.xxx.xxx] said: 503 you must authenticate first
(#5.5.1) (in reply to MAIL FROM command))

Why is tls not authenticating?

Under CentOS 5 I used sendmail, and it all worked just fine.

-chuck

One thought on - Postfix Config Problem W/ Tls

  • I changed my sasl_password file to look like this:

    [mail.mydomain.com]:587 user@mydomain.com:password

    then did postmap hash:/etc/postfix/sasl_password

    It appears taking the <> from around user@mydomain.com:password has fixed the problem.

    Also remembering to do

    postmap hash:/etc/postfix/sasl_password

    instead of

    postmap /etc/postfix/sasl_password

    thanks,

    -chuck