Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

additional exim filter

Discussion in 'General Discussion' started by ttremain, Feb 6, 2005.

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I've put custom changes into /etc/antivirus.exim, but they are regularly
    overwritten by upcp.

    I would like to add an additional exim filter, in the same format as
    /etc/antivirus.exim so I can keep them separate. Does anyone know
    how to do this with cPanel's implementation of Exim?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    166
    copy the old antivirus.exim to a new name and change the exim settings (in WHM) to reflect the new name. Cpanel should keep your customized name through updates.
     
  3. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    That's not a bad solution, however, this doesn't allow me to use antivirus.exim updates as they come through automaticly... Ideally, I'd like to use multiple filter files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I don't think you can, because I believe that the system_filter directive only takes a single file name as input in exim.conf. dezignguy's solution sounds best to me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    I've made a hybred solution...

    I'll create a file, let's call it filtermods.exim. In here I will place my new lines...

    I can edit this as needed, in each server... and set the exim system filter to
    /etc/newfilter.exim

    Then once per day, I'll run this:


    service exim stop
    cd /etc
    cat filtermods.exim > newfilter.exim
    cat antivirus.exim >>newfilter.exim
    service exim start

    I'll stop exim first, so no emails are run against a partial filter file...

    This way It'll always include the most receint changes pulled down from cPanel.

    Any feedback ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Looks good.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice