gpt4 book ai didi

postfix-mta - 后缀 - status=bounced (未知用户 "myuser")

转载 作者:IT老高 更新时间:2023-10-28 12:37:04 26 4
gpt4 key购买 nike

我正在配置 Postfix,当通过 telnet 和 SMTP 进行验证时,我收到状态退回错误,未知用户:

错误日志:

postfix/local[18718]: 4590D7DC0A51: to=myuser@mydomain.example, relay=local, delay=9.8, delays=9.8/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user: "myuser")

“myuser”已经存在,但具有完整的域名:myuser@mydomain.example

用户验证:

 postmap -q myuser@mydomain.example mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

输出是:“1” - 所以我想没问题。

我的后缀配置:

root# postconf -n:
append_at_myorigin = yes
biff = no
config_directory = /etc/postfix
default_destination_concurrency_limit = 1
delay_warning_time = 8h
disable_vrfy_command = yes
dovecot_destination_concurrency_limit = 1
dovecot_destination_recipient_limit = 1
enable_original_recipient = yes
local_destination_concurrency_limit = 1
maximal_queue_lifetime = 6d
mydestination = mydomain.example
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_delay_reject = no
smtpd_hard_error_limit = 10
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_destination, reject_unauth_pipelining
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain
smtpd_soft_error_limit = 5
strict_rfc821_envelopes = yes
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_transport = dovecot

最佳答案

您已添加 mydestination = mydomain.example,因此将在 local_recipient_maps 中搜索 mydomain.example 的有效用户。从日志中可以清楚地看出,选择 local 投递代理来投递邮件,因为本地域类匹配。见 postfix address classes寻求更多帮助

如下修改你的 main.cf

#/etc/postfix/main.cf
mydestination =
# set to localhost localhost.$mydomain or remove mydomain.example for now
# Ensure that postmap -q mydomain.example mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf is returning mydomain.example and
# postmap -q myuser@mydomain.example mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf succeeds

关于postfix-mta - 后缀 - status=bounced (未知用户 "myuser"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18377813/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com