How to create a custom rule in SpamAssassin


EQ Forum Admin
Staff member

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

Edit your /etc/mail/spamassassin/

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

# 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.