Autor: Nico Erfurth Datum: To: Christian Hertel CC: exim-users Betreff: Re: [Exim] Problem: Relaying for uncommon nets
Christian Hertel wrote:
> I tried that and found out that the problem occurs only when using mysql
> querys for building hostlists, not if I write it manually in exim.conf.
.....
> --- Now with just this entry in the mysql table ---
> [...]
> host in "127.0.0.1 : mysql;SELECT net FROM mail_access WHERE status =
This style of lookups only checks for SOMETHING to be returned, so as
long as you've something in your database, you're an open relay.
> I called exim as follows:
>
> exim4 -d -bh 10.10.10.1
>
>
> Any further ideas?
Use a normal ${lookup} and some ${sg}/${tr} magic to transform the
result into a colon seperated list.