And*_*dor 2 email-server postfix
我有两台 Debian 服务器:
web.example.com - LAMP web server
mail.example.com - mail server with postfix, dovecot and mysql based user directories, auth required
Run Code Online (Sandbox Code Playgroud)
现在我想设置 web.example.com 以使用 mail.example.com 发送电子邮件(例如由本地服务发送到 root@web.example.com 的那些)。我可以说我希望 mail.example.com 在邮件传递中“信任”“web.example.com”。
我怎样才能实现这个目标?
要始终允许realying上mail.example.com
通过web.example.com
,你可以添加web.example.com
到您的可信网络:
mynetworks = 127.0.0.1/32 [your IPv4 and IPV6 addresses] [IP of web.example.com]
Run Code Online (Sandbox Code Playgroud)
或者,您可以使用smtpd_client_restrictions
:
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/maps/client_access
Run Code Online (Sandbox Code Playgroud)
具有以下内容/etc/postfix/maps/client_access
:
[IP of web.example.com] OK
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
55 次 |
最近记录: |