The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel Overwrite antivirus.exim?

Discussion in 'General Discussion' started by HostIt, Oct 4, 2006.

  1. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    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?
     
  2. Danny_T

    Danny_T Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    181
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Netherlands
    Good question.. i have added alot things in that file. never thought of that.
    First i go to do is create a backup :)

    Danny,
     
  3. fleksi

    fleksi Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Thanks. I'm not a big fan of chattr +i, as it can lead to problems down the road...
     
  5. rvskin

    rvskin Well-Known Member
    PartnerNOC

    Joined:
    Feb 19, 2003
    Messages:
    400
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  6. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    Just change the path, or is there a way to add a second filter file, so that the original file remains in use?
     
  7. rvskin

    rvskin Well-Known Member
    PartnerNOC

    Joined:
    Feb 19, 2003
    Messages:
    400
    Likes Received:
    1
    Trophy Points:
    18
    Only one file may be used. You just need to copy all filter in antivirus.exim to your own file.
     
  8. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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
     
Loading...

Share This Page