<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Just to make sure that we are all on the same page this is part of the documentation that I have listed on what I changed to fix that same error. This worked
for me to fix the problem. So are you sure you made the same change?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNoSpacing">Change configuration in /usr/sbin/MailScanner and add the
<b>–<u>U</u></b> to the end of the line of code. This causes a fatal Taint error which prevents MailScanner from placing e-mails into the quarantine folders that it creates. Adding the –U will change the fatal error to just a warning and e-mails will be placed
into quarantine.<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">#!/usr/bin/perl -I/usr/lib/MailScanner <b><u>-U</u></b><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> mailscanner-bounces@lists.mailscanner.info [mailto:mailscanner-bounces@lists.mailscanner.info]
<b>On Behalf Of </b>Fabio De Martin<br>
<b>Sent:</b> Monday, March 26, 2012 9:52 AM<br>
<b>To:</b> mailscanner@lists.mailscanner.info<br>
<b>Subject:</b> Re: Quarantine Taint issue<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New"">Hi,<br>
<br>
As per Martin Hepworth request, I tried to run with -U flag on the mailscanner executable but it does not work. Just more taint errors...<br>
Please see MailScanner --debug result with -U flag:<br>
<br>
<br>
In Debugging mode, not forking...<br>
Trying to setlogsock(unix)<br>
Building a message batch to scan...<br>
Have a batch of 1 message.<br>
Insecure dependency in open while running with -T switch at /usr/lib64/perl5/IO/File.pm line 185, <$fh> line 2.<br>
Insecure dependency in open while running with -T switch at /usr/lib64/perl5/IO/File.pm line 185.<br>
Stopping now as you are debugging me.<br>
</span> <br>
<span style="font-family:"Courier New"">Regards,<br>
<br>
Fabio De Martin</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New""><br>
Hi,<br>
<br>
I'm installing MailScanner 4.84.5-2 on CentOS 6.2 and found some trouble with quarantine.<br>
Getting "Insecure dependency in open while running with -T switch at /usr/share/perl5/File/Copy.pm line 192"
<br>
<br>
Any help?<br>
<br>
Regards,<br>
<br>
Fabio De Martin</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-family:"Courier New""><br>
<br>
Result of MailScanner --debug:<br>
<br>
In Debugging mode, not forking...<br>
Trying to setlogsock(unix)<br>
Building a message batch to scan...<br>
Have a batch of 1 message.<br>
Insecure dependency in open while running with -T switch at /usr/share/perl5/File/Copy.pm line 192.<br>
<br>
Result of MailScanner -v:<br>
<br>
Running on<br>
Linux localhost.localdomain 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux<br>
This is CentOS release 6.2 (Final)<br>
This is Perl version 5.010001 (5.10.1)<br>
<br>
This is MailScanner version 4.84.5<br>
Module versions are:<br>
1.00 AnyDBM_File<br>
1.30 Archive::Zip<br>
0.23 bignum<br>
1.11 Carp<br>
2.02 Compress::Zlib<br>
1.119 Convert::BinHex<br>
0.17 Convert::TNEF<br>
2.124 Data::Dumper<br>
2.27 Date::Parse<br>
1.03 DirHandle<br>
1.06 Fcntl<br>
2.77 File::Basename<br>
2.14 File::Copy<br>
2.02 FileHandle<br>
2.08 File::Path<br>
0.22 File::Temp<br>
0.92 Filesys::Df<br>
3.64 HTML::Entities<br>
3.64 HTML::Parser<br>
3.57 HTML::TokeParser<br>
1.25 IO<br>
1.14 IO::File<br>
1.13 IO::Pipe<br>
2.04 Mail::Header<br>
1.89 Math::BigInt<br>
0.22 Math::BigRat<br>
3.08 MIME::Base64<br>
5.427 MIME::Decoder<br>
5.427 MIME::Decoder::UU<br>
5.427 MIME::Head<br>
5.427 MIME::Parser<br>
3.08 MIME::QuotedPrint<br>
5.427 MIME::Tools<br>
0.14 Net::CIDR<br>
1.25 Net::IP<br>
0.19 OLE::Storage_Lite<br>
1.04 Pod::Escapes<br>
3.13 Pod::Simple<br>
1.17 POSIX<br>
1.21 Scalar::Util<br>
1.82 Socket<br>
2.20 Storable<br>
1.4 Sys::Hostname::Long<br>
0.27 Sys::Syslog<br>
1.40 Test::Pod<br>
0.92 Test::Simple<br>
1.9721 Time::HiRes<br>
1.02 Time::localtime<br>
<br>
Optional module versions are:<br>
1.58 Archive::Tar<br>
0.23 bignum<br>
2.05 Business::ISBN<br>
20081208 Business::ISBN::Data<br>
1.15 Data::Dump<br>
1.82 DB_File<br>
1.27 DBD::SQLite<br>
1.609 DBI<br>
1.16 Digest<br>
1.01 Digest::HMAC<br>
2.39 Digest::MD5<br>
2.12 Digest::SHA1<br>
1.01 Encode::Detect<br>
0.17015 Error<br>
0.27 ExtUtils::CBuilder<br>
2.2203 ExtUtils::ParseXS<br>
2.38 Getopt::Long<br>
0.46 Inline<br>
1.08 IO::String<br>
1.09 IO::Zlib<br>
2.27 IP::Country<br>
0.29 Mail::ClamAV<br>
3.003002 Mail::SpamAssassin<br>
v2.007 Mail::SPF<br>
missing Mail::SPF::Query<br>
0.35 Module::Build<br>
0.21 Net::CIDR::Lite<br>
0.65 Net::DNS<br>
v0.003 Net::DNS::Resolver::Programmable<br>
missing Net::LDAP<br>
4.027 NetAddr::IP<br>
1.965001 Parse::RecDescent<br>
missing SAVI<br>
3.17 Test::Harness<br>
1.22 Test::Manifest<br>
2.0.0 Text::Balanced<br>
1.40 URI<br>
0.77 version<br>
0.70 YAML<br>
<br>
Quarantine configuration on MailScanner.conf:<br>
Run As User = postfix<br>
Run As Group = mail<br>
Quarantine Dir = /var/spool/MailScanner/quarantine<br>
Quarantine User = postfix<br>
Quarantine Group = mail<br>
Quarantine Permissions = 0660<br>
Quarantine Infections = yes<br>
Quarantine Silent Viruses = yes<br>
Quarantine Modified Body = no<br>
Quarantine Whole Message = yes<br>
Quarantine Whole Messages As Queue Files = yes</span> <o:p></o:p></p>
</div>
</body>
</html>