Postfix Mail relaying with smtp auth
Jump to navigation
Jump to search
1 notice
this is a sample config to enable mail sending for system mails or forward mails from mailserver by smtp-auth.
2 howto
vi /etc/postfix/password --- #smtp.isp.com username:password smtp.mydomain.com send-user@mydomain.com:mySecretePassword --- chown root:root /etc/postfix/password chmod 0600 /etc/postfix/password postmap hash:/etc/postfix/password vi /etc/postfix/main.cf --- relayhost = smtp.mydomain.com:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/password smtp_sasl_security_options = --- /etc/init.d/postfix restart