Mark Sapiro mark at
Wed Oct 30 18:38:32 UTC 2019

On 10/28/19 3:13 PM, Kevin Miller wrote:
>> Again, the name MailScanner is rejecting is "". To understand why, we need to see all the MIME part headers from the message.
> It's in the pastebin post.

The pastebin post is clear that the only name is
"!!1571875200!1571961599.xml.gz" and any of
the regexps '.*\.com[^.]*\.xml\.gz$', '.*\.com[^.]*\.xml(\.gz)?$' or
'.*\.com[^.]*[^.]\.com*[^.]*.xml.*\.gz$' will match that.

I've looked at the code and it appears that MailScanner is actually
looking at what it calls safename which may or may not be the
"" name in the report. I'm not particularly fluent in
perl and I haven't found exactly how safename is made from the original
name. I'm not sure, but I'm guessing that that will also be the name of
the attachment stored in the
/var/spool/MailSanner/quarantine/<DATE>/QUEUE.ID/ directory.

But if that's the case and it's looking at a name like
"" which it made from
"!!1571875200!1571961599.xml.gz", it's hard
to understand why other similar names are accepted.

I do note that your earlier posts referred to the file being contained
in a zip archive and you needed to put your allow rules in
archives.filename.rules.conf. However, the file in the pastbin is not in
a zip archive so it needs a rule in filename.rules.conf. Do you have
your rules in both places?

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the MailScanner mailing list