Auteur: Peter Bowyer Datum: Aan: Exim Users Mailing List Onderwerp: Re: [exim] Limit number of recipients
On 05/05/05, Ron McKeating <R.J.Mckeating@???> wrote: > Is it possible to limit the number of recipients for an incoming email.
> We have
>
> smtp_accept_max = 450
> smtp_accept_max_per_connection = 400
>
> and I know you can restrict the size of a header, but is it possible to
> tell exim to only accept an email if it is for less than say 100
> recipients ?
You can reject the 101st and subsequent recipients in the rcpt acl by
checking $rcpt_count as each one comes in, or if this isn't what you
what you can accept all the recipients and fail the whole message in
the data acl using the same variable.