后缀:本地收件人表中的用户未知(仅限主域/主机名)

后缀:本地收件人表中的用户未知(仅限主域/主机名)

我使用虚假主机名配置了 postfix 以避免此错误...但我需要使用真实域来设置 rDNS。

当我发送邮件到[电子邮件保护]我收到以下错误:

postfix/smtpd[3540]: NOQUEUE: reject: RCPT from mail-oln040092065078.outbound.protection.outlook.com[40.92.65.78]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table;

该表已为试图发送邮件的用户配置,我也没有忘记重新生成数据库文件 ( sudo postmap /etc/postfix/vmailbox)。该错误根本没有任何意义!

使用另一个域名myhostname将“修复”先前受影响的域名的错误,但新指定的域名将遭受同样的损失,这就是我使用假域名的原因。

现在,我无法继续避免它,那么有人知道为什么我会在主域中收到该错误吗?

# /etc/postfix/main.cf

compatibility_level = 2
queue_directory = /var/spool/postfix
command_directory = /usr/bin
daemon_directory = /usr/lib/postfix/bin
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.example.com
mydestination = $mydomain, localhost.$mydomain, localhost, localhost.localdomain
unknown_local_recipient_reject_code = 550
mynetworks_style = host
alias_maps = hash:/etc/postfix/aliases
alias_database = $alias_maps
home_mailbox = Maildir/
debug_peer_level = 2
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/bin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix
inet_protocols = ipv4
meta_directory = /etc/postfix
shlib_directory = /usr/lib/postfix
virtual_mailbox_domains = another.com yetanother.com
virtual_mailbox_base = /mail
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 50
virtual_uid_maps = static:73
virtual_gid_maps = static:73
virtual_alias_maps = hash:/etc/postfix/virtual # empty (comments only)
mailbox_size_limit = 0
virtual_mailbox_limit = 0

# TLS
#tls_high_cipherlist=EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:AES256-SHA:CAMELLIA128-SHA:AES128-SHA
tls_high_cipherlist=EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256$
tls_random_source=dev:/dev/urandom

# Incoming
smtpd_use_tls=yes
smtpd_tls_auth_only=yes
smtpd_enforce_tls=yes
smtpd_tls_protocols=!SSLv2:!SSLv3:!TLSv1:!TLSv1.1:TLSv1.2
smtpd_tls_mandatory_protocols=!SSLv2:!SSLv3
smtpd_tls_exclude_ciphers=aNULL:eNULL:EXPORT:EXP:3DES:DES:DSS:RC4:SEED:ECDSA:MD5:PSK:aECDH:EDH-DSS-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:KRB5-DES:CBC3-SHA:CAMELLIA256-SHA:MEDIUM:LOW
smtpd_tls_mandatory_ciphers=HIGH
smtpd_tls_received_header=yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_security_level=encrypt
smtpd_tls_cert_file=/etc/ssl/certs/server.crt
smtpd_tls_key_file=/etc/ssl/private/server.key
smtpd_tls_loglevel=1
smtpd_tls_eecdh_grade=ultra

# Outgoing
smtp_use_tls=yes
smtp_tls_protocols=!SSLv2:!SSLv3:!TLSv1:!TLSv1.1:TLSv1.2
smtp_tls_mandatory_protocols=!SSLv2:!SSLv3
smtp_tls_exclude_ciphers=aNULL:eNULL:EXPORT:EXP:3DES:DES:DSS:RC4:SEED:ECDSA:MD5:PSK:aECDH:EDH-DSS-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:KRB5-DES:CBC3-SHA:CAMELLIA256-SHA:MEDIUM:LOW
smtp_tls_mandatory_ciphers=HIGH
smtp_tls_security_level=may
#smtp_tls_policy_maps=may
smtp_tls_cert_file=/etc/ssl/certs/server.crt
smtp_tls_key_file=/etc/ssl/private/server.key
smtp_tls_loglevel=1

# SASL
smtpd_sasl_type=dovecot
#smtp_sasl_type=dovecot
smtpd_sasl_auth_enable=yes
#smtp_sasl_auth_enable=yes
broken_sasl_auth_clients=no
smtpd_sasl_authenticated_header=yes
smtpd_sasl_local_domain=$myhostname
smtpd_sasl_security_options=noplaintext, noanonymous
#smtp_sasl_security_options=noplaintext, noanonymous
smtpd_sasl_path=private/auth
#smtp_sasl_path=private/auth

smtpd_recipient_restrictions=permit_sasl_authenticated, permit_mynetworks, check_relay_domains, reject_unauth_destination

# prevent leaking valid e-mail addresses
disable_vrfy_command=yes

#smtpd_client_restrictions

相关内容