Restricting message size per recipient
Hugo van der Kooij
hvdkooij at vanderkooij.org
Sat Aug 23 20:34:06 IST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
mbneto wrote:
> I'd like to limit the size of the message sent/received by users based
> on the email address of that user. I can do this at MTA level but for
> all users.
>
> Can I do this from MailScanner? I'd like to set the maximum in my MTA
> and lower that limit for the rest of users.
Just create a ruleset to define limits you want to impose.
Call it from MailScaner like this:
Maximum Message Size = %rules-dir%/max.message.size.rules
Then define the limits per user as you see fit:
#To: *@domain1.com 10M
#To: *@domain2.com 20M
#From: user at domain3.com 5M
#From: *@domain3.com 500K
Hugo.
- --
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?
Bored? Click on http://spamornot.org/ and rate those images.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFIsGYsBvzDRVjxmYERAii5AJ43UX+uljk8am2Ur6NBcFMCpI+wJwCguUFU
DRAFjRmKGNQHXmibFDFJZgA=
=PARA
-----END PGP SIGNATURE-----
More information about the MailScanner
mailing list