系统:RedHat As5.3 X64
postfix 版本:系统安装光盘自带 postfix-2.3.3-2.1.el5_2.x86_64.rpm
postfix smtp 用户验证构件故障,情况如下:
使用客户端,例如 outlook , foxmail 等发送邮件,出现553验证错误,或者 502 验证错误。
查看邮件日志/var/log/maillog 当验证错误的时候会不断蹦出以下错误。
warning: SASL authentication failure: OTP: auxprop backend can’t store properties
Mar 8 10:45:09 liubc postfix/smtpd[1363]: connect from mail.oschina.net[219.136.242.37]
Mar 8 10:45:09 liubc postfix/smtpd[1363]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Mar 8 10:45:09 liubc postfix/smtpd[1363]: warning: SASL authentication failure: Password verification failed
Mar 8 10:45:09 liubc postfix/smtpd[1363]: warning: mail.oschina.net[219.136.242.37]: SASL PLAIN authentication failed: generic failure
同时 /var/log/messages 日志报错:
unable to dlopen /usr/lib/sasl2/liblogin.so.2: /usr/lib/sasl2/liblogin.so.2: wrong ELF class: ELFCLASS32
因为sasl 的目录有2个,分别是 /usr/lib/sasl2 跟 /usr/lib64/sasl2
怀疑是否是 X32 跟 x64的问题。
于是把 /usr/lib/sasl2 软连接到 /usr/lib64/sasl2 (即 /usr/lib/sasl2 > /usr/lib64/sasl2 )
/var/log/messages 的报错解决,但验证依旧没有通过 /var/log/maillog 报错变为
connect from mail.xxxx.net[219.136.242.37]
Mar 7 23:37:06 liubc postfix/smtpd[15635]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Mar 7 23:37:06 liubc postfix/smtpd[15635]: warning: SASL authentication failure: Password verification failed
Mar 7 23:37:06 liubc postfix/smtpd[15635]: warning: mail.xxxx.net[219.116.242.17]: SASL PLAIN authentication failed: generic failure
Mar 7 23:37:06 liubc postfix/smtpd[15635]: lost connection after AUTH from mail.xxxx.net[219.116.242.17]
Mar 7 23:37:06 liubc postfix/smtpd[15635]: disconnect from mail.xxxx.net[219.116.242.17]
最后通过修改 /usr/lib64/sasl2/smtpd.conf 跟 /usr/lib64/sasl2/smtpd.conf 内容为:
pwcheck_method: saslauthd
log_level: 3
mech_list: PLAIN LOGIN
saslauthd_path: /var/run/saslauthd/mux
并重启 sasl 服务,跟 postfix 服务后
问题解决!!!!!
postfix 用户验证恢复正常。
但仍需观察一段时间。





