郵件用戶端 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

在上面的郵件架構中,您需要同步兩個配置

  • postfix的格式*和位置商店收到的電子郵件
  • 鴿舍的格式*和位置檢索 電子郵件

當它們不同步時,dovecot 將找不到先前由 postfix 儲存的電子郵件。

相關鴿舍參數為

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

相關的後綴參數是

home_mailbox = mail/

正如您所看到的,它們不同步。解決方案是更改mail_location

mail_location = maildir:~/mail

相關內容