Using Postfix as SMTP client with AUTH
Sep 27
I am using Postfix 2.3.3 and CentOS 5 running in a virtual machine to transfer email from my notebook to a remote mail server that requires SMTP AUTH. The remote mail server is using Exim 4.67. You need to logged in as root to perform the steps below.
1. Edit this file /etc/postfix/main.cf and add the following line below respectively: -
relayhost = your.mail.relay.server
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpw
smtp_sasl_security_options =
smtp_sasl_mechanism_filter = login
2. Create this file /etc/postfix/saslpw and add the following line below respectively: -
your.mail.relay.server username@yourdomain.comt:yourpasswd
3. Then, run the following command below: -
postmap /etc/postfix/saslpw
or
makemap hash /etc/postfix/saslpw < /etc/postfix/saslpw
4. Finally, start the Postfix server using the following command below: -
service postfix start
If you found these helpful, please contribute to help:
Twitter
Facebook
Flickr
RSS
Recent Comments