RE: [Exim] Force maximum recipients number in ACL

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Rick Cooper
Fecha:  
A: Swantje & Michael Ludwig, exim-users
Asunto: RE: [Exim] Force maximum recipients number in ACL

> -----Original Message-----
> From: exim-users-admin@???
> [mailto:exim-users-admin@exim.org]On
> Behalf Of Swantje & Michael Ludwig
> Sent: Friday, February 20, 2004 5:12 AM
> To: exim-users@???
> Subject: [Exim] Force maximum recipients number in ACL
>
>
>
>
> Hi,
>
> because I do not know where to start my search and
> which terms I've
> got to use I will simply put my question here - being
> sure this has
> been discussed here already.
>
> I want to regulate the number of maximum recipients in the h_to
> field let's say to three whithin the smtp-session (via acl's).
>
> Where can I start my search and for what terms do I
> have to search??
>
> Thanks,
>
> Michael
>


# deny if more than 3 recipients
deny condition = ${if >{$recipients_count}{3}{yes}{no}}
    message = $sender_address sent mail to $local_part@$domain \
                       ($recipients_count) which is above the 3 count limit


This would go in your reciept alc section. Bear in mind this will
write a line to the reject log for each recipient that follows
the third one. Also this will not affect a host that issues
multiple recpt to: commands, that would be $rcpt_count.

have a look at chapter 11 for the rest of the expansion vars.