purazumakoiの[はてなブログ]

技術メモから最近はライフログも増えてきてます。

Postfix送信時に「warning: unable to look up public/pickup: No such file or directory」 エラー

コマンドラインからPostfixをインストールして
メールを送信しようと思って

#![メールのテスト送信]
echo test|mail system@turbine.co.jp

したら

warning: unable to look up public/pickup: No such file or directory

ってエラーがでた

要はPostfixが起動してませんよというエラー

fatal: bind 127.0.0.1 port 25: Address already in use


ということで

#MTA選択、Postfixの番号入力  これはその都度見れば書いてある
alternatives --config mta
#sendmailを停止・自動起動停止
/etc/rc.d/init.d/sendmail stop
chkconfig sendmail off
chkconfig --list sendmail

#postfix を起動・自動起動
/etc/rc.d/init.d/postfix start
chkconfig postfix on
chkconfig --list postfix