歡迎您光臨本站 註冊首頁

關於 postfix sasl 認證失敗問題,急

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

關於 postfix sasl 認證失敗問題,急

各位大大好! 編譯的 Postifx+Cyrus-SASL+Coruier-authlib+Courier-imap+Extmail+Extman

現在系統可以登錄WEB界面,登錄收發郵件都正常,但用 outlook或者 foxmail等客戶端,驗證用戶名和密碼總是失敗,是在急壞了!

tail -f /var/log/mail.log 中有報錯

Jun 24 15:00:53 ubuntu8 postfix/smtpd: warning: unknown: SASL LOGIN authentication failed: no mechanism available
Jun 24 15:00:53 ubuntu8 postfix/smtpd: lost connection after AUTH from unknown

請問這是何故,sasl啟動正常
ps -ef|grep auth
root      4331     1  0 13:43 ?        00:00:00 /usr/local/sasl2/sbin/saslauthd -a shadow pam
root      4332  4331  0 13:43 ?        00:00:00 /usr/local/sasl2/sbin/saslauthd -a shadow pam
root      4333  4331  0 13:43 ?        00:00:00 /usr/local/sasl2/sbin/saslauthd -a shadow pam
root      4334  4331  0 13:43 ?        00:00:00 /usr/local/sasl2/sbin/saslauthd -a shadow pam
root      4335  4331  0 13:43 ?        00:00:00 /usr/local/sasl2/sbin/saslauthd -a shadow pam
root      5230     1  0 Jun06 ?        00:00:00 /usr/local/courier-authlib/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=pop3d /usr/local/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 110 /usr/local/courier-imap/sbin/pop3login /usr/local/courier-imap/bin/pop3d Maildir
root      7039     1  0 14:45 ?        00:00:00 /usr/local/courier-authlib/sbin/courierlogger -pid=/usr/local/courier-authlib/var/spool/authdaemon/pid -start /usr/local/courier-authlib/libexec/courier-authlib/authdaemond
root      7040  7039  0 14:45 ?        00:00:00 /usr/local/courier-authlib/libexec/courier-authlib/authdaemond
root      7041  7040  0 14:45 ?        00:00:00 /usr/local/courier-authlib/libexec/courier-authlib/authdaemond
root      7042  7040  0 14:45 ?        00:00:00 /usr/local/courier-authlib/libexec/courier-authlib/authdaemond


附上 authmysqlrc 文件
cat /etc/authmysqlrc
MYSQL_SERVER localhost
MYSQL_PORT 3306   
MYSQL_USERNAME extmail
MYSQL_PASSWORD extmail
MYSQL_SOCKET  /tmp/mysql.sock
MYSQL_DATABASE  extmail
MYSQL_USER_TABLE  mailbox
MYSQL_CRYPT_PWFIELD  password
#MYSQL_UID_FIELD  '2525'
#MYSQL_GID_FIELD  '2525'
MYSQL_UID_FIELD  '1001'
MYSQL_GID_FIELD  '1001'
MYSQL_LOGIN_FIELD  username
MYSQL_HOME_FIELD  concat('/var/mailbox/',homedir)
MYSQL_NAME_FIELD  name
MYSQL_MAILDIR_FIELD  concat('/var/mailbox/',maildir)

附上  smtpd.conf 文件
cat /usr/local/lib/sasl2/smtpd.conf

pwcheck_method: authdaemond
log_level: 3
mech_list:PLAIN LOGIN
srp_mda:md5
password_format:crypt
authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket
《解決方案》

自己頂一下,實在著急

[火星人 ] 關於 postfix sasl 認證失敗問題,急已經有372次圍觀

http://coctec.com/docs/service/show-post-17444.html