How to create a custom rule in SpamAssassin

EQ Admin

EQ Forum Admin
Staff member
Hello,

Do you want to create a custom rule in your SpamAssassin?

Edit your /etc/mail/spamassassin/local.cf

Using the following as a guide, add the new rule to the end of your local.cf

Code:
# Custom Rules - Reject over quota messages as spam
rawbody EQOVERQUOTA    /user is over quota/i
score     EQOVERQUOTA    99.0

Don't forget to --lint your rules when done to make sure they are valid.

I made the above rule becuase I was receiving a lot of spam pretending to be over quota messages.
 
Top