Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

spamassassin user setting

Posted on 2006-06-08
3
Medium Priority
?
433 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 2000 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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 …
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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