How do I block all attachments

Julian Field MailScanner at
Tue Feb 2 13:53:39 GMT 2010

On 02/02/2010 13:06, Christopher Fisk wrote:
>>   I would probably advise trying "Maximum Attachment Size =
>>   0" first, as
>>   the other setting's definition of an attachment is not
>>   quite as simple
>>   as I would like.
> Can that be a ruleset?
Well done, you just found a typo in the documentation. It can be a 
ruleset, despite not mentioning it. I have just fixed that in the docs 
for the next release.
>    Seems to me if this is handling processing for incoming and outgoing messages and this will block incoming attachments as well as outgoing.  (Plus block attachments between users internally).
Not if you make it a ruleset.
> So that seems like the correct place to put the block, but you would want 2 entries in the ruleset:
> To: yourdomain.tld    -1
> Default        0
To: yourdomain.tld    -1
FromOrTo: default 0

is the correct syntax.


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list