.spamassassin/user_prefs

jdjongh

Verified User
Joined
Dec 4, 2003
Messages
5
Hi,

I have a working spamassasin version 2.64
And i have the following global settings.

PHP:
# How many hits before a message is considered spam.
required_hits           7.5

# Whether to change the subject of suspected spam
rewrite_subject         1

# Text to prepend to subject if rewrite_subject is used
subject_tag             *****SPAM*****

# Encapsulate spam in an attachment
report_safe             1

# Use terse version of the spam report
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english
ok_languages            en

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en

Ok so this is the global setting.
The configuration in Exim was the following:

PHP:
# Spam Assassin
spamcheck_director:
  driver = accept
  condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify

So now i want that the users of a domain can set their own settings.
You can enable this, and users get an ow configuration file.
In the /home/username/.spamassassin/user_pref

You have to change some settings in the exim.conf
I changed this

PHP:
# Spam Assassin
spamcheck_director:
  driver = accept
  condition = "${if and { \
      {!def:h_X-Spam-Flag:} \
      {!eq {$received_protocol}{spam-scanned}} \
      {!eq {$received_protocol}{local}} \
      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
    } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify

This looks ok, but when i restart all and send a test spam email the global settings will "overrule".

The user settings in /home/username/.spamassasin/user_pref

won't work.

Is there something wrong with my configuration? Of do i have to change somthing else as well?

I need some assistance please.
 
Back
Top