Autor: Jeremy Harris
Fecha:
A: exim-users @ exim. org
Asunto: Re: [exim] mysql relay_from_hosts?
Martin, Jeremy wrote:
> hostlist relay_from_hosts = ${lookup mysql{select ipaddress from
> relay_hosts;}}
You probably want the list-specific form of a lookup, like:
hostlist relay_from_hosts = 127.0.0.1 : \
pgsql;select 1 from v_relay_ip where \
inet('$sender_host_address') = ip \
and MACHINE_MATCH;
Otherwise, as you note, you need to edit the multiline return
to convert newlines to colons (do it with ${sg } if you must).
Cheers,
Jeremy