IMAP/POP traffic accounting

Mirosław Jaworski mjaw at ikp.pl
Thu Nov 30 10:35:51 EST 2006


On Wed, 2006-11-29 at 13:23 -0500, Anthony Tibbs wrote:
> I believe there was some mention of this in the past, but I'm wondering 
> whether there are any known efforts to implement network traffic accounting 
> in the later versions of Cyrus, or if this is still something that hasn't 
> been dealt with.  I am pondering possibly tackling this, but I'm not really 
> familiar with the Cyrus code and would rather not reinvent the wheel if it's 
> already in the works.

Well, 'effort' is definitely too big word for the hack we use.
Our support was used to some old popper log format, so we have made
hack resulting in such lines:

User who (downloaded and) deleted 8 messages, 663454 bytes total.

Nov 30 16:27:16 mail1 pop3[19762]: login: [83.15.90.206] t63877a
plaintext User logged in
[...]
Nov 30 16:27:31 mail1 pop3[19762]: stats: t63877a 8 663454 0 0

User who didn't (downloaded and) deleted any messages; has 35 messages
in his INBOX, 10785042 bytes total:

Nov 30 16:18:59 mail1 pop3[19360]: login: [83.31.77.74] po30533
plaintext User logged in
[...]
Nov 30 16:19:00 mail1 pop3[19360]: stats: po30533 0 0 35 10785042


While it makes sense to have such logs from pop3 daemon doing simple
operations on only one folder it has none when it comes to IMAP.
What log can i possibly create after user connects to imap, applies
his rules to an INBOX ( moving most of the messages to various folders,
ie. marking them for deletion, not deleting them )? What when he reads
some messages without deleting them?

M.

-- 
Miroslaw "Psyborg" Jaworski
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?



More information about the Info-cyrus mailing list