后缀外部SMTP身份validation – 错误的login用户?

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

550validation550失败 – 邮件服务器无法将邮件发送到root @ unifipi

mail.log

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 

main.cf

 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 

非常感激任何的帮助! 谢谢!

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

从名称可以是任何,如果这不是你想要的,或者你被允许模仿与该帐户,然后使用有效的地址

请参阅https://serverfault.com/a/674984/200560