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.

additional exim filter

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

  1. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    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:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  5. ttremain

    ttremain Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    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 ?
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks good.
     
Loading...

Share This Page