postfixの設定作業
設定途中のpostfixの構築を引継ぎ
sendmailの停止
/etc/init.d/sendmail stop
mtaの切り替え
alternatives --config mta 2 プログラムがあり 'mta' を提供します。 選択 コマンド ----------------------------------------------- *+ 1 /usr/sbin/sendmail.sendmail 2 /usr/sbin/sendmail.postfix Enter を押して現在の選択 [+] を保持するか、選択番号を入力します:2
なぜかchkconfig が追加されていなかったので、追加
less /etc/init.d/postfix # chkconfig: 2345 80 30 chkconfig --add postfix
postfixを起動
/etc/init.d/postfix start Sep 13 10:31:52 DB1 postfix/cleanup[24455]: fatal: open database /etc/postfix/virtual.db: No such file or directory Sep 13 10:31:53 DB1 postfix/master[24452]: warning: process /usr/libexec/postfix/cleanup pid 24455 exit status 1 Sep 13 10:31:53 DB1 postfix/master[24452]: warning: /usr/libexec/postfix/cleanup: bad command startup -- throttling
とエラーが出た。ので、main.cfを見てみると、前任者が
virtual_alias_maps = hash:/etc/postfix/virtual
と設定していたので、
postmap hash:/etc/postfix/virtual
として、postfixを再起動。