Re: [Exim] Mysql Lookups

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Dave Raven
CC: exim-users
Subject: Re: [Exim] Mysql Lookups
Dave Raven wrote:
> Hi all,
>     I'm busy moving over to mysql from plain text files throughout
>     my exim config; and all has been going well but I cant seem
>     to figure out one problem.

>
>     I have a relay director; which calls this transport:

>
> mysql_trans:
> driver = smtp
> hosts = "mysql;SELECT ip FROM relays WHERE id='$domain';"


Try this
hosts = ${lookup mysql{SELECT ip FROM relays WHERE \
           id='${quote_mysql:$domain}'}{$value}}"


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##