On Thu, 6 Nov 2003, Paul Slootman wrote:
> > The lookup;-style checks for SOMETHING to be returned, NOT for the value
> > itself. The above should work.
>
> So exim has no way of obtaining a LIST of local domains at startup from
> a postgresql database?
It does. Just use a string expansion:
domains = ${lookup pgsql{...your query here....}}
The query should return a list of domains, colon separated. If the
separator is something else, you can use ${sg.... on the result to
convert the separators, or use the <; mechanism for specifying a
different separator.
Summary:
1. The "lookup-type;query..." style of list item is using a lookup
as a quick means of indexing into a list.
2. The "${lookup...." style of list item is a way of storing a list
in a database.
If you were really weird, you could use an item of type 2 that returned
an item of type 1!
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book: http://www.uit.co.uk/exim-book