我有兩台 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。我可以說我希望 mail.example.com 在郵件傳遞中「信任」「web.example.com」。
我怎樣才能實現這個目標?
答案1
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]
或者你可以使用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