R: Little Report problem with Postfix

Gioia Bastioni gioia at bclink.it
Mon Jan 12 15:55:58 GMT 2004


Hi Julian,
I've just had the time to try it

sol at mydomain:/opt/MailScanner/lib/MailScanner/patch#
rwxr-xr-x    2 root     root         4096 Jan 12 16:49 ./
drwxr-xr-x    3 root     root         4096 Jan 12 16:49 ../
-rwxr-xr-x    1 root     root       106825 Jan 12 16:49 Message.pm
-rw-r--r--    1 root     root            0 Jan 12 16:46 patch.txt

patch -p0 < patch.txt

and replace the new Message.pm in /opt/MailScanner/lib/MailScanner

stop and restart postfix and MailScanner and I've still the same problem ..
 Recipient: user at mydomain.it, user at mydomain.it

here's the new Message.pm


-----Messaggio originale-----
Da: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]Per
conto di Julian Field
Inviato: venerdì 9 gennaio 2004 15.12
A: MAILSCANNER at JISCMAIL.AC.UK
Oggetto: Re: Little Report problem with Postfix


Please try this patch for /usr/lib/MailScanner/MailScanner/Message.pm.

---------SNIP------------
--- Message.pm  2003-12-02 11:44:42.000000000 +0000
+++ Message.pm.new      2004-01-09 14:12:09.000000000 +0000
@@ -2315,11 +2315,17 @@
    my $reportword = MailScanner::Config::LanguageValue($this, "report");
    my $id   = $this->{id};
    my $from = $this->{from};
-  my $to   = join(', ', @{$this->{to}});
+  #my $to   = join(', ', @{$this->{to}});
    my $subj = $this->{subject};
    my $rept = join("    $reportword: ", @everyrept);
    my $ip   = $this->{clientip};

+  my($to, %tolist);
+  foreach $to (@{$this->{to}}) {
+    $tolist{$to} = 1;
+  }
+  $to = join(', ', sort keys %tolist);
+
    my($result, $headers);

    if (MailScanner::Config::Value('hideworkdirinnotice',$this)) {
---------SNIP------------

At 13:06 09/01/2004, you wrote:
>Hi guys,
>
>I've I have the seguent Report from Mailscanner when a Virus is found:
>
>*********************************
>"The following e-mail messages were found to have viruses in them:
>
>     Sender: admin at mydomain.it
>IP Address: xxx.xxx.xxx.xxx
>  Recipient: user at mydomain.it, user at mydomain.it
>    Subject: your account                         yijefwov
>  MessageID: 28A7433F302
>     Report: AntiVir: ALERT: [Worm/MiMail.A1 virus]
./28A7433F302/message.zip
><<< Contains signature of the worm Worm/MiMail.A1
>             F-Prot:
>/var/spool/MailScanner/incoming/12726/28A7433F302/message.zip->message.html
>Infection: W32/Mimail.A at mm"
>*********************************
>
>It only affects the reporting and doesn't have any impact on message
>delivery at all.
>
>I found that someone else (the link below) pointed out this little problem,
>but had no response.
>
>http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0311&L=mailscanner&T=0&F=&S=
&
>P=27533
>
>Just want to know if someone has an idea of why this happen..
>
>I'm using Postfix MTA with Mailscanner 4-24.5 with both Antivir and F-Prot
>software
>
>Thanks all! Thanks Julian

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Message.pm
Type: application/octet-stream
Size: 107377 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20040112/1d58eca5/Message.obj


More information about the MailScanner mailing list