Re: [Exim] Problem with routing messages

Inizio della pagina
Delete this message
Reply to this message
Autore: David Woodhouse
Data:  
To: Stephen Gran
CC: exim-users
Oggetto: Re: [Exim] Problem with routing messages
On Wed, 2004-01-28 at 23:10 -0500, Stephen Gran wrote:
> domains = +relay_to_domains
> require_files = CONFDIR/relay-domains/$domain.uucp
> local_parts = lsearch;CONFDIR/relay-domains/$domain.uucp.users
> no_more
>
> I thought that this set up would search for the local part in the file
> CONFDIR/relay-domains/$domain.uucp.users and make sure that this is a
> uucp domain by looking at CONFDIR/relay-domains/$domain.uucp, and
> obtaining routing information from it, but then fail if that didn't
> work, because of the no_more.


The no_more doesn't take effect unless the router is actually run, and
declines to route the address. But if your 'local_parts = ...' condition
isn't true, then the router _won't_ be run, and no_more won't affect
anything.

You _could_ either explictly set +local_domains on all your subsequent
routers as you suggest, or just add a new router explictly to bounce the
invalid local parts. _After_ the router you showed, you could do
something like:

uucphost_unknown_localpart:
transport = redirect
domains = +relay_to_domains
allow_fail
data = :fail:Unknown recipient



--
dwmw2