[exim] route_data from lsearch to cdb..

Pàgina inicial
Delete this message
Reply to this message
Autor: Brian D. Cook
Data:  
A: exim-users
Assumpte: [exim] route_data from lsearch to cdb..

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.

and I'm making the cdb from the txt files. the format of the file is:
domain.name:ip
domain.blah:other.ip


any help would be greatly appreciated.