AmazonEC2でPostfixインストール

AmazonEC2のクイックスタートで選択できるamazon linuxはデフォルトでsendmailが入ってますが
webからメール送信するとwebの表示までも遅くなるのでpostfixに変更。

postfixをインストール

# yum -y install postfix

sendmail停止

# /etc/rc.d/init.d/sendmail stop

sendmail自動起動設定解除

# chkconfig sendmail off

メールサーバー切替えpostfixを選択

# alternatives --config mta

Postfixを起動

# /etc/rc.d/init.d/postfix start 

Postfix自動起動設定

# chkconfig postfix on

参考URL
http://centossrv.com/postfix.shtml