At 07:45 AM 8/6/2005, Muhammad Farooq Bhatti wrote:
Dear All
 
I am newbie in spamassassin. I want to block the email based on custom rules like for matching “Viagra, Penis Enlarment” etc. Can any body help me in its deployment? As I tried with the following setting but it did not score 4.0 for that email
 
 
header USER_TEST_SUBJECT      Subject =~ /\bpenis\b/i
score USER_TEST_SUBJECT       4.0
describe USER_TEST_SUBJECT    this is for testing only
 
The score I am getting for this email in the log
 
 Milter add: header: X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,HTML_10_20,\n\tHTML_MESSAGE,USER_TEST_SUBJECT autolearn=no version=3.0.4
 
Please advice what to do. Thanx in advance


1) What file did you put these in?
2) do you use spamd?

If the answers are "user_prefs" and "yes", you need to set "allow_user_rules" in your local.cf. By default spamd will not honor rules in user_prefs files because there's a chance of abusing them to gain root permissions on the box.

(I don't know that any exploits or holes currently exist here, but the SADevs are smart enough to realize that this is a difficult option to protect from a malicious user, so by default they don't allow it.)

Reply via email to