http://www.inter7.com/qmailmrtg7/

This only does totals from the server basis.  However it does have an
example of how to log the pop3 sessions using multilog.  Pretty much if you
have used any of the qmail-howto's you should just have to add -v to the
tcpserver execution and it will start logging your pop sessions.

Here's and example of my scripts.

qmail-pop3d/run
#!/bin/sh
VPOPMAILUID=`id -u vpopmail`
VCHKPWGID=`id -g vpopmail`
PATH="/usr/tank/tcpserver/bin:/usr/tank/daemontools/bin:/usr/tank/qmail/bin"
exec softlimit -m 20000000 tcpserver -v -c256 -H -u $VPOPMAILUID -g
$VCHKPWGID -R 0 pop-3 \
/usr/tank/qmail/bin/qmail-popup mail.commspeed.net \
/usr/tank/qmail/vpopmail/bin/vchkpw /usr/tank/qmail/bin/qmail-pop3d
./Maildir/ 2>&1

qmail-pop3d/log/run
#!/bin/sh
exec /usr/tank/daemontools/bin/setuidgid qmaill
/usr/tank/daemontools/bin/multilog t 2500000 /var/log/qmail/qmail-pop3d

Hope this helps.

Joe Modjeski
Systems Administrator
CommSpeed


----- Original Message -----
From: "Justin Heesemann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 21, 2001 3:20 AM
Subject: Re: traffic accounting


> > a question for all of you running vpopmail in an ISP-like environment.
How
> > do you do the mail traffic accounting ? are there any good log
analyzers,
> > which give a by user overview of the mail-traffic. As I am using
smtp-auth
> > I suppose that it should be possible to account each bit of traffic to
one
> > user, as the information should be available, but I did not succeed in
> > finding a good script and I'm not capable of doing one myself.
>
> well i wanted to do that too..
> the problem seems to be, that there is no logfile for pop3 sessions. only
the
> authentication is logged..
> so i generally use the smpt log. everything with a
>
> TO: [EMAIL PROTECTED]
>
> is counted twice. cause everything that comes in for some customer, is at
> least fetched once or forwarded to another adress.
> i know that this is far from true pop3 traffic, but the solution i was
told
> (log the COMPLETE! pop3 session, with everything the pop3 server sends and
> receives, meaning: every PACKET!) sounded a bit strange to me.
>
> Regards,
> Justin
>
>


Reply via email to