Postfix

SquirrelMail 顯示空收件箱。這個文件夾是空的

  • March 18, 2015

我已經安裝了 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]#

我不是 dovecot 或 postfix 方面的專家,但看起來您已將 postfix 配置為使用 Maildir 樣式郵箱,但您告訴 dovecot 使用 mbox 樣式郵箱。

查看home_mailboxconfig 選項的 postfix 文件,或 config 選項的 dovecot 文件,mail_location以確定您需要更改哪個(以及將其更改為什麼)。

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