安装文档参考:http://wiki.extmail.org/extmail_solution_for_centos-5,进行到第十步的SMTP认证总是失败,结果如下:
[root@localhost postfix]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.extmail.org ESMTP Postfix - by extmail.org
ehlo localhost
250-mail.extmail.org
250-PIPELINING
250-SIZE 5242880
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
cG9zdG1hc3RlckBleHRtYWlsLm9yZw==
334 UGFzc3dvcmQ6
ZXh0bWFpbA==
535 5.7.8 Error: authentication failed: generic failure
/var/log/maillog记录如下:
Jun 12 15:33:48 localhost postfix/smtpd[7824]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Jun 12 15:33:48 localhost postfix/smtpd[7824]: warning: localhost.localdomain[127.0.0.1]: SASL login authentication failed: generic failure
从网上找了方法,调整文件权限和属性组,但是没有解决,但是突然发现/usr目录下存在lib和lib64两个目录,突然意识到帮助文档编写的时间比较是32位系统,而现在的系统基本上都是64位,那么smptd.conf文件应该在/usr/lib64/sasl2/目录下。修改后正常