On Mon, 8 Oct 2001, Cesar Garcia Ramirez wrote:

> Dear Friends...
>
> I have qmail with LDAP-CONTROL-DASH_TRICK patches working ok, (if
> somebody want my sources, no problem...).
>
> But i want to log the pop3 transactions, not all traffic, only the
> logical transactions, user authentications, how much messages, etc... (i
> use auth_pop and qmail_pop3d)
>
> Any easy Idea ???
>

I did some patches (and enabled some code allready there) in qmail popup
and auth_pop (qmail-ldap), which gives output like:


qmail:/var/log$ tail -f maillog |grep POP3
Oct  8 15:54:25 qmail qpopup[18360]: POP3 Connection from 65.7.137.33
[c1349164-a.parker1.co.home.com]
Oct  8 15:54:26 qmail auth_pop[18361]: POP3 Authentication Succeeded for
[randy.scot] from 65.7.137.33 [c1349164-a.parker1.co.home.com]
Oct  8 15:54:26 qmail qmail-pop3d: POP3 user:
/maildisk/mail.usld.net/randy.scot, mails: 0, size: 0

Oct  8 15:54:31 qmail qpopup[18369]: POP3 Connection from 208.45.0.165
[NO_REVERSE_DNS]
Oct  8 15:54:31 qmail auth_pop[18370]: POP3 Authentication Succeeded for
[danny.siren] from 208.45.0.165 [NO_REVERSE_DNS]
Oct  8 15:54:31 qmail qmail-pop3d: POP3 user:
/maildisk/qwestisp.net/danny.siren, mails: 0, size: 0

Oct  8 15:54:48 qmail qpopup[18385]: POP3 Connection from 208.47.0.49
[bob.qwestip.net]
Oct  8 15:54:51 qmail auth_pop[18388]: POP3 Authentication Succeeded for
[bob] from 208.47.0.251 [bob.qwestip.net]
Oct  8 15:54:51 qmail qmail-pop3d: POP3 user: /netapp/real/home/bob,
mails: 48, size: 368344


Reply via email to