Re: [Exim] need help with smtp-auth and relaying

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: v.augustin
CC: exim-users, volker
Subject: Re: [Exim] need help with smtp-auth and relaying
volker augustin wrote:
> thanks! but im still running into problems, i put the debug output here...


> >> domainlist relay_to_domains = pgsql;SELECT domain from domain where
> >> aktiv=1 and "local"=0


> yahoo.de in "@:pgsql;SELECT domain FROM domain WHERE aktiv=1 and
> "local"=1"? yes (matched "pgsql;SELECT domain FROM domain WHERE aktiv=1
> and "local"=1")

...
> why does it match my local_domains list?


Check your lookup, you don't have a condition inside, remember what i
told you, "lookup; checks for something"

you have
domainlist local_domains = @:pgsql;SELECT domain FROM domain WHERE \
aktiv=1 and "local"=1"

but you want
domainlist local_domains = @:pgsql;SELECT domain FROM domain WHERE \
aktiv=1 and "local"=1" and domain=$domain