Current time: 10-01-2024, 01:33 AM Hello There, Guest! (LoginRegister)


Thread Closed 
Imap accounting in dovecot
Author Message
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #1
Imap accounting in dovecot
Hi, I am using dovecot, and I wanted to fix the imap traffic not being counted. Since dovecot 1.2 when you logout, the system register the in/out bytes of the session.
Can someone with similar setup try this script, it should output something like:
user=user@domain traffic


cat /var/log/ispcp/mail.log.prev |/bin/grep 'IMAP'|/bin/grep 'Logged out bytes'|awk '/IMAP/ {split($10,resul,"="); split(resul[2],oper,"/");print "user="substr($6,6,length($6)-7) , oper[1]+oper[2]}'


Can you verify it doesn't output extraneous data for you?
05-18-2010 12:06 AM
Find all posts by this user
Thread Closed 


Messages In This Thread
Imap accounting in dovecot - aseques - 05-18-2010 12:06 AM
RE: Imap accounting in dovecot - BeNe - 05-18-2010, 09:59 PM
RE: Imap accounting in dovecot - aseques - 05-18-2010, 11:43 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)