我试图configuration我的后缀服务器接受来自外部邮件客户端使用dovecot SASLauthentication的连接。 它以前与cyrus sasl一起设置。
但是,当我尝试使用Mozilla Thunderbird从另一台服务器发送邮件时,在我的maillog文件中find了类似这样的行:
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory warning: SASL authentication failure: no secret in database warning: SASL CRAM-MD5 authentication failed: authentication failure
这些是我的main.cfconfiguration文件中的行:
smtpd_helo_restrictions = reject_invalid_hostname smtpd_sender_restrictions = reject_unknown_sender_domain smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_recipient_domain, reject_unauth_destination reject_non_fqdn_sender check_client_access hash:/etc/postfix/pop-before-smtp, reject_non_fqdn_recipient, reject_rbl_client zen.spamhaus.org, reject_rbl_client psbl.surriel.com smtpd_sasl_path = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noplaintext noanonymous broken_sasl_auth_clients = yes
我也检查了configuration文件/usr/lib/sasl/smtpd.conf和/etc/postfix/sasl/smtpd.conf ,我有:
pwcheck_method:saslauthd mech_list: plain login
我不知道为什么后缀不断给我sasldb2和cram-md5authentication错误。 非常感谢。
saslauthd只能处理PLAIN和LOGIN身份validation方法,但已使用smtpd_sasl_security_options禁用了明文。 你也有你的configuration错字 – smtpd_sasl_path语句重复,似乎第一个应该键入为smtpd_sasl_type而不是。