在从10.04到12.04进行了主要的Ubuntu dist升级之后,我的虚拟用户postfix / dovecot安装只提供了“PLAIN”SMTPauthentication机制。
它曾经提供了PLAIN + LOGIN机制,并且我已经在太阳下尝试了所有的事情,以便再次loginLOGIN,但是它不会这么做。
没有“login”版本,许多基于MS的客户端(Windows Live,Outlook Express)不能再使用SMTPvalidation发送邮件。 我不得不把他们的IP地址到我的“我的networking”列表中。
我甚至试图设置一个从头开始postfix + dovecot +虚拟用户smtp服务器与12.04.1,认为它必须与升级有关,但不能得到比AUTH PLAIN更多的东西新的系统。
有没有人在12.04上成功地设置了一个正常工作的postfix + dovecot +虚拟用户邮件服务器?
我目前的鸽舍configuration: http : //pastie.org/5651874
和当前的后缀configuration: http : //pastie.org/5651882
。
仅供参考这里是我尝试过的configuration的摘录:
(一个):
/etc/dovecot/conf.d/10-auth.conf:
auth_mechanisms = plain login
/etc/dovecot/conf.d/10-master.conf:
service auth { unix_listener auth-userdb { } inet_listener { port = 12345 } }
/etc/postfix/main.cf中
smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sasl_path = inet:127.0.0.1:12345
结果是
... warning: SASL: Connect to inet:127.0.0.1:12345 failed: Connection refused ... fatal: no SASL authentication mechanisms
从我的日志。
。
。
和(B):
/etc/dovecot/conf.d/10-auth.conf:
auth_mechanisms = plain login
/etc/dovecot/conf.d/10-master.conf:
service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix } }
/etc/postfix/main.cf中
smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = $mynetworks smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth
只有提供PLAIN机制的结果。
。
adaptr在他的答案中引用的文档没有任何Dovecot 2的UNIX套接字风格configuration的例子,所以我希望有更多经验的人可以在这里指导我。
那么,从我在你的发布configuration中看到的你从来没有设置Dovecot的auth_mechanisms = plain login ,因此默认使用auth_mechanisms = plain 。 尝试更新该设置并重新启动Dovecot,然后重新检查doveconf -n的输出。
您的auth套接字设置对我来说似乎是正确的,Postfix应该能够对Dovecot进行SASL身份validation。
如文件所述 ,鸽舍必须宣传适当的机制。
我在CentOS 6上遇到了同样的问题,导致我的问题不同:
有设置:
smtpd_tls_security_level = encrypt
在main.cf中剥离
250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN
从远程login会话期间的EHLO输出。 把它放在master.cf中恢复输出和预期的行为:
submission inet n - n - - smtpd -o smtpd_tls_security_level=encrypt
我觉得这是值得分享这个解决scheme,因为至less有三个教程,我在网上findbuild议,这是可以的,包括在main.cf这个设置。