客戶端無法連接丟失問題
Postfix + Dovecot + Courier-Authlib + Cyrus-SASL + MySQL + ExtMail
現在用 ExtMail 收發郵件都正常, 可以和 Gmail 以及 QQ郵箱 相互通信 (就測試這兩個), 但是使用 Foxmail 連接伺服器, 就出錯了.
日誌:Sep 13 12:33:34 Mail postfix/smtpd: connect from unknown
Sep 13 12:33:34 Mail authdaemond: received auth request, service=smtp, authtype=login
Sep 13 12:33:34 Mail authdaemond: authmysql: trying this module
Sep 13 12:33:34 Mail authdaemond: SQL query: SELECT username, password, "", '2525', '2525', concat('/var/mailbox/',homedir), concat('/var/mailbox/',maildir), quota, name, "" FROM mailbox WHERE username = '
[email protected]'
Sep 13 12:33:34 Mail authdaemond: password matches successfully
Sep 13 12:33:34 Mail authdaemond: authmysql: sysusername=<null>, sysuserid=2525, sysgroupid=2525, homedir=/var/mailbox/xxx.xx/xxx,
[email protected], fullname=xxx, maildir=/var/mailbox/xxx.xx/xxx/Maildir/, quota=5242880S, options=<null>
Sep 13 12:33:34 Mail authdaemond: authmysql: clearpasswd=<null>, passwd=$1$bxfpSqOi$KIkHt05crwM2oi.8/I4Ox.
Sep 13 12:33:34 Mail authdaemond: Authenticated: sysusername=<null>, sysuserid=2525, sysgroupid=2525, homedir=/var/mailbox/xxx.xx/xxx,
[email protected], fullname=xxx, maildir=/var/mailbox/xxx.xx/xxx/Maildir/, quota=5242880S, options=<null>
Sep 13 12:33:34 Mail authdaemond: Authenticated: clearpasswd=test123, passwd=$1$bxfpSqOi$KIkHt05crwM2oi.8/I4Ox.
Sep 13 12:33:34 Mail postfix/smtpd: lost connection after AUTH from unknown
Sep 13 12:33:34 Mail postfix/smtpd: disconnect from unknown
Sep 13 12:33:38 Mail dovecot: pop3-login: Aborted login (auth failed, 1 attempts in 4 secs): user=<
[email protected]>, method=PLAIN, rip=120.71.235.126, lip=192.168.1.233, session=<0HuAWzzm0gB4R+t+>
Sep 13 12:33:46 Mail dovecot: pop3-login: Disconnected (auth failed, 1 attempts in 8 secs): user=<
[email protected]>, method=PLAIN, rip=120.71.235.126, lip=192.168.1.233, session=<7AS+Wzzm1QB4R+t+>以上是整個認證過程.
密碼驗證都過了, 結果出現了 lost connection after AUTH from unknown . 這是什麼地方沒有設置好?