550 5.1.1 用户不存在:[email protected](回复 RCPT TO 命令))

550 5.1.1  用户不存在:[email protected](回复 RCPT TO 命令))

这真是要了我的命,我真的需要修复它,好吧,我正在 Gentoo 中为我的个人域名设置一个 Postfix Dovecot Sasl 服务器,并使用 FQDN,到现在为止我都无法超越它

May 27 21:11:05 mail postfix/lmtp[3857]: 5EF9F41D14B8: to=<[email protected]>, orig_to=<[email protected]>, relay=mail.midomain.com[private/dovecot-lmtp], delay=8823, delays=8822/0.13/0.1/0.05, dsn=4.1.1, status=SOFTBOUNCE (host mail.midomain.com[private/dovecot-lmtp] said: 550 5.1.1 <[email protected]> User doesn't exist: [email protected] (in reply to RCPT TO command))

我的 postconf 已打开https://dpaste.com/29GUHS4DQ

我知道这只是一件小事,但我没有找到它,我检查了邮箱的权限,/var/mail/* 上的每个文件上都有用户:mail,我取消了注释user_filter = (&(objectClass=posixAccount)(uid=%u))recipient_delimiter = +

我没有手动设置虚拟,因为只需要本地用户 UNIX 用户,还能做什么?

postconf -n
command_directory = /usr/sbin
compatibility_level = 3.6
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 4
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"
mailbox_transport = lmtp:unix:private/dovecot-lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
meta_directory = /etc/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain
mydomain = mydomain.com
myhostname = mail.mydomain.com
mynetworks = 10.8.0.0/16, 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
shlib_directory = /usr/lib64/postfix/${mail_version}
smtp_enforce_tls = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/ssl/certs/My_CA_Bundle.crt
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/mydomain_com.crt
smtpd_tls_key_file = /etc/ssl/private/mydomain.com.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3
smtpd_tls_protocols = !SSLv2,!SSLv3
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550

答案1

它是多夫科特拒绝邮件的人,请仔细阅读错误信息:。host mail.midomain.com[private/dovecot-lmtp] said: 550 5.1.1 <[email protected]> User doesn't exist: [email protected] (in reply to RCPT TO command)

还请注意错误消息的开头。为什么会变成?您是否有一个将用户映射到的别名?这是理想的吗?to=<[email protected]>, orig_to=<[email protected]>user@mail...[email protected][email protected]

此外,还有一个问题,这可能会将您的服务器放入各种黑名单中。您有空的local_recipient_maps。因此,Postfix 将收到并排队域内任何用户的邮件,但如果邮件被 Dovecot 进一步拒绝,它将被退回,生成A背向散射,很多人认为这是垃圾邮件。最好保留其中的默认设置unix:passwd.byname,这样 Postfix 会尽早拒绝此类邮件,并且不会生成反向散射。

相关内容