Support / KnowledgeBase

 
Search the KnowledgeBase Search

How do I change the SpamAssassin template for messages recognized as spam?

  • Applies to: All (dv)

  • Difficulty: Medium

  • Time needed: 20 minutes

  • Tools needed: SSH, Root Access

 
  • Applies to: All (dv)
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: SSH, root

Introduction

You can add your own template to /etc/mail/spamassassin/local.cf. There is an example one at /usr/share/spamassassin/10_default_prefs.cf. Below is a snippet of that file:

Sample template

    
clear_report_template
report Spam detection software, running on the system "_HOSTNAME_", has
report identified this incoming email as possible spam.  The original message
report has been attached to this so you can view it (if it isn't spam) or label
report similar future email.  If you have any questions, see
report _CONTACTADDRESS_ for details.
report
report Content preview:  _PREVIEW_
report
report Content analysis details:   (_SCORE_ points, _REQD_ required)
report
report " pts rule name              description"
report  ---- ---------------------- -----------------------------------------
report _SUMMARY_

Restart SpamAssassin after making any changes with the command:

/etc/init.d/psa-spamassassin restart 

User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue