CentOS 5 での Sendmail の設定方法

August 26, 2007

下記は設定例、m4 でテンプレート(.mc)をコンパイルして設定を標準出力されるので(.cf)として書き出す。

# cd /etc/mail
# cp -p sendmail.cf sendmail.cf.bak
# cp -p sendmail.mc sendmail.mc.bak
# vi sendmail.mc ← ここで設定を編集する
# m4 sendmail.mc > sendmail.cf
# /etc/init.d/sendmail restart

tilfin freelance software engineer