Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to update SpamAssassin's config on my server, since for whatever reason it thinks that DNSWL is whitelisting every incoming mail message. I put adjusted scores in /etc/mail/local.cf, but the settings are ignored. I think this is because update_spamassassin_org.cf is read afterwards and the individual included files in the update_spamassassin_org directory are read even later. These settings override my attempt to disable DNSWL and tweak some other items.

How can I get SpamAssassin to read local.cf (or some other file) at the VERY end of the config processing so that it overrides any other settings?

share|improve this question

closed as not a real question by Falcon Momot, Ward, mdpc, MadHatter, Dennis Kaarsemaker Jun 24 '13 at 19:01

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Depends on the distribution. –  mailq Oct 1 '11 at 21:21
    
I am running RHEL 5 with cPanel. –  Timothy R. Butler Oct 2 '11 at 1:58
    
Had the same problem with Zimbra. I'm wondering if sa-update will overwrite my local.cf if I make it a symlink from the update_spamassassin_org directory. –  Mojo Oct 23 '12 at 20:06
    
I'm not clear how this wasn't a clear question. I did get an answer below, so it did appear answerable. –  Timothy R. Butler Jul 16 '13 at 2:12

1 Answer 1

up vote 1 down vote accepted

local.cf is always parsed second-last, immediately before the user-prefs. You need to have this file in the correct location for it to work (by default /etc/mail/spamassassin), but if it isn't doing what you expect, it's likely a problem with the directives you've specified (which you've not specified to us).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.