Filename Rules

Discuss our MailScanner install script and MailScanner itself
Post Reply
Serra
Junior Member
Posts: 27
Joined: 10 Dec 2006, 14:38
Location: Orange Park, FL
Contact:

Filename Rules

Post by Serra »

I'm having an issue. I have a client who sends emails with files that break the rule for file names:

Report: MailScanner: Attempt to hide real filename extension (10CWCY-221047Spectrum.pdf8.pdf)

This isn't a problem, I normally just bypass the client with a change to filename.rules.rules which I have set for that client to no.rules. But that didn't work. I've gone so far as to change MailScanner.conf to:

Filename Rules = /usr/mailscanner/etc/filename.no.rules.conf

which is allow . - -

The email still gets blocked.

I've been doing these types of overrides for years with no issues. Why is MailScanner suddenly ignoring these rules?
Serra
Junior Member
Posts: 27
Joined: 10 Dec 2006, 14:38
Location: Orange Park, FL
Contact:

Re: Filename Rules

Post by Serra »

Sarah found the issue when I failed.

So there is a file %etc-dir%/archives.filename.rules.conf in the etc directory. It does not have a corresponding file in the rules directory. There is no archives.filename.rules.rules file, so it can't be turned on and off like the filename.rules.rules can be used to turn of filename.rules.conf.

There are two options here. Edit the archives.filename.rules.conf and turn off the specific rule that is causing issues, or replace the whole thing with the /usr/mailscanner/etc/filename.no.rules.conf file, which will turn off all archive rules.
Post Reply