Custom SpamAssassin settings...

How do I code this rule using the SiteWorx Domain Wide Spam Preferences:

header WALLSTREETWISE_RULE ALL=~ /wallstreetwise/i
describe WALLSTREETWISE_RULE Refers to unused domain
score WALLSTREETWISE_RULE +1

From what I can tell you only get one line to do anything… and I’m not sure if/where there is a text file that I can modify these settings…

Cliff.

Tried creating a .spamassassin/user_prefs file but that doesn’t seem to have any effect… is the use of this file being bypassed?

Cliff.

Yes, since we’re using MySQL to store user prefs the file based unix user prefs are bypassed.

You could add those prefs globally to the /etc/mail/spamassassin/local.cf file.

Paul

Ok. I will take a look at the global local.cf file…

I’m quite skeptical of the benefit of using SQL to manage the preferences (in its current incarnation)… it’s quite limiting that the only way to usefully tailor the preferences is system-wide.

I would suggest improving the SQL mechanism to allow for more “advanced” rule editing / configuration, or figure out a way to make the standard file based approach work in conjunction with the SQL mechanism…

Have you tried creating 3 rules that describe the preference you described, one per line?

header WALLSTREETWISE_RULE ALL=~ /wallstreetwise/i
describe WALLSTREETWISE_RULE Refers to unused domain
score WALLSTREETWISE_RULE +1

for example,

Name: header WALLSTREETWISE_RULE
Value: ALL=~ /wallstreetwise/i

Name: describe WALLSTREETWISE_RULE
Value: Refers to unused domain

Name: score WALLSTREETWISE_RULE
Value: +1

Paul