Jon,
an older posting from Gordon (cannot find it at the moment) pointed to that one:
http://www.hjp.at/projekte/qpsmtpd/log-tools/There are 2 scripts for most of the job I believe:
'collapse_qpsmtpd_conn' which says in it's description:
=DESCRIPTION
collapse_qpsmtpd_conn extracts commands and responses from qpsmtpd log
files and prints a single line for each connection with the entire SMTP
dialog. The output is intended to be easily filtered with grep or awk.
Connections are identified by their PID. To avoid concatenating two
connections with the same PID only state about the last 100 connections
is kept.
The output also can be used as the input for the second script 'transaction-results'. According to the website, this script creates the nice output.
I have played with the first script and that was easy to run and it's output I believe should be much easier to be used (but I cannot do it .. not good enough). Thinking to automate this, I am unclear how to integrate this with the log rotation?
I gave up when trying to use the second script due to it's dependencies, etc.
If you can figure out more and believe it's a viable way to go, I am happy to try to help with testing if that would be of any help to you?
Michael (Tauranga)