Re: [Exim] route_list coming from a database

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Phil Brutsche
日付:  
To: Joachim Wieland
CC: exim-users@exim.org
題目: 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