Postfix sasl smtp auth users

From Skytech
Jump to navigation Jump to search

SMTP Auth / Login on postfix using sasl

Blatant ripoff from


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


2. Edit /etc/postfix/, 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 =
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