Re: [Exim] Postgresql and relay_domains (var wont expand)

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Galbavy
Data:  
A: Dan McGrath, exim-users
Assumpte: Re: [Exim] Postgresql and relay_domains (var wont expand)
ObWhine: I run exim3 and I have no intention of upgrading. Thank you.

Now; my pgsql entry for "local_domains" is:

local_domains = pgsql;select domain from domains where domain = '$key' and
acceptmail = 2;

Feel free to use that as a template :) The "acceptmail = 2" is a local
thing.

Peter

----- Original Message -----
From: "Dan McGrath" <troubled@???>
To: <exim-users@???>
Sent: Sunday, June 13, 2004 1:23 AM
Subject: [Exim] Postgresql and relay_domains (var wont expand)


This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hey guys,

Im trying to setup my exim3 in woody to do relay_domains lookups to a pgsql
db. Ive already recompiled the deb for pgsql support and have tested it. The
line I tried was:

relay_domains = ${lookup pgsql{SELECT domainname FROM domains WHERE
domaintype = 'RELAY'}}

The reason I know it works is cause when I put the same command into
$smtp_banner, it displays all the hosts unpon connection as you would
suspect. However when I try the same exact command (with and withou
{$value}fail) it simply doesnt work. In fact it doesnt even attempt to
connect.

I assume that relay_domains (along with god knows how many other var's) dont
support string exspansion. Is there a way to make this work? Macros maybe?
Any ideas would be appreciated, thanks.


troubled
--


--

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