Expilicit Rule

David Jones djones at ena.com
Fri Oct 26 11:16:41 UTC 2018

On 10/26/18 4:09 AM, koby at mksoft.co.il wrote:
> Hello All
> I Would like your help to achieve the following rules (like many of my 
> firewall)
> which is Default block all and Explicit allow FileName & FileType by rules.
> Right now I not able the achieve this
> Thank you all in advance for any help.
> Koby Peleg Hen

Normally that would not be done in SpamAssassin but in the "glue" that 
uses/calls SpamAssassin like MIMEDefang, AmavisNew, MailScanner, etc. 
Or you can do it at the MTA with a milter.  Since you didn't tell us any 
details about your environment, it's tough for us to guess.


See the 3 bullets in the "Users" section on what information should be 
included with a question like this.

I mainly use MailScanner which has settings to do exactly what you are 
asking to do.  I understand that MIMEDefang is very powerful and 
flexible and AmavisNew has a banned_filename_re setting that I just 
found with a quick Google search.

David Jones

More information about the MailScanner mailing list