On Wed, 21 Apr 2004, Thomas Mueller wrote:
> Exim 4.31 doesn't continue searching in a domainlist after '::'.
>
> domainlist local_domains = @:localhost:${lookup pgsql{SELECT DISTINCT name FROM
> domains WHERE name='${quote_pgsql:$domain}'}}:${lookup pgsql{SELECT
> DISTINCT name FROM records WHERE name='${quote_pgsql:$domain}'}}
>
> When I send mail to user@??? I get:
>
> sub.example.com in "@:localhost::sub.example.com"? no (end of list)
> sub.example.com in "+local_domains"? no (end of list)
The other poster pointed out that you might want to use the other lookup
syntax.
However, looking at what you have... Note that :: in a colon-separated
list is a way of representing a literal colon. So Exim is trying to
match either "@" or "localhost:sub.example.com" and of course failing.
You can solve this problem (if this really is the way you want to do
this - there are cases when it is reasonable) by ensuring there is a
space between the colons. Thus, your second line should be
domains WHERE name='${quote_pgsql:$domain}'}} : ${lookup pgsql{SELECT
^ ^
^ ^
^ ^
^ ^
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book