![电子邮件未按照 MX 记录重定向至企业电子邮件服务器](https://linux22.com/image/736872/%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%9C%AA%E6%8C%89%E7%85%A7%20MX%20%E8%AE%B0%E5%BD%95%E9%87%8D%E5%AE%9A%E5%90%91%E8%87%B3%E4%BC%81%E4%B8%9A%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
我已经购买了企业电子邮件,因此所有电子邮件都应按照 MX 记录[email protected]
发送至。privateemail.com
anikadigital.in
以下是 anikadigital.in 的 MX 查询:
DNS server handling your query: localhost
DNS server's address: 127.0.0.1#53
Non-authoritative answer:
anikadigital.in mail exchanger = 10 mx1.privateemail.com.
anikadigital.in mail exchanger = 10 mx2.privateemail.com.
但文件中仍然出现此错误syslog
:
A091021432: to=<[email protected]>, relay=none, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
怎么可能?
这是 postfix 配置。我破坏了其他域名,但我保留了 anikadigital.in 域名:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
always_bcc = [email protected]
append_dot_mydomain = no
biff = no
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, localhost, localhost.localdomain, localhost
myhostname = host.digittions.in
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 (Ubuntu)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
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_domains = digittions.in indiacc.com cffd.com def.com duplicateticket.com karera.digitaltransactions.in mail.digittions.in idoff.com accrec.in anikadigital.in passport.anikadigital.in pan.anikadigital.in tpst.in
virtual_alias_maps = hash:/etc/postfix/virtual
答案1
您专门配置了 Postfix 来处理 anikadigital.in 的邮件virtual_alias_domains
。当您在此处放置域名时,Postfix 始终会在本地递送邮件。
如果邮件不打算在本地投递,则域名不得出现在virtual_alias_domains
、virtual_alias_maps
或myhostname
中mydestination
。
答案2
造成这种情况的可能原因有多种:
- 发送方的 DNS 结果已过期
- 不遵守 SMTP 标准的发件人
- 垃圾邮件机器人
- ...
如果您拥有可通过互联网访问的服务,那么就会有人或机器人试图滥用它。
您的服务器拒绝了邮件,这很好,但您对此无能为力。基本上,只需忽略它即可。