Prevent /etc/cpanel_exim_system_filter from being overwritten by update

zigzam

Well-Known Member
May 9, 2005
206
0
166
How do you prevent the changes made in /etc/cpanel_exim_system_filter from being overwritten by a cpanel force update?
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
You can set an attribute to the file once you are done with the changes

chattr +i /etc/cpanel_exim_system_filter
cPanel won't be able to overwrite the changes. If you want to edit it again, remove the attribute, make the changes and set the attribute again

chattr -i /etc/cpanel_exim_system_filter