Removing ***SPAM*** In the Subject Line - In cPanel's SpamAssassin

Spam assassin is enabled on all servers by default. One feature of Spam Assassin is that it will mark spam-emails with ***SPAM*** in the subject line, in order to draw attention and make it easier to filter/sort.
If this is not ideal and you wish to remove this feature, it is possible to do so by taking the following steps:

  1. Log in to cPanel.
  2. Navigate to the File Manager, located in the FILES-section.
  3. The folder we need to access is hidden by default so if you have not enabled showing hidden files and folders we need to do so by clicking Settings, located on the top right-hand corner. Check the box to Show Hidden Files (dotfiles) and click Save.
  4. Once hidden files and folders are showing, you should see a folder called .spamassassin, located in your home folder. Double-click the .spamassassin folder and right-click the file user_prefs (/.spamassassin/user_prefs) and select Edit.
  5. On a new row, add the line rewrite_subject 0 and click Save (located on the top right-hand corner).

That's it! From now on, the incoming emails should no longer contain ***SPAM*** in the subject line!

Have more questions? Submit a request


Please sign in to leave a comment.