Re: [exim] Misunderstanding match_domain and sqlite ...

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jim Cheetham
Ημερομηνία:  
Προς: Stephen Gran
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Misunderstanding match_domain and sqlite ...
On Mon, 2010-04-05 at 17:10 +0100, Stephen Gran wrote:
> On Mon, Apr 05, 2010 at 09:25:36PM +1200, Jim Cheetham said:
> > I'm using a sqlite query in a match_domain condition in an ACL for check_rcpt, but it's failing.


> I suspect that what's happening is not that the where clause is failing,
> but the sql return is not a domain list.
>
> domainlist active_domains = ${sg { ${sqlite; /etc/exim4/mta.db select name from domains where status="active"; }}{\\n}{:}}


Ah, indeed -- this seems to be exactly the problem, and solved. Thanks.

I hadn't found ${sg before, this will be very useful!

-jim