Solved

spamassassin user setting

Posted on 2006-06-08
3
424 Views
Last Modified: 2008-02-07
I am using spamassassin, procmail and sentmail with around 50 users

I have rules set in /etc/mail/spamassassin/local.cf

some of the users have their own user_prefs ("white_list from" mostly)

We have no problem with users without rules in user_prefs (actually without .spamassassin folder)
But those users with user_prefs, the setting in local.cf seems not applying.

Question : How can I set that all users use local.cf while their user_prefs override same settings in local.cf
and other general rules still apply ?

0
Comment
Question by:ChanYiuPong
3 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
Comment Utility
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html

------------X8-------------------------
allow_user_rules { 0 | 1 } (default: 0)
    This setting allows users to create rules (and only rules) in their user_prefs files for use with spamd. It defaults to off, because this could be a severe security hole. It may be possible for users to gain root level access if spamd is run as root. It is NOT a good idea, unless you have some other way of ensuring that users' tests are safe. Don't use this unless you are certain you know what you are doing. Furthermore, this option causes spamassassin to recompile all the tests each time it processes a message for a user with a rule in his/her user_prefs file, which could have a significant effect on server load. It is not recommended.

    Note that it is not currently possible to use allow_user_rules to modify an existing system rule from a user_prefs file with spamd.
------------X8-------------------------

Which seems to imply one configuration file, or the other?

The best you can possibly do, is perhaps provide an alternative local.cf, which contains the all the 'non-priviledged' rules in one file, and instruct users to include this file as the first line of their file:
--------8X----------
include filename
    Include configuration lines from filename. Relative paths are considered relative to the current configuration file or user preferences file.
--------8X----------

HTH:)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Linux daemon 11 347
Issue to building connection 55 79
Linux Security Vulnerability 35 153
FTP: Servname not supported for ai_socktype 7 331
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now