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?
<br>EX:<br><br>john may send mail to mydomain but he may not send to yahoo <br>maria may send mail to mydomain and to yahoo<br><br>Is it possible?<br><br><br><div><span class="gmail_quote">2007/8/27, Julian Field &lt;<a href="mailto:MailScanner@ecs.soton.ac.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
MailScanner@ecs.soton.ac.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just use a ruleset with the Maximum Attachment Size setting in<br>MailScanner.conf.<br><br>Put this in MailScanner.conf:<br>Maximum Attachment Size = %rules-dir%/max.attach.size.rules<br><br>and in /etc/MailScanner/rules/max.attach.size.rules put this:
<br>from: <a href="mailto:john@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">john@yourdomain.com</a> -1<br>from: <a href="mailto:bob@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bob@yourdomain.com</a> -1<br>from: <a href="mailto:joseph@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">joseph@yourdomain.com</a> -1
<br>from: <a href="mailto:paul@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">paul@yourdomain.com</a> 0<br>from: <a href="mailto:patrick@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
patrick@yourdomain.com</a> 0<br>from: <a href="mailto:maria@yourdomain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">maria@yourdomain.com</a>
 0<br>fromorto: default -1<br><br>Note the last line sets the default to -1 which is &quot;no limit&quot; for this<br>setting.<br><br>Then &quot;service MailScanner reload&quot; or (if that command doesn&#39;t work)<br>&quot;/etc/init.d/MailScanner reload&quot;.
<br><br>MailScanner rulesets are documented at length in the wiki and in the Book.<br><br><br>infolistas listas wrote:<br>&gt; Hi all is it possible to block some users from attaching files in<br>&gt; mailscanner?<br>&gt; EX: john, bob and joseph are allow to send attachments but paul,
<br>&gt; patrick and maria are not allowed.<br>&gt; Thanks<br><br>Jules<br><br>--<br>Julian Field MEng CITP<br><a href="http://www.MailScanner.info" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.MailScanner.info</a><br>Buy the MailScanner book at <a href="http://www.MailScanner.info/store" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.MailScanner.info/store</a><br><br>MailScanner customisation, or any advanced system administration help?<br>Contact me at <a href="mailto:Jules@Jules.FM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Jules@Jules.FM</a><br><br>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
<br>For all your IT requirements visit <a href="http://www.transtec.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.transtec.co.uk</a><br><br><br>--<br>This message has been scanned for viruses and
<br>dangerous content by MailScanner, and is<br>believed to be clean.
<br>For all your IT requirements visit <a href="http://www.transtec.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.transtec.co.uk</a><br><br>--<br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
mailscanner@lists.mailscanner.info
</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br><br>Before posting, read 
<a href="http://wiki.mailscanner.info/posting" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://wiki.mailscanner.info/posting
</a><br><br>Support MailScanner development - buy the book off the website!<br></blockquote></div><br>