Postfix 可以发送但不能接收邮件-收件人地址被拒绝

Postfix 可以发送但不能接收邮件-收件人地址被拒绝

我有一台 Ubuntu 14.04 服务器,其中安装了 Postfix 2.11.0 和 2.2.9

从上周末开始,我的邮件服务器只能发送电子邮件,而不能接收电子邮件。任何帮助都非常感谢!:-)

mail.log 文件中的错误显示:

Sep 17 09:31:21 trinity postfix/smtpd[7786]: connect from outmail235.swisscom.com[193.222.81.235]
Sep 17 09:31:21 trinity postfix/smtpd[7786]: NOQUEUE: reject: RCPT from outmail235.swisscom.com[193.222.81.235]: 550 5.1.1 <n0_ah@*masked*>: Recipient address rejected: User unknown in virtual mailbox table; from=<*masked*@*masked*rants.ch> to=<n0_ah@*masked*> proto=ESMTP helo=<mail.swisscom.com>
Sep 17 09:31:21 trinity postfix/smtpd[7786]: disconnect from outmail235.swisscom.com[193.222.81.235]

这是 postconf -nf 的输出:

alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = $alias_maps $virtual_alias_maps
mailman_destination_recipient_limit = 1
mydestination = $myhostname localhost.$mydomain localhost
mydomain = roundedge.ch
myhostname = mail.roundedge.ch
mynetworks = 127.0.0.0/8 1.2.3.4/32 5.9.194.36
postscreen_greet_action = enforce
relay_domains = $mydestination
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_new_tls_session_rate_limit = 10
smtpd_client_restrictions = check_client_access cidr:/etc/postfix/drop.cidr
smtpd_data_restrictions = reject_multi_recipient_bounce
smtpd_delay_reject = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated,
    reject_non_fqdn_hostname, reject_invalid_hostname, permit
smtpd_recipient_restrictions = reject_unauth_pipelining,
    reject_non_fqdn_recipient, reject_unknown_recipient_domain,
    permit_sasl_authenticated, permit_mynetworks, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated,
    reject_non_fqdn_sender reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/ssl/private/startssl/sub.class2.server.ca.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/private/wildecard/server.crt
smtpd_tls_key_file = /etc/ssl/private/wildecard/server.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
    proxy:ldap:/etc/postfix/ldap_virtual_aliases.cf
virtual_gid_maps = static:5000
virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap_virtual_recipients.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000

答案1

说实话 - 错误状态非常清楚,问题出在哪里。在您的虚拟邮箱表中。

它说没有找到用户,因此没有接受传入的邮件。

我看到您正在使用 ldap 来存储虚拟用户/邮箱和别名记录 - 因此首先检查您是否可以连接到您的 ldap 服务器,如果可以的话,检查您的 ldap 记录是否顺序正确。

相关内容