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 updates remove our /etc/antivirus.exim file.

Discussion in 'E-mail Discussions' started by jols, Feb 26, 2015.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Hi,

    I've noticed that most cPanel updates remove /etc/antivirus.exim

    That's a problem for us, because we have some very important anti-spam rules in this file.

    So as a result:
    cPanel update = Spam flood

    I hate to put the immutable bit on antivirus.exim, because for one thing, we are modifying this file throughout the day, and the additional steps would be a bit of a hassle, also may get a little error-prone.

    Is there any way to safe have antivirus.exim preserved throughout the cPanel update process?

    Thanks much.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can use a custom system filter for Exim to add those rules and ensure the changes are preserved. To start, you would copy over the existing Exim filter to the new location:

    Code:
    cp -a /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom
    Then, configure the custom filter file as the default filter via the "System Filter File" option under the "Filters" tab in:

    "WHM Home » Service Configuration » Exim Configuration Manager"

    Within the "/etc/cpanel_exim_system_filter_custom" file, you can add the entries for your custom filter rules.

    Thank you.
     
  3. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Thanks. That's certainly a relief.
     
  4. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    Relief gone:

    Now I have looked at all of our servers, and I am finding, apparently after a recent update, that the default setting for /etc/cpanel_exim_system_filter (in the WHM exim configuration), has now reverted back to /etc/antivirus.empty

    So I have come full circle, back to the same problem.

    Any other ideas?

    Question: When this occurs, will the new list I have created in /etc/cpanel_exim_system_filter_custom still be functional, or no?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please let us know if the following method listed in /etc/cpanel_exim_system_filter is helpful:

    Code:
    #  1)  #
    #  * Place each sysfilter block you wish to include in a unique file at: 
    #
    #  /usr/local/cpanel/etc/exim/sysfilter/options/ 
    #
    #  * Enable or disable the custom block in WHM using:
    #
    #  Service Configuration => Exim Configuration Manager => Filters => Custom Filter: [your unique file]
    Thank you.
     
Loading...

Share This Page