MailScanner 4.84.6-1 + postfix 2.6.6-6 on CentOS 6.6 not checking filename/filetype rules

Viorel Robu viorelrobu at
Tue Nov 4 08:29:54 GMT 2014

I'm pretty sure that this is a perl issue and is related to 
/usr/share/perl5/MIME/ module.
I made a little debug (actually trace) and find that this code in 

 ## Do the actual parsing
    my $maxparts = MailScanner::Config::Value('maxparts', $this) || 200;

    # Inform MIME::Parser about our maximum
    $parser->max_parts($maxparts * 3);
    $entity = eval { $parser->parse($handle) };

    # close and delete tmpfile

does not extract any files.


More information about the MailScanner mailing list