Current time: 12-26-2024, 11:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Dovecot, traffic problem
Author Message
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #1
[SOLVED] Dovecot, traffic problem
Hi to all.

Recently I have installed in Debian Lenny (clean), the stable version of 1.05 and Dovecot with Quota, all run ok., send, receive and update the maildirsize...Smile

... but it not count the mail traffic (smtp, pop, imap) in domain level.Sad

This is the mail zone of ispcp-vrl-traff.log:
Code:
DEBUG: push_el() sub_name: gen_log_file(), msg: Starting for logfile /var/log/mail.log
DEBUG: push_el() sub_name: gen_log_file(), msg: Taking the domain log positions from '/var/log/ispcp/logdb'...
DEBUG: push_el() sub_name: gen_log_file, msg: Logfile contains no data, so skip it for now.

In dovecot.conf:
Code:
syslog_facility = mail

Some lines of mail.log:
Code:
Jun  6 19:01:40 hostname postfix/qmgr[17638]: B64288A18C67: from=<usuario@mi_dominio.tld>, size=61984, nrcpt=1 (queue active)

Jun  6 19:01:47 hostname dovecot: POP3(usuario@mi_dominio.tld): Disconnected: Logged out top=0/0, retr=3/125271, del=0/3, size=125218

Jun  6 19:10:27 hostname postfix/qmgr[17638]: 50B518A18C68: from=<usuario@mi_dominio.tld>, size=4231, nrcpt=1 (queue active)

Jun  6 19:10:27 hostname postfix/qmgr[17638]: B64288A18C67: from=<usuario@mi_dominio.tld>, size=61984, nrcpt=1 (queue active)

Jun  6 19:35:04 hostname dovecot: POP3(usuario@mi_dominio.tld): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=125218

Jun  6 20:35:34 hostname dovecot: POP3(usuario@mi_dominio.tld): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=125218

I have changed ispcp-vrl-traff to the ispcp 1.03 version (that create .prev) and it make smtp.log and smtp_delivery.log and update the smtp count but neither make pop and imap logs.

Grateful for help me.Shy

Thanks.
(This post was last modified: 06-10-2010 07:43 AM by macbishop.)
06-08-2010 07:14 AM
Find all posts by this user Quote this message in a reply
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #2
RE: [SOLVED] Dovecot, traffic problem
1. The script not read mail.log because empty the first line.
Thanks to kilburn.

2. Change:
Code:
$rs = sys_command("$cat $rlog|$grep 'POP3'| $grep 'Disconnected: Logged out' |"
            ."$awk '/POP3/ {split(\$10,array,\"\/\"); print \"user=\"substr(\$6,6,length(\$6)-7) "
            ."\", top=\"substr(array[2],0,length(array[2])) \", "
            ."retr=\"substr(\$11,index(\$11,\"/\")+1,length(\$11)-1) ;}'"
            ." 1>>$pop3_log");
to:
Code:
$rs = sys_command("$cat $rlog|$grep 'POP3'| $grep 'Disconnected: Logged out' |"
            ."$awk '/POP3/ {split(\$10,array,\"\/\"); print \"user=\"substr(\$6,6,length(\$6)-7) "
            ."\", top=\"substr(array[2],0,length(array[2])) \" retr=\"substr(\$13,6,length(\$13)) ;}'"
            ." 1>$pop3_log");
Thanks to aseques - http://isp-control.net/forum/thread-5000.html
06-10-2010 08:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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