On (2003/11/26 12:52), Adam H. Pendleton wrote:
> >>If the sender address is in a domain that Exim believes is local, Exim
> >>will (and should) perform whatever lookups necessary to determine
> >>whether it's a deliverable address in that local domain, assuming sender
> >>verification is enabled.
> >
> >My answer was incomplete. Your pgsql_sys_aliases router doesn't specify
> >a precondition that limits its application to local domains only.
>
> Should it? And if so, how do I go about implementing this?
Whether you want a precondition limiting application of the router to
local domains depends on whether you've configured Exim with a notion of
local domains that matches the domains of email addresses available from
your pgsql_sys_aliases lookup. :-)
If you have a
domainlist local_domains = ...
in your main configuration section that specifies the same set of local
domains as should be handled by pgsql_sys_aliases, then yes.
If not, then no. But I'd give serious consideration to implementing a
sane local_domains domainlist, since it's used in several places in the
default configuration, including the ACLs.
> Just as an aside, what happens if there is a system alias for a
> particular From address? What would exim do with the e-mail?
> Re-write the from address, perhaps?
Nope. Don't confuse routing with address verification. From and/or
sender addresses are rewritten by rules in the rewrite secion of the
configuration (empty by default). Exim (usually?) doesn't use sender
addresses to route messages.
Ciao,
Sheldon.