Skip to main content

Debugging the attachments part of system filter file

Comments

6 comments

  • cPanelMichael
    Hello, Do you have any additional custom Exim rules enabled, or are you using any third-party applications such as MailScanner? I understand your issue to relate to the Exim system filter itself, but I did want to note that for SpamAssassin, there's a separate limit to be aware of under the "Apache SpamAssassin" Options" tab in "WHM >> Exim Configuration Manager >> Basic Editor": Apache SpamAssassin": message size threshold to scan Per it's description: Maximum size (in kilobytes) of a message that Apache SpamAssassin" will scan. Spam emails are usually about 1-4 kB in size; therefore, it is generally wasteful to scan larger emails. Thank you.
    0
  • km9
    Good thoughts, thanks Michael, but I'm testing the filter directly using the code as above: /usr/lib/sendmail -bF /etc/cpanel_exim_system_filter -v
    so I don't think any external influences would be in effect here.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look at this issue? Thank you.
    0
  • km9
    Sure. Your Support Request ID is: 9321015
    0
  • km9
    Michael, It's the $message_body_visible Exim advanced setting that was causing the behaviour. The default cPanel value is 5k. (Exim default is 500 bytes) Exim 4.50 Specification chapter 11 Tested and working now, with the proviso that the unwanted attachment header has to occur within the first $message_body_visible bytes of the body for the filter to see it. i.e. this is not guaranteed to filter out all bad attachments. This email had just over 20k, with html text and a small jpeg before the unwanted attachment headers. I'm now using 50k as the value for the moment.
    0
  • cPanelMichael
    Hello, Thank you for sharing the outcome. I've marked this thread as solved.
    0

Please sign in to leave a comment.