Dewald Strauss wrote:
> 
> 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 figured this out just last night after a bit of experimentation. Let's see if
I can remember everything I did...

1. Figure out where your mail log files are. If you're using the stock
/var/qmail/rc, splogger sends the output of qmail-send to syslog. Syslog on
RH6.0 is configured to log mail-related messages to /var/log/maillog

2. Prepare your logfiles for the matchup program. For you this means stripping
off the timestamps and junk that syslog ads. I did this via 

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

3. You then send the stripped log through matchup 

cat /tmp/maillog-pre-matchup | /usr/local/qmailanalog/bin/matchup >
/tmp/maillog-matchup

(I got an error message here about fd 5 not being open. I think matchup prints
pending messages to fd 5.)

4. Then you can generate stats from the processed maillog using the z* utilities
in /usr/local/qmailanalog/bin/

cat /tmp/maillog-matchup | /usr/local/qmailanalog/bin/zoverall >
/tmp/zoverall-out

You can then read /tmp/zoverall-out, which is a summary of what qmail has been
doing.

HTH
Brian

--
[EMAIL PROTECTED]     
http://www.baquiran.com 
US Fax: (603) 908-0727
AIM: bbaquiran

Reply via email to