Postfix sasl smtp auth users
Jump to navigation
Jump to search
SMTP Auth / Login on postfix using sasl
Blatant ripoff from http://www.linuxmail.info/smtp-authentication-postfix-centos-5/
Dovecot
1. Edit the file /etc/dovecot.conf and make sure your auth default section has the lines below.
auth default { socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } mechanisms = plain login }
Take care and notice the extra login in the mechanism options; I missed that first time around
Postfix
2. Edit /etc/postfix/main.cf, find the keys below and change its values as follows or add it at the bottom of the file if the key (the word before the = sign) cannot be found. mynetworks = 127.0.0.0/8 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, reject_unauth_destination
broken_sasl_auth_clients = yes