我设置了 /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 中有新邮件
为什么?怎么了?
根据文档,
mailbox_command
优先于home_mailbox
。要么禁用前者,要么将您的邮件设置.procmailrc
为传递到 Maildir(如果有记忆,请在邮箱后面加上斜线)。我同意米歇尔的观点。我有相同的设置,procmail 进行本地交付。
/etc/procmailrc
我在本地文件和本地文件中都有以下内容.procmailrc
: