[exim] PGSQL problem

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jacco van Gent
日付:  
To: exim-users@exim.org
題目: [exim] PGSQL problem
Hi,

I hope someone can help me. I tried searching for a solution but so far haven't found anything that would fix it.

WHITELISTED_HOSTS = pgsql;SELECT from_address FROM lists WHERE to_address='any' AND list_type=1 AND from_address='${quote_pgsql:$sender_host_address}';

This is a line in macros.conf, and this query does run successfully if the host is IPV4, if the host is IPV6 I get the following error message:

temporarily rejected connection in "connect" ACL: PGSQL: query failed: ERROR: unterminated quoted string at or near "'2001"

So the million dollar question here would be how to make sure the ipv6 address is actually terminated.