Where does spamassassin get its default settings from?

chatwizrd

Verified User
Joined
Jul 3, 2005
Messages
1,911
Can someone tell me where I can edit the master user_prefs file that users use. I would like to change some of the settings to add things such as global whitelists and such.

I want the file that is copied into /home/user/.spamassassin/user_prefs

Thanks
 
I am interested in that too. Global spam assassin settings for all users will be very good feature.
 
The article https://help.directadmin.com/item.php?id=117 provided by sce shows how to get default settings for spamassassin for each user which will setup the folder in eacht /home/user/.spamassassin folder.

However I wanted the spamassassin default /etc/mail/spamassassin/local.cf settings to be used in case no spamassassin was customized for a user. Reason is that my users are mostly not aware to enable this spamassassin themselves, but are complaining about spam.

From the headers of the mail I noticed that the X-Spam was only done in case a user enabled spamassassin. After my relative simple fix it will also scan for spam on e-mail for which no spamassassin settings were configured.

The trick is only to comment 1 line in exim.conf. So after installing spamassassin via the directadmin approach described here http://help.directadmin.com/item.php?id=36 then edit /etc/exim.conf again and remark the line

Code:
#      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \

This will skip this test and allow to run spamd even when no /home/user/.spamassassin/user_prefs file is available and spamassassin will by nature fall back on /etc/mail/spamassassin/local.cf
 
Back
Top