Re: [Exim] Postgresql and relay_domains (var wont expand)

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Nico Erfurth
日付:  
To: troubled
CC: exim-users
題目: Re: [Exim] Postgresql and relay_domains (var wont expand)
troubled wrote:

> Same results though. When I put that into smtp_banner, not a single
> problem, I get the syslog entry from postgres telling me of the
> connection and it returns the domains : seperated as expected. Yet when
> I set:
>
> relay_domains = ${tr {${lookup pgsql{SELECT domainname FROM domains
> WHERE domaintype = 'RELAY'}}}{\n}{:}}


With exim4 I would use

relay_domains = pgsql;select 1 from domains where \
     domainname='${quote_pgsql:$domain}' and domaintype='RELAY'


You should give it a try. But it would be better to update to exim4.
Exim4 is available for more than 2 years now.

Nico