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

Viorel Robu viorelrobu at yahoo.com
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/Parser.pm module.
I made a little debug (actually trace) and find that this code in 
/usr/lib/MailScanner/MailScanner/Message.pm:

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

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

    # close and delete tmpfile
    close($handle);

does not extract any files.


Viorel



More information about the MailScanner mailing list