我有两个Debian服务器:
web.example.com - LAMP web server mail.example.com - mail server with postfix, dovecot and mysql based user directories, auth required
现在我想要设置web.example.com使用mail.example.com发送电子邮件(例如由本地服务发送到[email protected]的邮件)。 我可以说,我希望mail.example.com在邮件传递中“信任”“web.example.com”。
我怎样才能达到这个目标?
要始终允许通过web.example.com在mail.example.com web.example.com ,可以将web.example.com添加到您的可信networking:
mynetworks = 127.0.0.1/32 [your IPv4 and IPV6 addresses] [IP of web.example.com]
或者,您可以使用smtpd_client_restrictions :
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/maps/client_access
与/etc/postfix/maps/client_access的以下内容:
[IP of web.example.com] OK