Hi,
It seems to me that configuring Exim 4 in combination with databases is
kind of under-documented. I can't seem to find any information on how to
set up and *use* the lookups.
f.e. I have
| hide pgsql_servers = localhost/blah/blah/blah
and
| domainlist local_domains = @ : \
| @[] : \
| localhost : \
| cipher.lin-gen.com : \
| ${lookup pgsql{select name from exim_local_domains}{$value}}
It queries the database, but still it rejects the message I try to send
to a domain specified in the database...
I see the connection opening:
| Aug 19 15:13:02 cipher postgres[19516]: [1] DEBUG: connection: host=127.0.0.1 user=blah database=blah
And then I get:
| 2002-08-19 15:13:02 H=dot.freshdot.net (dot) [195.64.80.165] (ssmeenk) F=<ssmeenk@???> rejected RCPT pitr@www.waterfiets.test: Relaying prohibited. Authentication required.
Now it's very unclear to me what the exact format of the ${lookup}
command should be. You can add {$value} at the end, what does it do?
Does anyone have links to more comprehensive coverage of Exim4 and
database lookups? The "documentation" on
www.exim.org:
http://www.exim.org/exim-html-4.00/doc/html/spec_9.html#IX475
is very unclear about it.
Regards,
Sander.
--
| Thou shalt not weigh more than thy refrigerator
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D