Ubuntu

只需設置 Postfix/Dovecot 伺服器。郵件似乎正在接收但未出現在收件箱中

  • August 19, 2016

所以我只是在我的 VPS 上設置了一個小郵件伺服器,它可以正常發送郵件!當它收到郵件時,問題就來了。日誌表明它檢索消息,將其從隊列中刪除並傳遞,但它從未出現!

日誌:

Aug 18 14:28:27 joshshouse postfix/smtpd[6345]: connect from mail.lcccorp.com[50.253.219.194]
Aug 18 14:28:27 joshshouse postfix/smtpd[6345]: 302703EA47: client=mail.lcccorp.com[50.253.219.194]
Aug 18 14:28:27 joshshouse postfix/cleanup[6349]: 302703EA47: message-id=<2c9ed3e8-c034-e2e9-7603-1c853e4f0d85@lcccorp.com>
Aug 18 14:28:27 joshshouse postfix/qmgr[5793]: 302703EA47: from=<josh@lcccorp.com>, size=990, nrcpt=1 (queue active)
Aug 18 14:28:27 joshshouse postfix/local[6350]: 302703EA47: to=<josh@joshshouse.us>, relay=local, delay=0.05, delays=0.05/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Aug 18 14:28:27 joshshouse postfix/qmgr[5793]: 302703EA47: removed
Aug 18 14:28:27 joshshouse postfix/smtpd[6345]: disconnect from mail.lcccorp.com[50.253.219.194]

似乎沒有任何錯誤。

dovecot -n結果:

# 2.2.18: /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.8 (0c4ae064f307+)
# OS: Linux 4.2.0-42-generic x86_64 Ubuntu 15.10
auth_debug_passwords = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
namespace inbox {
 inbox = yes
 location =
 mailbox Drafts {
   special_use = \Drafts
 }
 mailbox Junk {
   special_use = \Junk
 }
 mailbox Sent {
   special_use = \Sent
 }
 mailbox "Sent Messages" {
   special_use = \Sent
 }
 mailbox Trash {
   special_use = \Trash
 }
 prefix =
}
passdb {
 driver = pam
}
protocols = " imap lmtp pop3"
ssl = no
userdb {
 driver = passwd
}

這是我的收件箱:

空收件箱截圖

如果您需要更多資訊,我會提供。

為需要它的人提供簡單的修復。我不得不改變:

mail_location = mbox:~/mail:INBOX=/var/mail/%u

mail_location = maildir:~/Maildir

在 /etc/dovecot/conf.d/10-mail.conf

簡單的修復。愚蠢的錯誤。

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