2009-04-08から1日間の記事一覧

postfixが自動起動設定になっているか調べる

# ./sbin/chkconfig --listサービスの一覧が表示されるので、postfixの行に「3:on」という記述があるかどうか調べる。もしoffになっていたら、「chkconfig postfix on」でサービスを追加する。

postfixエラーについて

postdrop: warning: unable to look up public/pickup: No such file or directorypostfixが開始されていないと上のようなエラーがでる# ./sbin/service postfix restart Shutting down postfix: [FAILED] Starting postfix: [ OK ]

通常使用するMTAを選択する

# ./usr/sbin/alternatives --config mta There are 2 programs which provide 'mta'. Selection Command ----------------------------------------------- * 1 /usr/sbin/sendmail.sendmail + 2 /usr/sbin/sendmail.postfix Enter to keep the current sel…

postfixが起動しているかどうか確認する

# mail root Subject: test This is test mail . Cc:# mail -n

メールログの見方

cat /var/log/maillog

不正中継テスト

不正中継テスト参考 http://hnw.dip.jp/server/postfix.html メールサーバの不正中継テストを行ってくれるサイトがあるので利用させてもらいます。 Abuse.net: Home Page の Mail relay testing を利用させてもらいます。 http://www.abuse.net/relay.html英…

php5-imap のインストール

アプリをいれたところ php5-imapがないと怒られたインストール # yum -y install php-imap再起動 # /etc/init.d/httpd reloadOK!

chkconfigコマンドとは

chkconfigコマンドとは 起動スクリプトを管理する。「/etc/rc[0-6].d」ディレクトリの配下にあるシンボリック・リンク・ファイル(実体は「/etc/init.d」ディレクトリ配下)の生成や変更・削除,各サービスの起動に関する設定をする。 要するに再起動したとき…

sendmailを停止して自動起動しないようにする

sendmailのサービスをストップ # /etc/rc.d/init.d/sendmail stop Shutting down sm-client: [ OK ] Shutting down sendmail: [ OK ] sendmailの自動起動を解除 # ./sbin/chkconfig --del sendmailsendmailを使わないなら以下のコマンドでアンインストールし…

postfixのパッケージ確認

rpm -q postfix

postfixをインストールする

postfixをインストールする# yum install postfixpostfixを確認する# rpm -q postfix postfix-2.3.3-2.1.el5_2 # cd /etc/postfixバックアップのためコピーする#cp main.cf main.cf.090408.backup