SquirrelMail 显示收件箱为空。此文件夹为空

SquirrelMail 显示收件箱为空。此文件夹为空

我已经安装了 postfix、dovecot 和 squirrelmail。我可以发送消息,也可以接收消息。但在 Squirrelmail 网页界面中,我只能看到已发送的消息,它不显示收件箱中的邮件。事实上,当我单击收件箱时,它显示此文件夹为空的错误。

但是,我可以在机器上看到收到的邮件。以下是我从 gmail、outlook 收到的邮件。

 [root@a new]# pwd
 /home/bobby219/Maildir/new

 [root@a new]# ls -lrt
total 48
-rwxrwxrwx 1 bobby219 bobby219  5082 Mar 18 16:37 1426711022.Vfc00I20631M450759.a
-rwxrwxrwx 1 bobby219 bobby219  8763 Mar 18 16:42 1426711375.Vfc00I20635M700199.a
-rwxrwxrwx 1 bobby219 bobby219  9987 Mar 18 17:08 1426712892.Vfc00I20639M341101.a
-rwxrwxrwx 1 bobby219 bobby219 11207 Mar 18 17:09 1426712994.Vfc00I2063bM146743.a
-rwxrwxrwx 1 bobby219 bobby219  2664 Mar 18 17:10 1426713056.Vfc00I2063dM909489.a
[root@a new]#

后缀

[root@a new]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, $mydomain
mydomain = example.com
myhostname = example.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
[root@a new]#

多维科特

[root@a dovecot]# cat dovecot.conf
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.1.2.0.1.el6.x86_64 x86_64 CentOS release 6.5 (Final)
mbox_write_locks = fcntl
passdb {
  driver = pam
}
passdb {
  driver = pam
}
protocols = imap pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
userdb {
  driver = passwd
}

mail_location = mbox:~/mail:INBOX=/var/mail/%u
[root@a dovecot]#

答案1

我不是 dovecot 或 postfix 的专家,但看起来您已将 postfix 配置为使用 Maildir 样式的邮箱,但您告诉 dovecot 使用 mbox 样式的邮箱。

查看 postfix 文档中的home_mailbox配置选项,或 dovecot 文档中的mail_location配置选项,以确定需要更改哪一个(以及将其更改为何)。

相关内容