[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vps-mail] Custom SA rules not working in user_prefs but work in local.cf?



Info:  I'm on a VPS2 using SA 3.0.2

A client wanted me to block some specific spelling of obscene words (I told him about the punctuation-based spelling that many spammers use but he wants to move ahead on just these words) and so I crafted a custom rule in his /home/<userid>/.spamassassin/user_prefs file as such: (I've removed the offending word and replaced it with 'foo' so as not to run afoul of any of YOUR filters:

#---
header WATCH_LANG       Subject =~ /foo/i
describe WATCH_LANG     Watch your language!
score WATCH_LANG        10
#---

However, after some test emails, I saw that the rule was not being triggered even though the word 'foo' appeared in the subject.

I then added the above block to the /usr/local/etc/mail/spamassassin/local.cf file, and now it works...

I use the vinstall to install spamassassin: my /usr/local/etc/procmailrc doesn't have any SA commands in it, and the command in the user's /home/<userid>/.procmailrc file is:


:0fw
|/usr/local/bin/spamc -U /var/run/spamd.sock -u <userid>

Any thoughts? I even restarted spamd and still no dice. Its working now but I have other clients that don't find these words as 'objectionable' so I don't really want to keep this filter in the master file, but have it restricted just to this client that wants it.

Thanks for any assistance,
Matt
--
:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+
Matthew I. Cohen                                   http://www.iwbyte.com/
It Won't Byte Web Design & Hosting.     Ob. Quote: "Reality is for those
email: lists@xxxxxxxxxx                  people who can't handle Fantasy"
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: