DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

system_filter.exim was overwritten

| 11:09:13 10.10.2018

An Exim system filter, which can be found in /etc/system_filter.exim on a server running CentOS used to be installed from a rpm package. And recently (reported on 09-28-2018) Directadmin changed their way to install Exim and manage the filter. Since that custombuild script will take care of the file. And if you have customized it you need to take care of keeping your changes safe.

My system_filter.exim was overwritten after update, how to avoid it?

CustomBuild updates /etc/system_filter.exim if eximconf=yes is set in the options.conf file. 

Method 1

The simplest way would be setting "chattr +i" for it, if you have any customization done to it and eximconf=yes set in the options.conf file. Check it with the following command:

grep ^eximconf= /usr/local/directadmin/custombuild/options.conf

Protect the file

chattr +i /etc/system_filter.exim

and control results with the command

lsattr /etc/system_filter.exim

if you see the similar output

----i---------- /etc/system_filter.exim

It would mean the file is now immutable. 

To disable the protection run the following command:

chattr -i /etc/system_filter.exim

Method 2

It would be an official way on how to keep customization safe with Custombuild and Directadmin. Run the following commands:

mkdir -p /usr/local/directadmin/custombuild/custom/exim
cd /usr/local/directadmin/custombuild/custom/exim
[ -f  ./system_filter.exim ] || cp -p /etc/system_filter.exim .

and control it with the following command:

ls -1 /usr/local/directadmin/custombuild/custom/exim/system_filter.exim

expected results:


That's it.

A related thread on Directadmin forums:

Exim compile enabled by default in CustomBuild 2.0

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.

All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition