| Configure a cPanel system to do Subject: tagging with SpamAssassin and Exim |
|
By efault, on a cpanel system, Spam Assassin doesn't allow the subject line rewriting. I find it a quick short cut to be able to glace at the subject line and tell if the email is junk or not ... Here is how to enable it. Requires root level access on the server. First off - thanks to the exim wiki Start off by saving your current exim config : Open /etc/exim.conf in your editor of choice, I use vi go to line 390, and you should see something like : warn Just before the last line we need to add a new header to the message :
Save the file and restart exim. Now, when a message is detected as spam, it will add a header named X-New-Subject. Now we need to edit the exim system filter, which on a cpanel system is located at : /etc/cpanel_exim_system_filter Then open in your editor and add the following lines @ the end of the file :
This first removes the existing subject, then adds a new Subject line with the spam tagging and the spam score.
|

