Secondary MX and Spamblocker/exim_conf custombuild

amphora

Verified User
Joined
Feb 21, 2013
Messages
55
I used the instructions on https://help.directadmin.com/item.php?id=167 to allow one of my DA boxes to function as a secondary mx server.
This works well until custombuild overwrites the exim.conf again for example when I run ./build exim_conf

Putting the line domainlist relay_domains = lsearch;/etc/virtual/domains : lsearch;/etc/virtual/mx_domains inside /etc/exim.variables.conf.custom for example doesn't work either because exim will panic with 'duplicate name "relay_domains" for a named domain list'

Any suggestions on how to work around this?
 
You'll have to reapply this on every exim configuration rebuild. The only alternative is to make exim.conf immutable and I would not advise this as it could be more damaging than having to reapply the configuration on every update.

There are conflicting answers around but you can skip any documentation you find about having a custom exim.conf in the custombuild directory to be reapplied on configuration rebuilds, this is ignored by the system. I have to reapply config to exim.conf every time as well, annoying as it may be.
 
Back
Top