[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mailgraph] Re: No SPAM or VIRUS data


Hello Rolf,

I guess you should look at /usr/sbin/mailgraph (the executable Perl  
script). In this script you proceed to the subroutine process_line($).  
You find a lot of regular expressions in this subroutine. In my script  
there is one line containing of "elsif($prog eq 'amavis' || $prog eq  
'amavisd')". Maybe you could change the following line from

if(   $text =~ /^\([\w-]+\) (Passed|Blocked) SPAM(?:MY)?\b/) {

to

if(   $text =~ /^\([\w-]+\) (Passed|Blocked)? ?SPAM(?:MY)?\b/) {

The question mark behind (Passed|Blocked) says that "Passed" or  
"Blocked" appears once or not at all, the same holds for the question  
mark after the blank (" "). Then lines with something like "Blocked  
SPAM" an only "SPAM" are recognized.

Hope this helps
-- 
Viele GrÃÃe
Jens


Zitat von "Rolf Bartels" <rolf_bartels{at}hotmail{dot}com>:

>
>  Help,
>
> I have installed mailgraph, and I am using amavis + postfix +  
> spamassasin + clamav
>
>
> here is a line from my amavis.log
>
> Apr  8 09:59:27 mars.server.com /usr/sbin/amavisd[25786]: (25786-03)  
> SPAM, <yjanyb1350{at}airtelbroadband{dot}in>
>
> I can see from the graphs that it is reproting mail inbound and  
> outbound but nothing from SPAM or VIRUSES
>
> amavis is logging to /var/log/amavis.log
>
>
>
> in the /etc/default/mailgraph I have configured the  
> MAIL_LOG=/var/log/amavis.log
>
> I have noticed that only the lines with Blocked in the message are  
> being reproted and only aftrer I enable logging to the syslog
>
> e.g Apr  8 10:49:35 mars amavis[31997]: (31997-01) Blocked SPAM,
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Unsubscribe mailto:mailgraph-request@list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:mailgraph-request@list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/mailgraph
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>
>
>

--
Unsubscribe mailto:mailgraph-request@list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mailgraph-request@list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi