Rules for my boss

Glenn Steen glenn.steen at gmail.com
Fri May 25 14:46:50 IST 2007


On 25/05/07, Julian Field <MailScanner at ecs.soton.ac.uk> wrote:
> -----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
>
If one uses Postfix and _one_ instance to do this, why yes. But if one
has done something like what I documented in the wiki... then
MailScanner would see one message/recipient -> Only one recipient in
the array;).
How Rendmaul ... er, Sendmail would handle this, I have no clue.

-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list