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.

Exim not filtering certain attachments.

Discussion in 'E-mail Discussions' 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:
    37,163
    Likes Received:
    1,294
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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:
    37,163
    Likes Received:
    1,294
    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.
     
Loading...

Share This Page