Re: [exim] Assistance requested with $if foray{...

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: Robert Bannocks
CC: exim-users@exim.org
Subject: Re: [exim] Assistance requested with $if foray{...
On 2018-04-18 at 11:42 +0000, Robert Bannocks via Exim-users wrote:
> I want to search a file for decreasingly specific forms of an address
> that come from a given host and do some specialist routing thereafter.
> To this end I have constructed the following confition:


Can you change the stored format at all? So that you have *@example.org
stored instead of just example.org ? How important is the domainless
matching, and it being used in the same Router, instead of two different
Routers, given that usually mail addresses are per-domain?

https://www.exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html#SECTdefaultvaluelookups

See how you'd use >> dbm*@ << instead of >> dbm << for matching; and see
subsequent sections of the documentation for other things which can be
done.

Consider also use of multiple Routers all using the same Transport.

Consider if you might be better served for at least one of those using
the local_parts precondition option with a query-style lookup, instead
of a condition option with a single-key lookup.

-Phil