Re: Seperating Recipients / RCPT ACL

"Peter Bowyer" <[email protected]>
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
Mike Grice said:
>
> I'm having some trouble with exim/exiscan.  The problem is that when a
> mail is received with multiple recipients, the RCPT ACL appears to be
> taking action for each domain, and not splitting them out.  For example,
> say I wanted to add a header with the domain in called X-Domain.  If a
> mail came in like this:
>
> To:  [email protected], [email protected]
>
> The mail would be tagged with multiple headers:
>
> X-Domain: domain1.com
> X-Domain: domain2.com
>
> Is there any way of separating these out?  I don't like the idea really
> that mails to multiple recipients are treated as a single mail when it
> hits the MTA;

But it *is* only a single message - one with multiple recipients. The ACLs
follow the SMTP transaction.

> it makes things complicated later on when I want to do
> domain based manual routing (not to mention causing some weird problems...

The routers are called once per recipient - unless you need knowledge
about other recipients while you're routing each one (which seems unlikely
since you're asking to separate them altogether), you should be able to do
your per-recipient processing there. Certainly you could process on the
domain of the recipient as in your example (although I expect this was a
simplification).

Or you can use the regularly-referenced trick to ensure a single recipient
per message. It's been quoted 2 or 3 times today already, I won't do it
again :-)

HTH

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.