Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

spamassassin user setting

Posted on 2006-06-08
3
427 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
ID: 16914129
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Fine Tune your automatic Updates for Ubuntu / Debian
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

792 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