Rules for my boss

Julian Field MailScanner at ecs.soton.ac.uk
Fri May 25 11:17:50 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



James Gray wrote:
> On 23/05/2007, at 6:39 AM, Julian Field wrote:
>> Jorge Amador Arenas Quezada wrote:
>>> 1.- with mailscanner can make a rule to stop mails above 10Meg but 
>>> only if is the number of recipients is more than 10 ?
>
>> You would have to do this with a little Custom Function. Attach it to 
>> the Maximum Message Size, and make it check the size of the array 
>> @{$message->{to}}. Start from the example Custom Function in 
>> /usr/lib/MailScanner/MailScanner/CustomFunctions and work from there. 
>> Should be pretty straightforward to write.
>>
>> For a donation, I'll even write it for you :-)
>
> Just out of curiosity, if the MTA splits a multi-recipient message 
> into individual messages for delivery, does that that have any effect 
> on the @{message->{to}} array?  Or does MailScanner still get the full 
> list of recipients?
It does this splitting after MailScanner has done all its work. So it 
wouldn't have any effect on the to array as it hasn't happened yet.

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



-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.1 (Build 1012)
Charset: ISO-8859-1

wj8DBQFGVrfVEfZZRxQVtlQRAsvHAJ9xOOwbZMfCNOgRxfTlEQuvj+TNWgCcDwJy
BzEq+25iQ6jKlXLVDACkI4I=
=hDY0
-----END PGP SIGNATURE-----

-- 
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