spam.assassin.prefs.conf contents

Matt Kettler mkettler at EVI-INC.COM
Tue Nov 29 18:49:58 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Kevin Miller wrote:

> 
> Oh great, something else to be confused about! <g>  This is the first
> I've heard of nfssafe locking.

That's because it's the default, and the only other option besides flock. Most
people don't bother to re-declare the default setting. Instead, most change it
because they know they don't use NFS and want the speed gains of flock.

Very few people use NFS, but SA defaults to nfssafe in order to err on the side
of caution.


>  Per the recommendations in
> spam.assassin.prefs.conf I set 'lock_method flock' in
> /etc/mail/spamassassin/local.cf (see below) Note that it is commented
> out in spam.assassin.prefs.conf. 

That's fine.

You'll only get into trouble if spam.assassin.prefs.conf has a lock_method
declared and local.cf doesn't have a matching one.

It's perfectly fine if it only exists in local.cf, as all SA processes will
parse that.

> If it should be uncommented as well as
> added perhaps that should be added to the commments as it's not clear to
> me at least if they're co-dependent or if one overrides the other.
> 

They over-ride.

For the most part options in SA config files over-ride each other with the
last-parsed file being the winner. The parse order is:

1) pre-init files (/etc/mail/spamassassin/*.pre on most sites. Should only do
things like loadplugins that must be done before the general rules are parsed

2) default rules (/usr/share/spamassassin/*.cf on most sites)

3) site rules (/etc/mail/spamassassin/*.cf on most sites)

4) user_prefs files (~/.spamassassin/user_prefs for normal SA processes,
spam.assassin.prefs.conf for MailScanner's SA instances.)


You can get into trouble with locks if a user_prefs changes it. This is why the
official docs state you can't change it in user_prefs, and SA's spamd actually
enforces this.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list