first, you have to know, that you MUST filter your logfiles throug 
qmailanalog/bin/matchup.
this nice piece of software finds together the lines of the log for 
each mail.
the output comes to STDOUT. lines matchup is not able to glue togehter 
come to channel 5.

since i do looging with splogger, i have to thorw away the timestamps 
at the beginning of the lines.
looks like this:

cat /var/log/maillog | awk '{$1="";$2="";$3="";$4="";$5="";print}' | 
matchup 1>tmp.1 5>tmp.5  

ok now we have a file tmp.1 with the results of matchup. now we can 
use the other programs:
to see the total sumary:
zoverall <tmp.1

to see the mails of a specific sender you can use:
xrecipient [EMAIL PROTECTED] <tmp.1 | zrecipients

note: the local. is the class needed for xrecipient.

the x files filter out specific lines, the zfiles sum them up, and 
bring them in human readable form.
the syntax is nearly the same for all the x's and z's. 
there are (small) manpages in qmailanalog/man but you have to put that 
into your $MANPATH to find them!

hope that helps and hapy analyzing

a.j.

>>>>>>>>>>>>>>>>>> Urspr�ngliche Nachricht <<<<<<<<<<<<<<<<<<

Am 1/26/00, 6:56:30 AM, schrieb "Dewald Strauss" 
<[EMAIL PROTECTED]> zum Thema qmail-analog:


> Hi everybody,

> I hope someone is willing to help me out with qmail-analog.
> I just don't understand how it is supposed to work.

> How do I get qmail-analog to give me stats on the maillog
> files ?

> Anybody out there willing to help a newbie ?

> I am running RedHat 6.0 on an intel machine,
> with qmail 1.03, vpopmail, qmailanalog-0.70

> thanks in advance
> Dewald


Reply via email to