required_hits 5
rewrite_subject 1
subject_tag {SPAM}
bayes_path /home/lpaccount/.spamassassin/bayes
bayes_file_mode 0600
bayes_ignore_header X-MailScanner
bayes_ignore_header X-MailScanner-SpamCheck
bayes_ignore_header X-MailScanner-SpamScore
bayes_ignore_header X-MailScanner-Information
all of that goes in your /home/lpaccount/.spamassassin/user_prefs file, assuming your LP account name is "lpaccount", of course.
The lines that being with a # are just commented lines, you don't need those.
Essentially, here's a line-by-line description of what each portion of that example user_prefs file does:
required_hits 5This tells SA that anything that scores higher than 5.0 points should be flagged as SPAM
rewrite_subject 1This tells SA to rewrite the start of your subject line if it scores higher than what the score was from the previous setting.
subject_tag {SPAM} This tells SA what to prepend the string "{SPAM}" to the start of any Emails that score higher than "required_hits".
bayes_path /home/lpaccount/.spamassassin/bayesThis is the start of the path for your bayesian database including the start of the filename. If this path ended in "/ianwashere" then it would look for files like "ianwashere_toks" and "ianwashere_seen" etc.
bayes_file_mode 0600How to set permissions on your bayesian database files
bayes_ignore_header X-MailScanner
bayes_ignore_header X-MailScanner-SpamCheck
bayes_ignore_header X-MailScanner-SpamScore
bayes_ignore_header X-MailScanner-InformationThese lines basically tell SpamAssassin to skip scanning these header strings for content that could be spammy. This is generally a good idea to have here.
-id