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!

Exim not filtering certain attachments.

Discussion in 'E-mail Discussion' started by nickl_sa, Jun 5, 2017.

Tags:
  1. nickl_sa

    nickl_sa Registered

    Joined:
    Nov 6, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi there

    I've edited the Exim Sysfilter to filter out .ace file attachments according to instructions in cPanels documentation as follows -

    Code:
    if $header_content-type: matches "(?:file)?name=(\"[^\"]+\\\\.(?:ad[ep]|ba[st]|chm|ace|cmd|com|cpl|crt|eml|exe|hlp|hta|in[fs]|isp|jse?|lnk|md[be]|ms[cipt]|pcd|pif|reg|scr|sct|shs|url|vb[se]|ws[fhc])\")"
    However, if I forward an email that has a .ace extension, in this case the document had a .doc.ace extension the mail went through and wasn't rejected.

    I restarted exim each time I made changes and I made sure I was using the correct filter file -
    cpanel_system_filter_new

    Does anyone know why this isn't working please? Do .doc.ace files need a separate regex and if so what would that be? I tried adding |doc.ace| too and that didn't make a difference.

    Thanks
    Nick
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,928
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. nickl_sa

    nickl_sa Registered

    Joined:
    Nov 6, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    South Africa
    cPanel Access Level:
    Root Administrator
    Hi Michael

    Yes, I modified all four lines as per the instructions on that page.

    Thanks
    Nick
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,928
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    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