やる夫がpostfixのログを少しだけ確認したようです。
Postfixのログを確認してみる。
メールサービスを運営しているのであれば、ガッツリ覗いてみるのかもしれませんが、登録メール、確認メール、通知メールの送信及び受信だけであれば、メールがちゃんと送られているかくらいの確認になるかと思います。現状ホトンド確認しません。
# grep AF19500097 /var/log/maillog
Jun 24 08:51:10 indigo01 postfix/smtpd[10342]: AF19500097: client=localhost[127.0.0.1]
Jun 24 08:51:10 indigo01 postfix/cleanup[10343]: AF19500097: message-id=<20080623235110.AF19500097@neet.ne.jp>
Jun 24 08:51:10 indigo01 postfix/qmgr[26841]: AF19500097: from=<system@neet.ne.jp>, size=975, nrcpt=1 (queue active)
Jun 24 08:51:11 indigo01 postfix/smtp[10392]: AF19500097: to=<yaranaio@neet.com>, relay=neet.com[192.xxx.xxx.xxx], delay=1, status=sent (250 Ok: queued as CA65D70)
Jun 24 08:51:11 indigo01 postfix/qmgr[26841]: AF19500097: removed
AF19500097はセッションIDになります。fromは送信元、toは送信先、status=sentは、正常に送信できたことを意味します。
pflogsummのインストール
もう少し詳しく確認したい人は、pflogsummをインストールするとよいと思われます。
# yum -y install postfix-pflogsumm
rpmからだと下記でインストール。
# rpm -ivh perl-Date-Calc-5.3-9.i386.rpm
error: Failed dependencies:
perl(Bit::Vector) is needed by perl-Date-Calc-5.3-9.i386
Suggested resolutions:
perl-Bit-Vector-6.3-3.i386.rpm
# rpm -ivh perl-Bit-Vector-6.3-3.i386.rpm perl-Date-Calc-5.3-9.i386.rpm
Preparing... ########################################### [100%]
1:perl-Date-Calc ########################################### [ 50%]
2:perl-Bit-Vector ########################################### [100%]
# rpm -ivh postfix-pflogsumm-2.2.10-1.RHEL4.2.i386.rpm
Preparing... ########################################### [100%]
1:postfix-pflogsumm ########################################### [100%]
コマンドの実行
# perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog
Postfix log summaries for Jun 4
Grand Totals
------------
messages
2 received
2 delivered
0 forwarded
0 deferred
0 bounced
2 rejected (50%)
0 reject warnings
0 held
0 discarded (0%)
14379 bytes received
14379 bytes delivered
1 senders
1 sending hosts/domains
2 recipients
1 recipient hosts/domains]#
perl /usr/sbin/pflogsumm -d yesterday /var/log/maillog
Postfix log summaries for Jun 4
こんな感じで出力されます。
| 固定リンク | コメント (0) | トラックバック (0)












最近のコメント