1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

postfixで配信経路を指定

Last updated at Posted at 2015-04-19

main.cfでtransport_maps指定

/etc/postfix/main.cf
+ transport_maps = hash:/etc/postfix/transport
/etc/init.d/postfix restart

transportファイル

/etc/postfix/transport
myaddr@icloud.com smtp:192.168.100.4
icloud.com        smtp:mx1.mail.icloud.com

.mydomain.com     smtp:localhost
mydomain.com      smtp:localhost
設定反映
postmap transport
  • myaddr@icloud.com にメールを送るときは 192.168.100.4 に配信
  • *@icloud.com にメールを送るときは mx1.mail.icloud.com に配信
  • @.mydomain.com にメールを送るときは localhost から配信
  • *@mydomain.com にメールを送るときは localhost から配信
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?