Skip to main content

WHM EXIM mod to permit outgoing .eml attachments stops working

Comments

9 comments

  • mtindor

    If you are editing /etc/cpanel_exim_system_filter directly, that's your issue.  That file can be updated and is updated periodically.

    What you want to do is copy /etc/cpanel_exim_system_filter to another file ( such as /etc/cpanel_exim_system_filter_11262025 )

    Then edit /etc/cpanel_exim_system_filter_11262025

    Then, in WHM, navigate to Exim Configuration Manager --> Basic Editor --> Filters

    Then specify your "System Filter FIle" as /etc/cpanel_exim_system_filter_11262025

    Of course you can call that newly copied over filter file any name you want, and reference as that name in the System Filter setting.   That's just how I name my own.

    2
  • Macs R We

    Thank you for the clue I needed to solve my problem. I'm still annoyed though, that the failure remains inexplicable.

    Using your contribution as a starting point, I discovered that in fact I had already done what you suggested back in May. (It truly sucks getting old, but the alternative is less preferable.) The file was still there. I compared it with the master file (in case the master file had been enhanced with something new that I should transfer over) but the master file contents were unchanged. When I went to specify my System Filter File, I found that it was already set properly to my altered file, so I don't understand why things stopped working, I toggled it back and forth (saving it both times) just to "get somebody's attention," and now I am no longer getting the bouncebacks. So I should be all set until the next mysterious failure.

    I updated my cheat sheet with clearer instructions (based on yours) as to how to make this local mod stick. I'll see if I can find somewhere to report a suggested enhancement to that cPanel support article to include the whole story.

    1
  • cPRex Jurassic Moderator

    Macs R We - what specifically do you think should get adjusted in that article?  I'm happy to tweak it!

    0
  • Macs R

    First off, there is already an ungrammatical instruction there that apparently seems to attempt this, but as it makes no clear sense it probably doesn't attract a lot of patronage:

    Please note that you have the option 'Attachments: Filter messages with dangerous attachments'  enabled in "Exim Configuration Manager", you will need to follow the below article to allow .eml attachments there as well.

    It could be replaced by a statement of the form:

    Before making the changes described below, ensure you have created a private copy of the EXIM configuration file, as described at
    (omitting the steps involving manual text editing); then return to this page to complete your edits with the WHM tools as described below.
     
    It would be cleaner to have a URL to refer to that had just the sections concerning the creation and substitution of the file (and not the manual editing portions), but I suspect no such guide exists currently.

     

    0
  • cPRex Jurassic Moderator

    I fixed the typo on that page, but I'm not entirely sure of the point of the larger change since neither of those pages reference the /etc/cpanel_exim_system_filter file.  I believe the point of these pages is so you don't have to adjust the main filter on the system.

    If I'm misunderstanding, which is *always* a possibility, let me know!

    0
  • Macs R

    Aaargh, I am losing track of my document references.

    It seems to me that the original file, https://support.cpanel.net/hc/en-us/articles/26318185855511-How-to-permit-eml-email-attachments, says the same thing redundantly. The section you just fixed references a document that tells you how to permit attachments by making a local copy of the EXIM file and manually editing it, then the document goes on to tell you how to make the SAME edits using the WHM tools. The warning about "Please note that if you have the option 'Attachments: Filter messages with dangerous attachments'  enabled in WHM >> Exim Configuration Manager" appears to me to be redundant, as if you didn't have that option enabled you wouldn't have to follow the steps included in the document it is in, either.

    Am I perhaps missing some subtlety? Is there more than one file involved in this change? (Perhaps that would explain why occasionally my behavior goes back to stock even though it looks like everything is still set properly to the local copy.)

    0
  • cPRex Jurassic Moderator

    I interpreted that as a "hey, if you've turned this option on *and* you want to allow .eml attachments, make sure you tweak that filter as well" - is that not the case?

    0
  • Macs R

    My understanding was that if you hadn't already had that option turned on, you wouldn't be reading this document in the first place because rejecting documents by their suffix would be something that wasn't happening on your system at all.

    0
  • cPRex Jurassic Moderator

    What's even more interested is that "On" is the default for that option, so it's more likely you'd have to specifically turn it off.

    I tweaked the wording on the page a bit after seeing that is the default.

    0

Please sign in to leave a comment.