Re: [Exim] Exim + Mysql + local_domains question

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Matthew Zito
CC: exim-users
Onderwerp: Re: [Exim] Exim + Mysql + local_domains question
On Tue, 10 Aug 1999, Matthew Zito wrote:

> The mysql implementation in exim 3.03 is working wonderfully for me, with
> the exception of trying to use it with the local_domains option. We used
> to use the partial-lsearch method on a flatfile, but would like to replace
> it with the MySql method. So, I'm not sure exactly how to put that in the
> config file. I tried:
>
> blah.domain.com:mysql;select domain from domainemail where
> domain='$domain'


No, $domain isn't set at that point. The domain that is being looked up
is an implicit key for the search, and so you should use

mysql;select domain from domainemail where domain='$key'

See section 6.3 of the 3.00 manual.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.