小编Mic*_*ser的帖子

Postfix 无法针对 SASL 进行身份验证

我的系统是 Debian 7 aka Wheezy,安装了 postfix、courier 和 mysql。快递运作良好,如果我发出

testsaslauthd -u user@domain -p password -f /var/spool/postfix/var/run/saslauthd/mux -s smtp
Run Code Online (Sandbox Code Playgroud)

我得到一个

0: OK "Success."
Run Code Online (Sandbox Code Playgroud)

但是,如果我得到一个 base64 编码的用户名/密码

echo -ne '\000user@domain\000password' | openssl base64
Run Code Online (Sandbox Code Playgroud)

并尝试在 SMTP 会话中使用它

helo localhost
auth plain (output from above)
Run Code Online (Sandbox Code Playgroud)

我总是得到一个

535 5.7.8 Error: authentication failed: authentication failure
Run Code Online (Sandbox Code Playgroud)

/var/log/syslog然后我发现

Sep 29 21:49:34 (hostname obfuscated) postfix/smtpd[15814]: warning: SASL authentication failure: Password verification failed
Sep 29 21:49:34 (hostname obfuscated) postfix/smtpd[15814]: warning: localhost[::1]: SASL plain authentication failed: authentication failure
Run Code Online (Sandbox Code Playgroud)

并在 /var/log/auth.log 中 …

mysql postfix sasl debian-wheezy

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

debian-wheezy ×1

mysql ×1

postfix ×1

sasl ×1