Rules for my boss
James Gray
james at gray.net.au
Thu May 24 10:02:09 IST 2007
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?
Cheers,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20070524/6472f0ff/smime.bin
More information about the MailScanner
mailing list