spamassassin rules

Posted on 2006-06-07
Last Modified: 2010-08-05
I want to set rules to block email content with a line
all 50 % off - (follow by a url link)

am I correct to add the lines to the

body TEST_XXX /all 50 % off -/
describe TEST_XXX bad-email
score TEST_XXX 10
Question by:ChanYiuPong
    LVL 22

    Accepted Solution

    Looks good to me although whenever I see % or other funny signs, I occassionally wonder whether I need to escape them with a \, but I don't think you do for %. If you don't escap # it interpretes it as a comment from there onwards!

    If you want users to be able to add rules like this into their ~./spamassassin/user_prefs you need to make sure that:

    allow_user_rules 1

    exists in the /etc/mail/spamassassin file, otherwise rules like this will be ignored.


    Author Comment


    do you mean the file ?
    LVL 22

    Expert Comment

    Yes - well done for spotting the deliberate mistake:)



    file (or the spamassassin file for the system)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    ​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
    Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now