« ホントに分煙してる? | メイン | sendmail でメールを送る »

sendmail: ホスト名を変更する

あとで読む

sendmail を使っているサーバーで、メールReceivedヘッダなどに記録されるホスト名を変更するには sendmail.cf と submit.cf の Dj でホスト名を指定する(ように *.mcを書き換える)。例えば、groundwalker.com に変更するなら {sendmail,submit}.mc に

define(`confDOMAIN_NAME',`groundwalker.com')dnl

を加えて、make後、sendmailrestart

補足:sendmailバージョン 8.12から ローカルからのメール送信時にに submit.cf を使うようになっているので、こちらにも設定が必要なのであった。

sendmail RELEASE NOTES から引用:

The .cf file is chosen based on the operation mode. For -bm (default), -bs, and -t it is submit.cf if it exists for all others it is sendmail.cf (to be backward compatible). This selection can be changed by the new option -Ac or -Am (alternative .cf file: client or mta). See sendmail/SECURITY.

Trackbacks

Trackback URL:
http://groundwalker.com/mt/gwtb.cgi/342

« ホントに分煙してる? | メイン | sendmail でメールを送る »

スポンサー

関連ブログ

あわせて読みたい
Powered by
Movable Type 3.34
track feed
groundwalker

連絡先