After much searching I found a great and simple article on how to configure postfix to relay mail through your "official" ISP account via authenticated SMTP on an alternate port.
I have replicated the info here because it's so useful that I don't want to lose it if that link ever goes dead.
- Call your ISP and get your email credentials for SMTP. Typically you'll need the SMTP server, username, password, and port number.
- Edit /etc/postfix/main.cf:
relayhost = [smtp.comcast.net]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = - Create dir /etc/postfix/sasl if needed then edit file /etc/postfix/sasl/passwd:
smtp.comcast.net myusername:mypassword - Fix permissions:
chown root:root /etc/postfix/sasl/passwd;
chmod 600 /etc/postfix/sasl/passwd
postmap /etc/postfix/sasl/passwd
postfix reload
That's it! Blissfully perfect sendmail from now on.
0 comments:
Post a Comment