[Exim] Exim + Mysql + local_domains question

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthew Zito
Dátum:  
Címzett: exim-users
Tárgy: [Exim] Exim + Mysql + local_domains question
Hello,

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'

and

blah.domain.com:mysql;select domain from domainemail where
domain='$local_part'

Both of which it just completely ignored. So I tried:

blah.domain.com=${lookup mysql{select domain from domainemail where
domain='$domain'}{$value}fail}

which kept telling me "no data found". What variable should I be putting
in instead of $domain? Or am I screwing up the format? Thanks very much
in advance.

Matt

 -----------------------------------------------------------------
 Matthew Zito            Email: mzito@???
 UNIX Systems Administrator    URL:   http://www.eticomm.net/
 ETI                       Phone: (609) 753-9840
-----------------------------------------------------------------