Re: [Exim] Router error

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: robert rotman
CC: exim-users
Onderwerp: Re: [Exim] Router error
On Thu, 4 Nov 1999, robert rotman wrote:

> ----------------------------------------------------------------
> lookuphost:
> driver = lookuphost
> self = fail_soft
> transport = remote_smtp
>
> self:
> driver = lookuphost
> self = local
> transport = mysql_delivery
> ----------------------------------------------------------------
>
> as i read in the doc's this makes the following:
> look if the mx of a vhost = localhost -> if yes pass it to the
> directors...


The second router does that, yes.

[ i dont know why i need a transport here ]

For the cases when the host it looks up is *not* the local host. (I know
that in your case it always will be, because of what you did above, but
in general it may not be.)

Why are you using two routers here, when one will do:

  lookuphost:
    driver = lookuphost
    transport = remote_smtp
    self = local


> (btw. what happens if the virt. domain has more MX eg. from a backup
> mailserver)


The "self" action happens only when the lowest-priority MX points to the
local host. Any MX records with priorities higher than or equal to that
of the local server are always ignored (not only in the "self" case).

> then in the directors section i do some database lookups concerning
> aliases, vacation... if this fails it also returns an error message
> (unroutable domain).


Yes, that is what it will do.

> so, finally: what and where is the best way to look if a domain is local
> (it schold be in a mysql database)?
> 1.) in the router's configuration, or
> 2.) within the directors...


The most common way is to define local_domains.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Government Policy: If it ain't broke, fix it till it is.