无法发送到 Maildir:postfix

无法发送到 Maildir:postfix

我设置了 /etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = example.com, example02.com, mail01.example.local, localhost.example.local, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox=Maildir/

/etc/init.d/postfix 重启

但是... 您在 /var/mail/user 中有新邮件

为什么?出了什么问题?

答案1

根据文档mailbox_command优先于home_mailbox。请禁用前者,或设置您的.procmailrc以传送到 Maildir(如果记忆不错,通过在邮箱后加上斜线)。

答案2

我同意米歇尔。我使用相同的设置,使用 procmail 进行本地传送。我在 和/etc/procmailrc本地.procmailrc文件中均有以下内容:

MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR

相关内容