Re: [Exim] Exim4: unknown named list error - WORKS

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Joe Lewis
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Exim4: unknown named list error - WORKS
Does the order of parameters matter at all? Because I reversed the
parameter order and it runs fine. It used to read :

    /usr/exim/sbin/exim -bd -C /usr/exim/configure.db


Now it reads :

    /usr/exim/sbin/exim -C /usr/exim/configure.db -bd


Nothing changed in the configuration file, including the domainlist
declaration. It functions off of the database just fine. (I was,
indeed, checking the domain list for valid relay's, in the acl section,
not examining if the user's domain was local. The local lookup occurs
much later.

Joe


Philip Hazel wrote:
> On Tue, 25 Feb 2003, Joe Lewis wrote:
>
>
>>We've declared a domain list such as :
>>
>>    domainlist local_domains = mysql;SELECT DISTINCT domain FROM \
>>    mail_domains WHERE mail_host='localhost'

>
>
> You have fallen into a common trap of thinking that the syntax
> "mysql;..." should return a list of domains. The syntax for that is
>
> ${lookup mysql{query}}
>
> The "mysql;..." syntax is for checking that the current domain, when
> used in a query, is successful. In effect, you are using the database as
> an index. Since you have not mentioned $domain in your query, what you
> have written isn't going to work.
>
> I am planning to extend the explanation at the start of chapter 9 to try
> to make this distinction more clear.
>
>