メールサーバー切替え(CentOS5.4)

システムで使用するメールサーバー機能をsendmailからPostfixに切替えます。
root権限で、下記のコマンドを実行

 alternatives --config mta


 There are 3 programs which provide 'mta'.

  Selection Command
 -----------------------------------------------
  1 /usr/sbin/sendmail.sendmail
 *+ 2 /var/qmail/bin/sendmail
  3 /usr/sbin/sendmail.postfix

 Enter to keep the current selection[+], or type selection number: 3

 ・sendmail自動起動設定解除
  chkconfig sendmail off

 ・sendmail自動起動設定解除確認(ランレベル確認)
  chkconfig --list sendmail
  sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off

 ・Postfix自動起動設定
  chkconfig postfix on

 ・Postfix自動起動設定確認(ランレベル確認)
  chkconfig --list postfix
  postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off

コメント