Skip to content

Instantly share code, notes, and snippets.

@tmtm
Created May 13, 2012 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmtm/2677237 to your computer and use it in GitHub Desktop.
Save tmtm/2677237 to your computer and use it in GitHub Desktop.

Postfix で特定ドメインだけ1宛先ずつメールを送る方法

  • master.cf

    smtp の行をコピーして smtp2 という名前の行を作る

      smtp2     unix  -       -       -       -       -       smtp
    
  • main.cf

    smtp2 は1宛先ずつ送るようにする

      smtp2_destination_recipient_limit = 1
    
  • transport

    特定ドメインでは smtp2 を使用して配送するようにする

      hoge.example.com        smtp2:
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment