邮件客户端 Thunderbird 不读取来自 dovecot/postfix 邮件服务器的新邮件

邮件客户端 Thunderbird 不读取来自 dovecot/postfix 邮件服务器的新邮件

我运行一个服务器: Debian GNU/Linux 7.8 (wheezy)并使用默认邮件系统 (exim) 来与普通用户发送邮件(无 vmail)。邮件系统对某些用户来说无法正常工作,因此我删除了 exim 并根据以下说明安装了 postfix/dovecot这个德语教程

一切正常。我使用旧用户成功连接了 Thunderbird。

我能够看到旧邮件,因为它们仍在收件箱中。但是,任何接收新邮件的尝试都失败了。这些邮件位于~/mail/new。我可以在服务器上使用“cat”(或其他任何方式)阅读它们,但不能在客户端阅读。日志文件看起来不错。我真的不知道该怎么办。

输出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
}

谢谢回复。编辑器似乎使用磅字符作为格式标记。

答案1

在如上的邮件架构中,你需要同步两个配置

  • 后缀的格式*和位置商店收到的电子邮件
  • 鸽舍的格式*和位置检索 电子邮件

当它们不同步时,dovecot 将无法找到之前由 postfix 存储的电子邮件。

相关的 Dovecot 参数是

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

相关的后缀参数是

home_mailbox = mail/

正如你所看到的,它们不同步。解决方案是改变mail_location 成为

mail_location = maildir:~/mail

相关内容