Dear List,

I use the qpsmtpd with the qpsmtpd-forkserver and syslog server logging.

logging/syslog loglevel LOGDEBUG

I must create some reports and the tools on
http://www.hjp.at/projekte/qpsmtpd/log-tools/

are not able to analyze this log, so I have tried to create a own
analyser based on the pid.

The problem is that the logentries are not uniq.

Same pid for more then one Mail.
Time in second is not uniq enough.

I thought to add a 'session-id', handle-id, ....

The question is must I add something into the core or can I try to
create a 'session-logging' plugin which handle all log writing requests
and add a uniq ID in front of the normal log entry.

For example

normal lines:

###
Jul 25 23:10:30 qpsmtpd[21958]: Accepted connection 1/15 from
98.194.44.167 / c-98-194-44-167.hsd1.tx.comcast.net

Jul 25 23:10:30 qpsmtpd[21958]: Connection from
c-98-194-44-167.hsd1.tx.comcast.net [98.194.44.167]


Jul 25 23:10:31 qpsmtpd[21958]: Checking 167.44.194.98.zen.spamhaus.org
for TXT record in the background

Jul 25 23:10:31 qpsmtpd[21958]: Plugin dnsbl, hook connect
returned DECLINE

Jul 25 23:10:03 qpsmtpd[21955]: dispatching RCPT TO: <...>
Jul 25 23:10:03 qpsmtpd[21955]: Plugin dnsbl, hook rcpt returned DENY,
http://www.spamhaus.org/query/bl?ip=77.76.4.93
###

new lines

###
Jul 25 23:10:30 qpsmtpd[21958]: SESSION Accepted connection 1/15 from
98.194.44.167 / c-98-194-44-167.hsd1.tx.comcast.net

Jul 25 23:10:30 qpsmtpd[21958]: SESSION Connection from
c-98-194-44-167.hsd1.tx.comcast.net [98.194.44.167]


Jul 25 23:10:31 qpsmtpd[21958]: SESSION Checking
167.44.194.98.zen.spamhaus.org for TXT record in the background

Jul 25 23:10:31 qpsmtpd[21958]: SESSION Plugin dnsbl, hook connect
returned DECLINE

Jul 25 23:10:03 qpsmtpd[21955]: OTHERSESSION dispatching RCPT TO: <...>
Jul 25 23:10:03 qpsmtpd[21955]: OTHERSESSION Plugin dnsbl, hook rcpt
returned DENY, http://www.spamhaus.org/query/bl?ip=77.76.4.93
###

What does you mean?

BR

Aleks

Reply via email to