Solved

spamassassin user setting

Posted on 2006-06-08
3
431 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
[X]
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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Fine Tune your automatic Updates for Ubuntu / Debian
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

615 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