Solved

spamassassin user setting

Posted on 2006-06-08
3
426 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intel X520 pps problem 10 227
Redhat Linux 6.6 and LDAP 18 116
Edit file on Ubuntu as root 23 113
Exchanging Public Keys for SFTP between a Linux Server and an AS/400 10 171
​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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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 …

776 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