Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-2009, 02:37 PM
Starter Member
 
Posts: 1
Default Zimbra 5.0.9 zmlogprocess needs patchin'

Hey there:

I've been running 5.0.9 with some success-however, I always noticed how the spam and virus counts in the log database were always zero.

It appears that a lot of the amavis log lines match none of the regexes in the zmlogprocess script. I've modified some of them, and I'd like to share them here:

I put debug lines so the script tells me which regex matches.

Code:
elsif ($msg =~ /\(([^)]+)\) (Passed|Blocked) ([^,]+), \[([^]]+)\] <([^>]*)> -> (<[^>]+>(?:,<[^>]+>)*),(?: quarantine: [^,]+,)? Message-ID: <([^>]+)>,(?: Resent-Message-ID: <[^>]+>,)? mail_id: \S+, 
Hits: (\S+), size: \d+, (\d+) ms/) {
            $pid = $1;
            $disp = $2;
            $reason = $3;
            $fromIP = $4;
            $origIP = "unknown";
            $sender = $5;
            $recips = $6;
            $msgid = $7;
            $hits = $8;
            $queued_as = "unknown";
            $ms = $9;
            print "REGEX 4c\n";
          } elsif ($msg =~ /\(([^)]+)\) (Passed|Blocked) ([^,]+), \[([^]]+)\] <([^>]*)> -> (<[^>]+>(?:,<[^>]+>)*),(?: quarantine: [^,]+,)? Message-ID: <([^>]+)>,(?: Resent-Message-ID: <[^>]+>,)? mail_id: \S+, 
Hits: (\S+), size: \d+, queued_as: (\S+), (\d+) ms/) {
            $pid = $1;
            $disp = $2;
            $reason = $3;
            $fromIP = $4;
            $origIP = "unknown";
            $sender = $5;
            $recips = $6;
            $msgid = $7;
            $hits = $8;
            $queued_as = $9;
            $ms = $10;
            print "REGEX 5c\n";
          }
Reply With Quote
  #2 (permalink)  
Old 02-03-2009, 11:44 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Welcome to the forums.

Could you check in bugzilla if this entry has been addressed if it hasn't can you file a bug entry so that it will get to the attention of development.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 02-09-2009, 02:06 AM
Intermediate Member
 
Posts: 17
Default

Thanks for posting this.. too bad I didn't look here 4 hours ago.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.