Maildir“新”有消息,但收件箱是空的

我正在一个新的操作系统中安装一个新的邮件服务器(Postfix / Dovecot + Maildir)。

使用Thunderbird(或Squirrelmail)我可以发送邮件,但即使在/home/<mailuser>/Maildir/new看到他们,我的收件箱也是空的。

可能是什么问题呢? 如果需要,我会附上任何conf文件。

编辑:dovecotconfiguration是mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/像Damiano说的,Postfix和Dovecot邮件文件夹不匹配。

您可能不会在Postfix和Dovecot中共享相同的邮箱位置/文件夹和/或邮箱传递方式(MBOX与MDIR)。 因此,Postfix(正确)写在“ / home / mailuser / Maildir ”(你看到你的邮件到达,在“新”子文件夹下),但是dovecot正在其他地方寻找…它没有find这样的邮件(所以你得到一个“没有邮件”)。

作为第一次检查,您应该:

  • Postfix:检查/etc/postfix/main.cf中的home_mailbox参数:

 # The home_mailbox parameter specifies the optional pathname of a # mailbox file relative to a user's home directory. [...] Specify # "Maildir/" for qmail-style delivery (the / is required). # home_mailbox = Maildir/ 

  • Dovecot:根据@Kondybas的build议,检查mail_location参数(在CentOS 6.5中的/etc/dovecot/conf.d/10-mail.conf中):

 # See doc/wiki/Variables.txt for full list. Some examples: # # mail_location = maildir:~/Maildir # mail_location = mbox:~/mail:INBOX=/var/mail/%u # mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n # # <doc/wiki/MailLocation.txt> # mail_location = maildir:~/Maildir 

上面的两个指令告诉Postfix和Dovecot将/ home / userN / Maildir的Maildir结构下的“ userN ”的主目录保存为/ home / userN

在“虚拟”用户的情况下(用户没有在机器上定义适当的unix帐户)情况稍微复杂一些,在这种情况下,Postfix和Dovecot都需要共享获取/计算用户N的home-dir的方式