coule of things..<br><br>is Selinux off<br>Have you put the -U flag at the the top of the mailscanner script?<br><br><br clear="all"><div>-- <br>Martin Hepworth, CISSP<br>Oxford, UK</div>
<br><br><div class="gmail_quote">On 10 February 2013 23:55, Ling Shi <span dir="ltr"><<a href="mailto:ling@unimelb.edu.au" target="_blank">ling@unimelb.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I recently moved our mail server (RHEL4.9/Postfix 2.2.10/MailScanner<br>
4.74.16) to a new machine (RHEL6.3/Postfix 2.6.6/MailScanner 4.84.5).<br>
After that, MailScanner fails to detect any attachment, ie no<br>
Filename/Filetype check at all.<br>
<br>
By closely looking at /var/spool/MailScanner/incoming/<pid>, I found<br>
there're only <message-id>, <message-id>.header files, but empty<br>
<message-id> subdirectory, which means MIME::Parser doesn't work.<br>
<br>
`MailScanner -v` output:<br>
<br>
-----------------------------<br>
# MailScanner -v<br>
Running on<br>
Linux <a href="http://selene.ms.unimelb.edu.au" target="_blank">selene.ms.unimelb.edu.au</a> 2.6.32-279.22.1.el6.x86_64 #1 SMP Sun Jan<br>
13 09:21:40 EST 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
This is Red Hat Enterprise Linux Server release 6.3 (Santiago)<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>
:<br>
3.08 MIME::Base64<br>
5.504 MIME::Decoder<br>
5.504 MIME::Decoder::UU<br>
5.504 MIME::Head<br>
5.504 MIME::Parser<br>
3.08 MIME::QuotedPrint<br>
5.504 MIME::Tools<br>
:<br>
-----------------------------<br>
<br>
I've tried to feed Postfix queue file (take from<br>
/var/spool/postfix/hold) to MailScanner on the old RHEL4 server, which<br>
generates correct <message-id>/<attachment-file>. So Postfix isn't the<br>
problem.<br>
<br>
I also tried feed the queue file to<br>
<br>
-----------------------------<br>
#! /usr/bin/perl<br>
use MIME::Parser;<br>
my $parser = new MIME::Parser;<br>
$parser->parse(\*STDIN)};<br>
-----------------------------<br>
<br>
but that didn't work, sure my perl knowledge is very basic.<br>
<br>
Could someone please help write me a perl script, which is similar to<br>
sub Explode {} in MailScanner::Message? The script takes Postfix queue<br>
file as import, the output will be like those in<br>
/var/spool/MailScanner/incoming/<pid>, ie<br>
<br>
<message-id>/<attachment> (if any)<br>
<message-id><br>
<message-id>.header<br>
<br>
I'll use this script on both RHEL4 and RHEL6, hoping generate different<br>
result, so I can ask Redhat support team whether RHEL6's perl is at fault.<br>
<br>
Thank you.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Regards,<br>
Ling Shi<br>
(UnixSysad, MS, UniMelb)<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</font></span></blockquote></div><br>