PostfixでSMTP Authクライアント

家サーバで、ダイナミックのIPだと、最近はOP25Bでメール送信ができなくなるので、PostfixでSMTP Authして上位(ISP)サーバへ送信する設定をしてみる。

/etc/postfix/main.cf

relayhost = [smtp.example.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain, login  ← 必要に応じて

/etc/postfix/relay_passwordを作成

smtp.example.com:587  Username:Password

relay_password.dbを作成

cd /etc/postfix/
postmap relay_password 

<参考>
Postfix でメールリレーの設定 (SMTP クライアント + SMTP Auth)(maruko2 Note.)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA