6
4

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 2013-11-15

参考

hoge@allowdomain.co.jp だけ送信許可する場合の設定。

/etc/postfix/main.cf
  #relay_domains = $mydestination
+ relay_domains = allowdomain.co.jp
+ relayhost = 11.22.33.44
+ default_transport = error: Local delivery only!

これで許可しないドメイン宛にメールを送信しようとしても、
/var/log/maillogerror: Local delivery only!のメッセージが出力されるだけになる。

6
4
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
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?