block attachment per user

Julian Field MailScanner at ecs.soton.ac.uk
Mon Aug 27 20:14:14 IST 2007


Just use a ruleset with the Maximum Attachment Size setting in 
MailScanner.conf.

Put this in MailScanner.conf:
Maximum Attachment Size = %rules-dir%/max.attach.size.rules

and in /etc/MailScanner/rules/max.attach.size.rules put this:
from: john at yourdomain.com -1
from: bob at yourdomain.com -1
from: joseph at yourdomain.com -1
from: paul at yourdomain.com 0
from: patrick at yourdomain.com 0
from: maria at yourdomain.com 0
fromorto: default -1

Note the last line sets the default to -1 which is "no limit" for this 
setting.

Then "service MailScanner reload" or (if that command doesn't work) 
"/etc/init.d/MailScanner reload".

MailScanner rulesets are documented at length in the wiki and in the Book.


infolistas listas wrote:
> Hi all is it possible to block some users from attaching files in 
> mailscanner?
> EX: john, bob and joseph are allow to send attachments but paul, 
> patrick and maria are not allowed.
> Thanks

Jules

-- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list