Re: [Exim] Mysql Lookups

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Dave Raven
Cc: exim-users
Asunto: 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/ ##