大网数据广告活动
服务器运维问答

Just Setup Postfix/Dovecot server. Mail appears to be being received but not appearing in Inbox

· 52CE 我爱测

So I just set up a little mail server on my VPS and it is sending mail just fine! The problem comes when it receives mail. The logs indicate that it retrieves the message, removes it from the queue and delivers it, but it never s…

问题原文

原帖链接 · JDSlimz · CC BY-SA 3.0

So I just set up a little mail server on my VPS and it is sending mail just fine! The problem comes when it receives mail. The logs indicate that it retrieves the message, removes it from the queue and delivers it, but it never shows up!

Log:

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=<[email omitted]>
Aug 18 14:28:27 joshshouse postfix/qmgr[5793]: 302703EA47: from=<[email omitted]>, size=990, nrcpt=1 (queue active)
Aug 18 14:28:27 joshshouse postfix/local[6350]: 302703EA47: to=<[email omitted]>, 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]

There do not appear to be any errors.

dovecot -n result:

# 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
}

Here is my inbox:

If you need any more info I will provide it.

已采纳解答

原帖链接 · JDSlimz · CC BY-SA 3.0

Simple fix for those who need it. I had to change:

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

to

mail_location = maildir:~/Maildir

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

Simple fix. Silly mistake.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。