Postfix 拒绝所有传入的电子邮件。我安装了 Virtualmin 作为管理前端,并且我在该机器上托管了多个域 - 所有域的电子邮件都被拒绝。我正在运行 Ubuntu 14.04 64 位和 Postix 2.11.0。
我看到这个错误/var/log/mail.log
Sep 13 16:49:56 hostname.tld postfix/cleanup[20030]: warning: 411BA1245DB: unreasonable virtual_alias_maps map nesting for [email protected] -- message not accepted, try again later
我mydestination
有
mydestination = $myhostname, localhost.$mydomain, localhost, XXX
这似乎没问题(XXX = 服务器上托管域的域名.tld)
/etc/postifx/main.cf
( postconf -n
)的非默认值为
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = $myhostname, localhost.$mydomain, localhost, djp-web.de, pa-galli.de
myhostname = djp-web.de
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
一切/etc/postfix/virtual
似乎都很好。只是一堆条目,例如
domain.tld domain.tld
[email protected] [email protected]
domain.tld [name of corrosponding unix user]
[email protected] [name of corrosponding unix user]
@domain.tld [email protected]
我已经在 Virtualmin 论坛上发布了这个问题,但没有人知道答案。事实上,建议去询问 Ubuntu 社区。https://www.virtualmin.com/node/37986
答案1
删除/etc/postfix/virtual
或编辑以下行:
domain.tld domain.tld
domain.tld [name of corrosponding unix user]
我不确定你想让他们做什么,但这不是它应该做的事情,domain.tld 应该以 开始@
或者根本不存在,第一行没有意义,请参阅http://www.postfix.org/VIRTUAL_README.html