Why isn't SpamAssassin's rewrite_header Subject working?
Hello, I enabled SpamAssassin and I want to filter Spam using the "rewrite_header Subject" tag but it's not working.
I followed the steps outlined in the cPanel Interface Help.
I'll post it below for anyone that isn't familiar with it.
Thx,
Nelson
--------------------------------------------------
Sorting spam with your email client
This is the preferred method of sorting and deleting spam messages. With SpamBox disabled, you can configure SpamAssassin to mark your email with an identifying subject (such as +++SPAM+++), which can then be used to filter each message into an appropriate location.
To do this, you must directly edit the SpamAssassin configuration file on the server, if your web host allows this. Its location is: /home/example/.spamassassin/user_prefs (where “example” stands for your cPanel username). Within this file, you must add a line formatted like this:
rewrite_header Subject +++SPAM(SCORE)+++
This will cause the subject line of a message marked as spam with a score of 6 to begin with +++SPAM(6)+++
You can then use cPanel’s Account Level Filtering feature to reroute messages based on their spam scores, as you desire.
--------------------------------------------------
I followed the steps outlined in the cPanel Interface Help.
I'll post it below for anyone that isn't familiar with it.
Thx,
Nelson
--------------------------------------------------
Sorting spam with your email client
This is the preferred method of sorting and deleting spam messages. With SpamBox disabled, you can configure SpamAssassin to mark your email with an identifying subject (such as +++SPAM+++), which can then be used to filter each message into an appropriate location.
To do this, you must directly edit the SpamAssassin configuration file on the server, if your web host allows this. Its location is: /home/example/.spamassassin/user_prefs (where “example” stands for your cPanel username). Within this file, you must add a line formatted like this:
rewrite_header Subject +++SPAM(SCORE)+++
This will cause the subject line of a message marked as spam with a score of 6 to begin with +++SPAM(6)+++
You can then use cPanel’s Account Level Filtering feature to reroute messages based on their spam scores, as you desire.
--------------------------------------------------
I was able to get with systems on this and they disabled global subject rewrite and enabled it and then re-enabled it through the WHM. Please see if the subjects are writing correctly now.
James R