How to create a custom rule in SpamAssassin

Discussion in 'Mail Server Support' started by popowich, Oct 30, 2013.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:

    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.

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.