私は 2 つの 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