cPanel Overwrite antivirus.exim?

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
Can somebody confirm for me if cPanel ever overwrites antivirus.exim? If so, what would be the best way to specify the path to my own custom exim filter file using the WHM exim conf editor?
 

fleksi

Well-Known Member
Sep 17, 2003
125
0
166
AFAIK only the /scripts/eximup --force will overwrite /etc/antivirus.exim.
but you can chattr +i /etc/antivirus.exim so cpanel can't overwrite your antivirus.exim
 

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
fleksi said:
AFAIK only the /scripts/eximup --force will overwrite /etc/antivirus.exim.
but you can chattr +i /etc/antivirus.exim so cpanel can't overwrite your antivirus.exim
Thanks. I'm not a big fan of chattr +i, as it can lead to problems down the road...
 

rvskin

Well-Known Member
PartnerNOC
Feb 19, 2003
400
1
168
Don't chattr +i /etc/antivirus.exim. Go to WHM / Exim configuration. And change the path for System filter file (/etc/antivirus.exim) to your own copy.
 

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
rvskin said:
Don't chattr +i /etc/antivirus.exim. Go to WHM / Exim configuration. And change the path for System filter file (/etc/antivirus.exim) to your own copy.
Just change the path, or is there a way to add a second filter file, so that the original file remains in use?
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
Yes, Cpanel does occasionally overwrite antivirus.exim during updates and I've
had my antivirus.exim nuked on several occasions without knowing about it
which prompted me to just write a cron job to check the checksum of the file
periodically and replace the file with my copy if changed.

A little more disturbing is that I've had Cpanel blow away my Exim config a few
times as well which really pissed me off since I have a whole lot plugged
into the Exim configuration and it was lucky I had backups.

I recommend everyone keep a backup copy of all "/etc/exim*" files