ispCP - Board - Support
imap traffic - strange things - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: imap traffic - strange things (/thread-1878.html)

Pages: 1 2


RE: imap traffic - strange things - joximu - 11-28-2007 10:33 PM

r929 is the newest...
hm, on my server the script run through and the logfiles look ok.

If you kill all the ispcp-vrl-traff processes, then do some mail traffic and then run the script manually - this works without error?

Otherwise: anything in the logfile for ispcp-vrl-traff (/var/log/ispcp/ispcp-vrl-traff.log)

... hope we can fix this soon /J


RE: imap traffic - strange things - BeNe - 11-28-2007 10:37 PM

I will test it on a new Machine, this one is a litte bit small...
Back soon with a report!

Greez BeNe


RE: imap traffic - strange things - BeNe - 11-28-2007 10:50 PM

One thing wich i do not understand,
i saw this one in the ispcp-vrl-traff:

Code:
my $smtp_log = "$main::cfg{'LOG_DIR'}/smtp.log";

        my $smtp_delivery_log = "$main::cfg{'LOG_DIR'}/smtp_delivery.log";

        my $imap_log = "$main::cfg{'LOG_DIR'}/imap.log";

        my $pop3_log = "$main::cfg{'LOG_DIR'}/pop3.log";

        my $cmd = "$grep 'postfix' $rlog | $main::cfg{'CMD_PFLOGSUM'} standard 1>$smtp_delivery_log";
But, i have no smtp.log, smtp_delivery.log, imap.log or pop3.log.
PFLOGSUM comes with ispCP is under /usr/sbin/maillogconvert.pl and should create the logs, right ?

Greez BeNe


RE: imap traffic - strange things - joximu - 11-28-2007 10:58 PM

No, the script uses the filenames as temporary files - they are deleted after use (del_file(...) IIRC)

The files are filled with data concerning the service they represent: smtp, imap etc...

This does not work correctly ("imaplogin" is not found in my mail.log) - but this is another task... for now we are happy if the script does not fail and does not run endless...

/J


RE: imap traffic - strange things - BeNe - 11-28-2007 11:10 PM

Good, on my other machine is no Error and the Script runs well.
So you fix works fine.

Ah, these files are only temporarly - understood.
Quote:for now we are happy if the script does not fail and does not run endless...
Be happy Wink
Quote:This does not work correctly ("imaplogin" is not found in my mail.log) - but this is another task
I use dovecot and it is called "imap-login" there. So i changed this in the ispcp-vrl-traff and we will see what happend :-)

Greez BeNe


RE: imap traffic - strange things - joximu - 11-28-2007 11:17 PM

Quote:Be happy

I am! (only two Tickets until RC3 - I hope...)

Quote:I use dovecot and it is called "imap-login" there. So i changed this in the ispcp-vrl-traff and we will see what happend :-)

If the remaining of the line is the same, then it maybe works.
Otherwise we'll have to write different scripts for different log-formats... Sad


RE: imap traffic - strange things - BeNe - 11-29-2007 12:14 AM

I changed the script but the imap.log is empty.
I commited the delete lines in the script so the log files now exists on my system.
Started to do it manually:
Code:
/var/www/ispcp/engine/traffic# cat /var/log/mail.log|grep 'imap-login'|grep 'user='|grep 'body='|grep -v 'ip=\\[::ffff:127.0.0.1\\]'|awk '{print \$7,\$9,substr(\$10,1,length(\$10)-1);}'
awk: {print \$7,\$9,substr(\$10,1,length(\$10)-1);}
awk:        ^ backslash not last character on line
Until here it works:
Code:
cat /var/log/mail.log|grep 'imap-login'|grep 'user='
Nov 28 12:52:18 vs248XX dovecot: imap-login: Login: user=<bene@mydomain.de>, method=plain, rip=217.243.170.XXX, lip=62.75.24X.XX, TLS
Nov 28 13:41:07 vs248XX dovecot: imap-login: Login: user=<bene@mydomainde>, method=plain, rip=217.243.170.XXX, lip=62.75.24X.XX, TLS

Looks like an awk error ?

Greez BeNe


RE: imap traffic - strange things - macbishop - 11-29-2007 09:21 AM

Hello.

In the script ispcp-vrl-traff

in line 351:
Code:
my ($rs, $rdata, $rlog) = (undef, undef);

It should be... ?
Code:
my ($rs, $rdata, $rlog) = (undef, undef, undef);