block attachment per user

infolistas listas grupolistas at gmail.com
Tue Aug 28 18:40:07 IST 2007


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
maria may send mail to mydomain and to yahoo

Is it possible?


2007/8/27, Julian Field <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 -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
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20070828/c4b727d9/attachment.html


More information about the MailScanner mailing list