Apr 13 14:42:02 CSV-004 postfix/smtpd[4342]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Apr 13 14:42:02 CSV-004 postfix/smtpd[4342]: warning: localhost[127.0.0.1]: SASL login authentication failed: generic failure

Apr 13 14:56:39 CSV-004 postfix/smtpd[4532]: warning: SASL authentication failure: cannot connect to saslauthd server:Permission denied
Apr 13 14:56:39 CSV-004 postfix/smtpd[4532]: warning: localhost[127.0.0.1]: SASL login authentication failed: generic failure

 

第一个错误是因为

在/etc/default/saslauthd配置中

 Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd"

这里并不是用于postfix,使用默认的/var/run路径而导致的

后面的提示是因为postfix对于/var/spool/postfix/var/run/saslauthd没有权限

 

saslauthd usually establishes the UNIX domainsocket in /var/run/saslauthd/ and waits for authenticationrequests. The Postfix SMTP server must have read+execute permissionto this directory or authentication attempts will fail.