我正在用Postfix和Courier-IMAPbuild立一个邮件服务器。 我想用rimap进行SMTPauthentication,这样我就不必维护两个用户数据库了。 我遇到的问题是用户名后缀传递被剥夺了它的域名。 它应该是“[email protected]”,它变成了“约翰”。
login到IMAP服务器的工作原理, testsaslauthd -u [email protected] -p password 。
使用smtpd_sasl_local_domain (设置或smtpd_sasl_local_domain设置)并没有什么不同。
这篇文章似乎并不是这样。 即使当我尝试使用uasdfer @ asdfasdflogin时,也会将域部分closures。
Postfix sasl:
# cat main.cf |grep -i sasl smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_rbl_client zen.spamhaus.org check_policy_service unix:private/policyd-spf
Saslconfiguration:
# cat saslauthd |grep -v "#"|grep -v -E "^$" START=yes DESC="SASL Authentication Daemon" NAME="saslauthd" MECHANISMS="rimap" MECH_OPTIONS="127.0.0.1" THREADS=5 OPTIONS="-c -m /var/run/saslauthd"
服务器版本:
你可能只需要添加-r到你的saslauthd OPTIONS= stanza。
从手册页
-r Combine the realm with the login (with an '@' sign in between). eg login: "foo" realm: "bar" will get passed as login: "foo@bar". Note that the realm will still be passed, which may lead to unexpected behavior.