Postfix 外部 SMTP 身份验证-错误的登录用户?

Postfix 外部 SMTP 身份验证-错误的登录用户?

我正在尝试利用 Postfix 作为 Raspberry Pi 上的 SMTP 中继器,以允许网络上的其他系统通过电子邮件发送出站系统消息。似乎存在两个问题,(1) 它没有以指定用户的身份进行身份验证,(2) 它似乎试图将电子邮件消息传递到远程服务器上的本地邮箱,如下所示:

550-验证失败 550-邮件服务器无法将邮件递送至 root@unifipi

邮件日志

Jan 10 21:43:47 UniFiPi postfix/master[28775]: reload -- version 2.11.3, configuration /etc/postfix
Jan 10 21:43:50 UniFiPi postfix/pickup[786]: 31D8C3F9F5: uid=0 from=<root@UniFiPi>
Jan 10 21:43:50 UniFiPi postfix/cleanup[793]: 31D8C3F9F5: message-id=<[email protected]>
Jan 10 21:43:50 UniFiPi postfix/qmgr[785]: 31D8C3F9F5: from=<root@UniFiPi>, size=383, nrcpt=1 (queue active)
Jan 10 21:43:51 UniFiPi postfix/smtp[795]: 31D8C3F9F5: to=<[email protected]>, relay=mail.mydomain.com[170.75.252.58]:587, delay=1, delays=0.08/0.08/0.67/0.22, dsn=5.0.0, status=bounced (host mail.mydomain.com[170.75.252.58] said: 550-Verification failed for <root@UniFiPi> 550-The mail server could not deliver mail to root@unifipi.  The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command))
Jan 10 21:43:51 UniFiPi postfix/cleanup[793]: 412C53F9F6: message-id=<[email protected]>
Jan 10 21:43:51 UniFiPi postfix/bounce[797]: 31D8C3F9F5: sender non-delivery notification: 412C53F9F6
Jan 10 21:43:51 UniFiPi postfix/qmgr[785]: 412C53F9F6: from=<>, size=2640, nrcpt=1 (queue active)
Jan 10 21:43:51 UniFiPi postfix/qmgr[785]: 31D8C3F9F5: removed
Jan 10 21:43:52 UniFiPi postfix/smtp[795]: 412C53F9F6: to=<root@UniFiPi>, relay=mail.mydomain.com[170.75.252.58]:587, delay=0.75, delays=0.02/0/0.51/0.22, dsn=2.0.0, status=sent (250 OK id=1cR8tC-003Asy-Tc)
Jan 10 21:43:52 UniFiPi postfix/qmgr[785]: 412C53F9F6: removed

主配置文件

smtpd_banner = $myhostname ESMTP $mail_name (Raspbian)
biff = no
append_dot_mydomain = no
readme_directory = no
myhostname = unifipi.home.lan
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:[email protected]:password
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
smtp_use_tls = yes
header_size_limit = 4096000
relayhost = [mail.mydomain.com]:587
inet_interfaces = all
inet_protocols = all

任何帮助都将不胜感激!谢谢!

答案1

您必须重写您的源以与您的 sasl auth 用户相同。

发件人姓名可以是任意的,如果这不是你想要的,或者你被允许冒充该帐户,那么使用有效的发件人地址

https://serverfault.com/a/674984/200560

相关内容