block attachment per user

Julian Field MailScanner at ecs.soton.ac.uk
Tue Aug 28 19:12:57 IST 2007



infolistas listas wrote:
> Thanks julian worked perfectly, just following this rules managements 
> is there a way to block these attachments for these specific users 
> from sending mail to another domain that isnt mine, and allow them to 
> attach when sending mail to own domain?
> EX:
>
> john may send mail to mydomain but he may not send to yahoo
From: john at mydomain.com And To: mydomain.com -1
From: john at mydomain.com 0

>
> maria may send mail to mydomain and to yahoo
>
> Is it possible?
>
>
> 2007/8/27, Julian Field < MailScanner at ecs.soton.ac.uk 
> <mailto:MailScanner at ecs.soton.ac.uk>>:
>
>     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 <mailto:john at yourdomain.com> -1
>     from: bob at yourdomain.com <mailto:bob at yourdomain.com> -1
>     from: joseph at yourdomain.com <mailto:joseph at yourdomain.com> -1
>     from: paul at yourdomain.com <mailto:paul at yourdomain.com> 0
>     from: patrick at yourdomain.com <mailto:patrick at yourdomain.com> 0
>     from: maria at yourdomain.com <mailto: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 <http://www.MailScanner.info>
>     Buy the MailScanner book at www.MailScanner.info/store
>     <http://www.MailScanner.info/store>
>
>     MailScanner customisation, or any advanced system administration help?
>     Contact me at Jules at Jules.FM <mailto: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
>     <http://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
>     <http://www.transtec.co.uk>
>
>     --
>     MailScanner mailing list
>     mailscanner at lists.mailscanner.info
>     <mailto:mailscanner at lists.mailscanner.info>
>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>     Before posting, read http://wiki.mailscanner.info/posting
>     <http://wiki.mailscanner.info/posting>
>
>     Support MailScanner development - buy the book off the website!
>
>

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