Possible bug with spam permissions

Jan-Peter Koopmann Jan-Peter.Koopmann at SECEIDOS.DE
Wed Aug 24 17:46:45 IST 2005


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

On Wednesday, August 24, 2005 10:19 AM Julian Field wrote:

> The quarantine for viruses and for spam both access the same
> variables as far as I can see, but obviously they aren't. Can any of
> you guys spot the difference? - -- 


Took some time but I found it. The problem is the assigning of extra group memberships. Not sure if this is a perl or FreeBSD bug/feature. Obviouls the second parameter in an 

$) =

assignment is ignored on our systems. Once we patched MailScanner everything started to work:


--- /tmp/MailScanner.orig       Wed Aug 24 18:39:46 2005
+++ MailScanner Wed Aug 24 18:43:19 2005
@@ -902,7 +902,7 @@
     # assign in parallel to avoid tripping taint mode on
     ($(, $)) = ($gid, $gid);
     $( == $gid && $) == $gid or die "Can't set GID $gid";
-    $) = "$gid $qgid $igid"; # Set the extra group memberships we need
+    $) = "$gid $gid $qgid $igid"; # Set the extra group memberships we need
   } else {
     $) = $(;
   }


Question remains: Is this a FreeBSD or a perl problem. And do you patch MailScanner or shall I patch it in the FreeBSD port?

Regards,
  JP

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list