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

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: troubled
CC: exim-users
Assumpte: 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