Re: [Exim] route_list coming from a database

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Phil Brutsche
Date:  
À: Joachim Wieland
CC: exim-users@exim.org
Sujet: 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