Question
How to preserve Exim system filter changes?
Answer
Sometimes, you must modify the Exim system filter that persists through cPanel updates. To prevent your Exim filter customizations from being overwritten during updates, you need to create a custom Exim system filter file to be included in the Exim configuration.
Note: Please note that cPanel rebuilds the /etc/cpanel_exim_system_filter file when the Exim configuration is updated, causing any customizations made to the file to be lost.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
-
Copy the contents of the
cpanel_exim_system_filterfile to a new file.# cp -p /etc/cpanel_exim_system_filter /etc/cpanel_system_filter_custom
Warning: Do not use the following reserved filter names for your new filter file.
- attachments
- fail_spam_score_over_100
- fail_spam_score_over_125
- fail_spam_score_over_150
- fail_spam_score_over_175
- fail_spam_score_over_200
- fail_spam_score_over_int
- nullroot
- spam_rewrite
-
Set the new file's permissions to
644.# chmod 644 /etc/cpanel_system_filter_custom
- Open the new file in your preferred text editor.
- Add the desired customizations.
- Save the changes and exit the text editor.
- Log in to WHM as the ‘root’ user.
- Navigate to the Home / Service Configuration / Exim Configuration Manager
- Click the "Basic Editor" tab.
- Click the "Filters" tab.
-
Select the "System Filter File" textbox.
Note: Please note that the Exim configuration will include all the files in the /usr/local/cpanel/etc/exim/sysfilter/options/ folder, even when using a custom filter file.
-
Enter the new file’s absolute path in the text box.
# /etc/cpanel_system_filter_custom
- Scroll to the bottom of the page.
- Click the "Save" button.
Comments
0 comments
Article is closed for comments.