Re: [Exim] ACL issue - failure when there shouldn't be.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Bowyer
Datum:  
To: exim-users
Betreff: Re: [Exim] ACL issue - failure when there shouldn't be.
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
> The definition of relay_to_domains is :
>
> domainlist relay_to_domains = ${lookup mysql{SELECT DISTINCT domain FROM mail_domains
> WHERE mail_host!='localhost' AND mail_host NOT LIKE 'deny%' AND mail_host NOT LIKE
> 'locked%'}}


As soothsayer-in-chief Matt has already brilliantly deduced, you don't want a ${lookup in the definition of a domainlist. It looks like it works, but it's producing newline-terminated strings which don't match in the ACL condition.

What you need is

domainlist relay_to_domains = mysql; SELECT DISTINCT .....

(I answered this exact question less than a week ago - did you check the archives?)

Peter
--