?
Solved

spamassassin rules

Posted on 2006-06-07
3
Medium Priority
?
229 Views
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 local.cf

body TEST_XXX /all 50 % off -/
describe TEST_XXX bad-email
score TEST_XXX 10
0
Comment
Question by:ChanYiuPong
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 16859716
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.

HTH:)
0
 

Author Comment

by:ChanYiuPong
ID: 16860374
pjedmond,

do you mean the file local.cf ?
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16860458
Yes - well done for spotting the deliberate mistake:)

The:

/etc/mail/spamassassin/local.cf

file (or the local.cf spamassassin file for the system)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

​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…
Fine Tune your automatic Updates for Ubuntu / Debian
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 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