Current time: 12-25-2024, 10:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
imap traffic - strange things
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #11
RE: imap traffic - strange things
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
11-28-2007 10:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #12
RE: imap traffic - strange things
I will test it on a new Machine, this one is a litte bit small...
Back soon with a report!

Greez BeNe
11-28-2007 10:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #13
RE: imap traffic - strange things
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
11-28-2007 10:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #14
RE: imap traffic - strange things
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
11-28-2007 10:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #15
RE: imap traffic - strange things
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
11-28-2007 11:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #16
RE: imap traffic - strange things
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
11-28-2007 11:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #17
RE: imap traffic - strange things
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
(This post was last modified: 11-29-2007 12:15 AM by BeNe.)
11-29-2007 12:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #18
RE: imap traffic - strange things
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);
11-29-2007 09:21 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)