Custom SpamAssassin- Multi Rules

amjad.q

Member
Jul 2, 2016
22
1
3
India
cPanel Access Level
Root Administrator
Hello,

I would like to add Custom SpamAssassin- Multi Rules with OR , for Ex

body LOCAL_DEMONSTRATION_RULE /test/
OR
body LOCAL_DEMONSTRATION_RULE /test2/
OR
body LOCAL_DEMONSTRATION_RULE /test3/

score LOCAL_DEMONSTRATION_RULE 0.1
describe LOCAL_DEMONSTRATION_RULE This is a simple test rule


How can I do the rules with OR ?
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,114
662
263
Houston
cPanel Access Level
DataCenter Provider
Hi @amjad.q

You can create a ruleset and have it check for multiple items without the use of OR. For examples you can look at the rulesets added to cPanel for the KAM and CPANEL custom rules located at:
Code:
/usr/local/cpanel/etc/mail/spamassassin/
They have a tutorial on writing rules as well, which can be found here: WritingRules - Spamassassin Wiki and they also have a large number of custom rulesets that you can pull examples from located here: CustomRulesets - Spamassassin Wiki

Thanks!