Revision 3 as of 2011-09-26 07:20:17

Clear message
Locked History Actions

qmail

qmail

ログの見方

一般的にはmaillogに以下のようなログが現れる

Sep 26 03:49:08 foobar qmail: 1316976548.847204 new msg 81231893
Sep 26 03:49:08 foobar qmail: 1316976548.847259 info msg 81231893: bytes 2813 from <someone@foobar.sample.jp> qp 32384 uid 0
Sep 26 03:49:08 foobar qmail: 1316976548.864074 starting delivery 47716: msg 81231893 to local someone@foobar.sample.jp
Sep 26 03:49:08 foobar qmail: 1316976548.864129 status: local 1/10 remote 17/20
Sep 26 03:49:08 foobar qmail: 1316976548.865882 delivery 47716: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

このうち、最初の6つのフィールドはsyslogによるものということ。この意味は明らかだが、ただし、第6フィールドの「1316976548.847204」はunix時間であるらしい。おそらく、整数部分は1970/1/1 00:00:00からの経過秒数を表し、少数部分はそれ以下の秒数を表すと考えられる。つまり、通常の利用では、「Sep 26 03:49:08」という情報があれば良い。以下では、この6フィールドを除去した部分についてみていく。

new msg

参考