LoginSignup
1
1

More than 5 years have passed since last update.

snippet: postfix

Last updated at Posted at 2016-10-10

Received ヘッダの削除

IGNORE 現在の行を入力から削除し、次の入力行を検査します。

/etc/postfix/header_checks
/^Received:.*127\.0\.0\.1*/ IGNORE
/^Received:.*192\.168\..*/ IGNORE
main.cf
- header_checks =
+ header_checks = regexp:/etc/postfix/header_checks
sudo postfix check && sudo service postfix restart

/etc/postfix/main.cf が無い場合(ubuntu)

cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
sudo dpkg-reconfigure postfix
service postfix reload

sudo apt install mailutils
mail | mail $USER
mail
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