如果服务器主机名包含在电子邮件地址中,POSTFIX只接收电子邮件

我有这种情况:

postix / SASL / dovecot的

我最近添加了dovecot和sasl,我只能收到电子邮件postfix,如果我使用这种电子邮件格式:[email protected]

如果我使用所需的格式:[email protected]有反弹到发件人电子邮件地址5.0.0 smtp; 5.74:中继访问被拒绝

我的MX正在指向

我只有一个域名。

postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_at_myorigin = yes append_dot_mydomain = yes biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix inet_interfaces = all inet_protocols = ipv4 mailbox_command = mailbox_size_limit = 0 masquerade_domains = $mydomain mydestination = $myhostname,$mydomain,localhost mydomain = domain.cz myhostname = host.domena.cz mynetworks = 192.168.1.0/28 127.0.0.0/8 myorigin = /etc/mailname >> is hostname.domain.cz readme_directory = no recipient_delimiter = + relay_domains = $mydestination relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,permit_auth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_ask_ccert = yes smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/cacert.pem smtpd_tls_key_file = /etc/ssl/private/privkey.pem smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes 

有人可以提出解决scheme

忘了提 ,难的部分是没有日志logging。 /var/log/mail.log/var/log/mail.err是空的。 有趣的部分是,我可以通过www.dnsexit.com收到电子邮件,但其他3个邮件客户端,包括networking邮件服务器不会转到trh

通过正确的MXlogging设置解决