Re: [Exim] route_list coming from a database

Góra strony
Delete this message
Reply to this message
Autor: Phil Brutsche
Data:  
Dla: Joachim Wieland
CC: exim-users@exim.org
Temat: Re: [Exim] route_list coming from a database
A long time ago, in a galaxy far, far way, someone said...

> Hi,
>
> I have the following rule to get a route_list in my exim.conf:
>
> smtproutes:
> driver = domainlist
> transport = remote_smtp
> route_list = * "${lookup pgsql{select nexthop from tbl_smtproutes \
> where domain = '$domain'}{$value}}" bydns


I think it would work better if the router looked like this:

sqlmailhub:
driver = domainlist
transport = remote_smtp
search_type = pgsql
route_query = select nexthop from tbl_smtproutes where domain = '$domain'

--

Phil