Ubuntu/Postfix/Saslauthd - SASL authentication failure: cannot connect to saslauthd server: Permission denied

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2011-08-09 12:00. :: Errors

Error: Ubuntu/Postfix/Saslauthd - SASL authentication failure: cannot connect to saslauthd server: Permission denied

On a Postfix with SMTP-Auth setup on Ubuntu you see the following error in your mail log:

Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: SASL authentication failure: Password verification failed
Apr 26 10:55:19 tcc1 postfix/smtpd[21126]: warning: laptop.local[192.168.1.2]: SASL PLAIN authentication failed: generic failure

 

Solution

Add the postfix user to the sasl group (this makes sure that Postfix has the permission to access saslauthd):

adduser postfix sasl

Then restart Postfix and Saslauthd:

/etc/init.d/postfix restart
/etc/init.d/saslauthd restart


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.