vi /etc/postfix/sasl_passwd ---------------------------------------- #Domain Username:Password mail.example.com mail01:rght#1 ----------------------------------------- |
chmod -Rf 600 /etc/postfix/sasl_passwd chown -Rf root:root /etc/postfix/sasl_passwd |
/usr/sbin/postmap /etc/postfix/sasl_passwd |
vi /etc/postfix/main.cf --Add these three lines: --------------------------------------------------- smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = ---------------------------------------------------- |
--------------------------------------------------------- relayhost = mail.example.com --------------------------------------------------------- |