我运行一个服务器: Debian GNU/Linux 7.8 (wheezy)并使用默认邮件系统(exim)与普通用户(没有vmail)邮件。 邮件系统对某些用户不能正常工作,所以我根据这个德语教程删除了exim并安装了postfix / dovecot。
一切工作正常。 我用老用户连接了Thunderbird,成功了。
我还能看到旧邮件,因为他们仍然坐在收件箱里。 但是,任何接收新邮件的尝试都失败了。 这些邮件坐在~/mail/new 。 我可以在服务器上用“猫”(或其他)读取它们,但不能在客户机中读取它们。 日志文件看起来不错。 我真的不知道该怎么做。
输出postconf -n
alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = mail/ inet_interfaces = all mailbox_size_limit = 1000000000 mydestination = $myhostname, localhost.$mydomain, $mydomain mydomain = cljhome.net myhostname = www.cljhome.net mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 myorigin = /etc/mailname readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_client_restrictions = reject_invalid_hostname smtpd_enforce_tls = no smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination, smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $mydomain smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_restrictions = reject_unknown_address smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/postfix/mail.cert smtpd_tls_key_file = /etc/postfix/mail.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes strict_rfc821_envelopes = yes
dovecot -n产量
# 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8 listen = * 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 } passdb { driver = shadow } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = root } ssl_cert = </etc/dovecot/dovecot.pem ssl_key = </etc/dovecot/private/dovecot.pem userdb { driver = passwd } userdb { driver = passwd }
谢谢回复。 编辑器似乎使用磅字符作为格式标签。
在上面的邮件体系结构中,您需要同步两个configuration
当它们不同步时,dovecot将不会find之前由postfix存储的邮件。
相关的dovecot参数是
mail_location = mbox:~/mail:INBOX=/var/mail/%u
和相关的postfix参数是
home_mailbox = mail/
正如你所看到的,它们不同步。 解决scheme是更改mail_location成为
mail_location = maildir:~/mail