Postfix错误:cyradm cannot authenticate to server with as cyrus

设置postfix的smtp验证时出现错误如下:
cyradm -u cyrus localhost
IMAP Password:
Login failed: authentication failure at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with as cyrus
我查看了/var/log/message日志,每次我运行cyrus会有如下三条错误
Nov 7 16:19:22 RisingInfo perl: No worthy mechs found
Nov 7 16:19:24 RisingInfo saslauthd[9300]: do_auth : auth failure: [user=cyrus] [service=imap] [realm=] [mech=pam] [reason=PAM auth error]
Nov 7 16:19:24 RisingInfo imapd[26249]: badlogin: RisingInfo[127.0.0.1] plaintext cyrus SASL(-13): authentication failure: checkpass failed
解决方法是:建一個本地用戶,useradd cyrus
然後passwd cyrus設定它的密碼和saslauthd的密碼相同
應該就可以了

发表评论

电子邮件地址不会被公开。 必填项已用*标注