I'm trying to make exim4 read the relay hosts from a file. i tryed lsearch:
# /etc/exim4/update-exim4.conf.conf
dc_relay_domains='lsearch;/etc/exim4/relay_domains'
but it produces a warning and doesent work...
WARNING: using 'lookup;' constructs in /etc/exim4/update-exim4.conf.conf has never been supported!
What
man update-exim4.conf
indicates to do in those cases is to locally set the macros creating the/etc/exim4/exim4.conf.localmacros
and putting your macros in it. The macro you need isMAIN_RELAY_TO_DOMAINS
, so your local macros file should include:After you restart exim you can check the
/var/lib/exim4/config.autogenerated
and see that it was correctly added.