Autor: Peter Bowyer Datum: To: exim-users Betreff: Re: [Exim] Multiple recipients and whitelist checks
Philip Hazel said: > On Fri, 16 Jul 2004, Mike Bacher wrote:
>
>> Well, I only care that a message with multiple recipients gets broken up
>> into 1 message per recipient and placed into the queue for outbound
>> delivery,
>
> You can do this with an "incestuous" call to exim. Make this your first
> router:
>
> split:
> driver = accept
> domains = the.domains.you.want.to.do.this.for
> condition = ${if eq {$received_protocol}{split}{no}{yes}}
> transport = send_to_self
> no_verify
>
> Add this transport:
>
> send_to_self:
> driver = pipe
> batch_max = 1
> use_bsmtp
> command = /usr/sbin/exim -oMr split -bS
> user = exim
>
> Untested. YMMV. You logs will get bigger, of course...
You could optimise this to only trigger in the case of multiple RCPTs -
set an acl variable in the rcpt acl when you see a second or subsequent
recipient, and test the variable in the split router.