On 4/26/2018 5:14 PM, Chuck Campbell wrote:
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=<campbell@xxxxxxxxxxxxxx>,
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
I changed my sasl_password file to look like this:
[mail.mydomain.com]:587 user@xxxxxxxxxxxx:password
then did postmap hash:/etc/postfix/sasl_password
It appears taking the <> from around user@xxxxxxxxxxxx:password has
fixed the problem.
Also remembering to do
postmap hash:/etc/postfix/sasl_password
instead of
postmap /etc/postfix/sasl_password
thanks,
-chuck
--
ACCEL Services, Inc.| Specialists in Gravity, Magnetics | (713)993-0671 ph.
| and Integrated Interpretation | (713)993-0608 fax
448 W. 19th St. #325| Since 1992 | (713)306-5794 cell
Houston, TX, 77008 | Chuck Campbell | campbell@xxxxxxxxxxxx
| President & Senior Geoscientist |
"Integration means more than having all the maps at the same scale!"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos