我正在尝试新的后缀设置。我尝试了很少的教程,但无论我做什么,发送到support@mydomain.com和info@mydomain.com的所有邮件都会发送到root。所有其他收件人都没事。
操作系统是CentOS 6.9最小化设置。 (Hetzner的专用服务器)
我放弃了。
/等/后缀/别名
root@mydomain.com support
postmaster@mydomain.com support
/etc/postfix/main.cf中
myhostname = realhostname
mydomain = realdomain.com
myorigin = $mydomain
home_mailbox = Maildir/
mynetworks = 127.0.0.0/8
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
mailbox_command =
virtual_alias_maps = hash:/etc/postfix/virtual
的/ var /日志/ maillog中
Aug 18 12:44:44 allfortips postfix/local[3409]: AC9F63600A7: to=<root@mydomain.com>, orig_to=<support@mydomain.com>, relay=local, delay=0.13, delays=0.13/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
我可以查看为什么会发生这种情况?
编辑:注意到信息@有同样的问题。
答案 0 :(得分:0)
不要忘记检查 / etc / aliases 不要!
编辑文件后,运行 newaliases