Qmail
[Top] [All Lists]

tcpserver+recordio logging issue

To: qmail@list.cr.yp.to
Subject: tcpserver+recordio logging issue
From: "d tbsky" <tbskyd@gmail.com>
Date: Tue, 28 Nov 2006 21:12:00 +0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=FrEw/1dYVQoMA0F4KZvHXUGO359tTWU92e4RCGG8WImwToPpWGrYi6+7C1ylqTuRTb1kxRVJr3a8+3We3GkXDzJZnVooA915nGFCZhaD6xUbzqqofglt4Gqaev0JnNAV0c46C7JqfLIxMadnaBHy69/eIiuef5FvewhEgcsDqQQ=
Domainkey-status: good (test mode)
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
hi:
   i want to write a simple program to analyze qmail-smtpd session data logged  by tcpserver and
recordio, so i can find out the bounced sender and reason. but after looking at the logged raw data,
i m confused.

the smtp session log start at:
tcpserver: tcpserver: pid xxxxx from xxx.xxx.xxx.xxx

but i can not find a good way to figure out the last log message of  smtp-session.
most smtp sessions log will end like this:
10530 > [EOF]

but some smtp sessions didn't have that "> [EOF]" line.

most smtp sessions will get tcpserver status as last message like this:
tcpserver: end 5048 status 0

but somtimes that message is not the last. like this:
tcpserver: end 5165 status 256
tcpserver: status: 5/40
5165 > 220 xxxxxxxxxxxxxxxx
5165 > [EOF]

why sometimes "tcpserver: end xxxx status xxxx"  is not the last message of smtp session log?
anyway i can make it  allways the last message?
thanks a lot for your help!!

Regards,
tbskyd
<Prev in Thread] Current Thread [Next in Thread>