On 2011-03-07 at 13:24 -0700, The Doctor wrote:
> begin routers
These are tried *in order*. Please read:
http://www.exim.org/exim-html-current/doc/html/spec_html/ch03.html#SECTprocaddress
> check_system_aliases:
> driver = redirect
> allow_fail
> allow_defer
> data = ${lookup{$local_part}lsearch{/etc/aliases}}
> verify_only
> pass_router = amavis
This happens early, second Router, verifying that addresses exist.
> system_aliases:
> driver = redirect
> allow_fail
> allow_defer
> data = ${lookup{$local_part}lsearch{/etc/aliases}}
> file_transport = address_file
> pipe_transport = address_pipe
This happens later, immediately *followed* by:
> domains_virtual:
> driver = redirect
> data=${lookup{$local_part@$domain}dbm{/usr/exim/virtemail}}
> domains_virtual_others:
> driver = redirect
> data=${lookup{@$domain}dbm{/usr/exim/virtemail}}
You probably want to add a "domains = +local_domains" restriction to
both of those and move them to be the first Routers, or put them
immediately after the dnslookup Router.
-Phil