<div dir="ltr">Thanks.<br><br>I&#39;ll try that.<br><br><div class="gmail_quote">On Sat, Aug 23, 2008 at 3:34 PM, Hugo van der Kooij <span dir="ltr">&lt;<a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div></div><div class="Wj3C7c"><br>
mbneto wrote:<br>
<br>
&gt; I&#39;d like to limit the size of the message sent/received by users based<br>
&gt; on the email address of that user. &nbsp; I can do this at MTA level but for<br>
&gt; all users.<br>
&gt;<br>
&gt; Can I do this from MailScanner? &nbsp;I&#39;d like to set the maximum in my MTA<br>
&gt; and lower that limit for the rest of users.<br>
<br>
</div></div>Just create a ruleset to define limits you want to impose.<br>
<br>
Call it from MailScaner like this:<br>
Maximum Message Size = %rules-dir%/max.message.size.rules<br>
<br>
Then define the limits per user as you see fit:<br>
#To: &nbsp; &nbsp; &nbsp; *@<a href="http://domain1.com" target="_blank">domain1.com</a> &nbsp; &nbsp; 10M<br>
#To: &nbsp; &nbsp; &nbsp; *@<a href="http://domain2.com" target="_blank">domain2.com</a> &nbsp; &nbsp; 20M<br>
#From: &nbsp; &nbsp; <a href="mailto:user@domain3.com">user@domain3.com</a> &nbsp; 5M<br>
#From: &nbsp; &nbsp; *@<a href="http://domain3.com" target="_blank">domain3.com</a> &nbsp; &nbsp; 500K<br>
<br>
<br>
Hugo.<br>
<br>
<br>
- --<br>
<a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://hugo.vanderkooij.org/PGP/GPG" target="_blank">http://hugo.vanderkooij.org/<br>
PGP/GPG</a>? Use: <a href="http://hugo.vanderkooij.org/0x58F19981.asc" target="_blank">http://hugo.vanderkooij.org/0x58F19981.asc</a><br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;A: Yes.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&gt;Q: Are you sure?<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&gt;&gt;A: Because it reverses the logical flow of conversation.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&gt;&gt;&gt;Q: Why is top posting frowned upon?<br>
<br>
Bored? Click on <a href="http://spamornot.org/" target="_blank">http://spamornot.org/</a> and rate those images.<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.7 (GNU/Linux)<br>
<br>
iD8DBQFIsGYsBvzDRVjxmYERAii5AJ43UX+uljk8am2Ur6NBcFMCpI+wJwCguUFU<br>
DRAFjRmKGNQHXmibFDFJZgA=<br>
=PARA<br>
-----END PGP SIGNATURE-----<br>
<font color="#888888">--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</font></blockquote></div><br></div>