Email

無法再連接到郵件伺服器

  • September 19, 2015

我從未接觸過伺服器上屬於 postfix 和 dovecot 的任何東西。但是幾天來我無法連接到我的郵箱了。

/var/log/mail.log連接時:

Sep 19 15:58:11 censored-hostname dovecot: auth: Error: BUG: Authentication client sent unknown handshake command: REQUEST?1008074753?14732?1?6068faccfcf40bafc9d4bff43c24e74f
Sep 19 15:58:11 censored-hostname dovecot: imap: Error: Authentication server didn't send valid SPID as expected: MECH^IPLAIN^Iplaintext
Sep 19 15:58:11 censored-hostname dovecot: imap: Error: Disconnected from auth server, aborting (client-pid=14732 client-id=1)
Sep 19 15:58:11 censored-hostname dovecot: imap-login: Internal login failure (pid=14732 id=1) (auth failed, 1 attempts): user=<info@censored.com>, method=PLAIN, rip=censored-ip, lip=censored-ip, mpid=14733, TLS
Sep 19 15:58:11 censored-hostname dovecot: auth: Error: BUG: Authentication client sent unknown handshake command: REQUEST?3226730497?14734?1?007240b93b5d5f7c244d11409e9b03e7
Sep 19 15:58:11 censored-hostname dovecot: imap: Error: Authentication server didn't send valid SPID as expected: MECH^IPLAIN^Iplaintext
Sep 19 15:58:11 censored-hostname dovecot: imap: Error: Disconnected from auth server, aborting (client-pid=14734 client-id=1)
Sep 19 15:58:11 censored-hostname dovecot: imap-login: Internal login failure (pid=14734 id=1) (auth failed, 1 attempts): user=<info@censored.com>, method=PLAIN, rip=censored-ip, lip=censored-ip, mpid=14735, TLS
Sep 19 15:58:12 censored-hostname dovecot: auth: Error: BUG: Authentication client sent unknown handshake command: REQUEST?2949644289?14737?1?52378726316ead0da1733e3e2c8bb2ce
Sep 19 15:58:12 censored-hostname dovecot: imap: Error: Authentication server didn't send valid SPID as expected: MECH^IPLAIN^Iplaintext
Sep 19 15:58:12 censored-hostname dovecot: imap: Error: Disconnected from auth server, aborting (client-pid=14737 client-id=1)
Sep 19 15:58:12 censored-hostname dovecot: imap-login: Internal login failure (pid=14737 id=1) (auth failed, 1 attempts): user=<info@censored.com>, method=PLAIN, rip=censored-ip, lip=censored-ip, mpid=14738, TLS
Sep 19 15:58:13 censored-hostname dovecot: auth: Error: BUG: Authentication client sent unknown handshake command: REQUEST?901382145?14739?1?cd9ac7c93707db11956f55a290b50005
Sep 19 15:58:13 censored-hostname dovecot: imap: Error: Authentication server didn't send valid SPID as expected: MECH^IPLAIN^Iplaintext
Sep 19 15:58:13 censored-hostname dovecot: imap: Error: Disconnected from auth server, aborting (client-pid=14739 client-id=1)
Sep 19 15:58:13 censored-hostname dovecot: imap-login: Internal login failure (pid=14739 id=1) (auth failed, 1 attempts): user=<info@censored.com>, method=PLAIN, rip=censored-ip, lip=censored-ip, mpid=14740, TLS

鴿舍配置:

# dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-042stab092.3 i686 Ubuntu 12.04.5 LTS reiserfs
first_valid_uid = 150
last_valid_uid = 150
mail_location = maildir:/var/vmail/%d/%n
passdb {
 args = /etc/dovecot/dovecot-sql.conf.ext
 driver = sql
}
protocols = " imap"
service auth {
 unix_listener /var/spool/postfix/private/auth {
   mode = 0666
 }
 unix_listener auth-userdb {
   group = mail
   mode = 0660
   user = vmail
 }
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
 args = uid=150 gid=8 home=/var/vmail/%d/%n allow_all_users=yes
 driver = static
}
protocol imap {
 imap_client_workarounds = tb-extra-mailbox-sep
}

出了什麼問題以及如何解決?大約 5 年前,我配置了郵件伺服器。

據一些人說,這個錯誤可以通過手動重啟來清除dovecot,我知道這對你有用。

也就是說,五年未打過更新檔的任何機器都不應被視為適合用途。絕對是你把那個盒子升級到更新檔的時候了!

引用自:https://serverfault.com/questions/723470