后缀sasl“无法连接到saslauthd服务器:没有这样的文件或目录”

我尝试用smtpauthentication来设置postfix。 我想用/ etc / shadow作为我的领域

不幸的是,当我尝试进行身份validation时,出现“通用错误”

# nc localhost 25 220 mail.foo ESMTP Postfix AUTH PLAIN _base_64_encoded_user_name_and_password_ 535 5.7.8 Error: authentication failed: generic failure 

mail.warn日志文件中,我得到以下条目

 Oct 8 10:43:40 mail postfix/smtpd[1060]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory Oct 8 10:43:40 mail postfix/smtpd[1060]: warning: SASL authentication failure: Password verification failed Oct 8 10:43:40 mail postfix/smtpd[1060]: warning: _ip_: SASL PLAIN authentication failed: generic failure 

然而,sasl设置似乎很好

 $ testsaslauthd -u _user_ -p _pass_ 0: OK "Success." 

我在main.cf中添加了smtpd_sasl_auth_enable = yes

这是我的smtpd.conf

 $ cat /etc/postfix/sasl/smtpd.conf pwcheck_method: saslauthd mech_list: PLAIN LOGIN saslauthd_path: /var/run/saslauthd/mux autotransition:true 

我试了这个conf与最后两个命令,没有。

我正在运行debian stable。

postfix如何find并连接到saslauthd服务器?

编辑:

我不确定postfix是否在chroot中运行master.cf看起来像这样: http : //pastebin.com/Fz38TcUP

saslauth位于sbin

 $ which saslauthd /usr/sbin/saslauthd 

EHLO有这个回应

 EHLO _server_name_ 250-_server_name_ 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN 

你可能错过了/ var / run / saslauthd到/ var / spool / postfix / var / run / saslauthd的符号链接吗?

从我的工作系统:

 root@mail:/etc/postfix/sasl# ls -la /var/run/saslauthd lrwxrwxrwx 1 root root 36 Dec 31 2010 /var/run/saslauthd -> /var/spool/postfix/var/run/saslauthd