Re: [exim] route_data from lsearch to cdb..

Top Pagina
Delete this message
Reply to this message
Auteur: Peter Bowyer
Datum:  
Aan: Exim Users Mailing List
Onderwerp: Re: [exim] route_data from lsearch to cdb..
On Fri, 31 Dec 2004 17:15:39 -0500, Brian D. Cook <bcook@???> wrote:
>
> I'm trying to do something that I thought should have been simple and it
> turns out it's quite hard.
>
> I have some defined routers that use the manualrouter driver, and I have
> some route_data information that gets retrieved from a simple lsearch.
> Well I'd like to have them in cdb to keep things consistent. (the rest
> of the setup is in cdb)
>
> here is my routers and transports and relevent info:
>
> domainlist relay_to_domains = cdb;EXIM_DIR/cdb/rcpthosts.cdb
>
> rcpthosts contains:
> domain.name
> doman.blah
>
> begin routers
>
> manual_route:
> transport      = remote_smtp
> driver         = manualroute
> domains        = +relay_to_domains
> route_data     = ${lookup {${lc:$domain}}
> lsearch{EXIM_DIR/manual_routes}}
> #route_data    = ${lookup {${lc:$domain}} cdb{EXIM_DIR/manual.cdb}}

>
> bsd_manual_route:
> transport      = bsd_smtp
> driver         = manualroute
> domains        = +relay_to_domains
> route_data     = ${lookup {${lc:$domain}} lsearch{EXIM_DIR/bsd_routes}}
> #route_data    = ${lookup {${lc:$domain}} cdb{EXIM_DIR/bsd.cdb}}

>
> dnslookup:
>  driver        = dnslookup
>  domains       = ! +local_domains
>  transport     = remote_smtp
>  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
>  no_more

>
> begin transports
>
> remote_smtp:
> driver         = smtp

>
> bsd_smtp:
>  driver        = smtp
>  port          = 8125

>
> so again the problem is that when I use the cdb's it doesn't work, and
> the files end up in the queue marked as frozen.


What exactly 'doesnt work' ? What do the logs say about the delivery?
What does the debug output from 'exim -d -bt user@domain' tell you?

Peter