On Fri, 2012-09-07 at 11:17 +0100, Oliver Howe wrote:
> Or is there a better way of achieving this?
Lookups. Y'know, those things that Exim is really really good at
doing :)
Make every setting which you require to be a tunable value a lookup
(either using a macro, or directly) and then use a file of external
values to set them.
Just as a theoretical (largely untested!) example, a file containing:
foo: 50
bar: 100
baz: 1000
on one server, and:
foo: 10
bar: 1000
baz: 5
on another
could then be looked up as follows:
recipients_max = ${lookup{foo}lsearch{/path/to/file}{$value}{10}}
some_other_setting = ${lookup{bar}lsearch{/path/to/file}{$value}{99}}
a_third_value = ${lookup{baz}lsearch{/path/to/file}{$value}{100}}
Then all you need to do is set the values in the appropriate per-server
file.
Graeme
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/