LoginSignup
2
3

More than 5 years have passed since last update.

PostfixのSMTP Authを利用したメールリレー設定

Last updated at Posted at 2017-10-12

PostfixのSMTP Authを利用したメールリレー設定

ローカルネットワークに構築したPostfixサーバーからSMTP Authを要求するISP等のSMTPサーバーを利用してメールリレーする際の設定方法のメモ。

  1. /etc/postfix/smtp-auth を編集

    [SMTPサーバー名] [ユーザー名]:[パスワード]

  2. /etc/postfix/main.cf を編集して設定項目を追加
    ※注意: relayhostの設定についてカッコは付けたまま記述します

    relayhost = [SMTPサーバー名]:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/smtp-auth
    smtp_sasl_security_options = noanonymous

  3. postmap hash:/etc/postfix/smtp-auth を実行してハッシュマップDBを更新する

  4. service postfix reload でPostfixの設定をリロードする

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3