Re: [Exim] Problem: Relaying for uncommon nets

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Christian Hertel
日付:  
To: exim-users
題目: Re: [Exim] Problem: Relaying for uncommon nets
--
Hi folks,

> > I haven't found an exim documentation page about how to use ${sg}/${tr}.
>
> Pages 92 & 93 of the 4.30 manual (end of section 11.4).


Thank you Philip! I've looked for it and after some "digging in the
dirt", the following lines worked for us:

--- exim.conf ---

[...]

MYSQL_Q_RELAYHOST=SELECT net FROM MYSQL_RELAYDOMAINTABLE WHERE status =
'ok'

[...]

# build colon separated list for relay_hosts
RELAYHOSTLIST = ${sg{${lookup mysql
{MYSQL_Q_RELAYHOST}{$value}}}{(.*)}{\$1 :}}

[...]

hostlist relay_from_hosts = 127.0.0.1 : RELAYHOSTLIST

[...]

---

If someone's got a better solution for the problem, bring it on! :)


Cheers,

--
Christian Hertel
Technik

infoServe GmbH
Nell-Breuning-Allee 6
D-66115 Saarbruecken

T: (0681) 8 80 08 - 0
F: (0681) 8 80 08 - 33
www.infos.de
E: c.hertel@???
--
Content-Description: Dies ist ein digital signierter Nachrichtenteil

[ signature.asc of type application/pgp-signature deleted ]
--