我在Debian上安装了Postfix&Dovecot。
然后我尝试按照本指南使用SMTPauthentication:
http://www.postfix.org/SASL_README.html
不幸的是,下面的testing尾巴:
telnet localhost 25 auth plain <base64 encoded usernaem/password>
我们得到一个“535 5.78错误:身份validation失败:”
在var / log / mail.warn中,我们需要一个新行:“warning:localhost [127.0.0.1]:SASL PLAIN身份validation失败:”
不幸的是,它并没有说出什么问题。 有任何想法吗?
这真的很愚蠢。 但是这是错误的原因:
我们根据文档生成了base 64string:
echo -ne '\000username\000password' | openssl base64
不幸的是我们的密码始于一个数字。 改变密码后开始一个字符,它工作得很好!