Mailscanner + spamassassin +Razor + Pyzor + DCC

Matt Kettler mkettler at evi-inc.com
Thu Mar 15 18:14:20 CET 2007


Scott Silva wrote:
> Matt Kettler spake the following on 3/14/2007 11:05 AM:
>> Nicolas Canepa wrote:
>>> Hi, I am using Mailscanner with spamassassin. For what i've read you can
>>> define in Mailscanner.conf to use pyzor, razor and dcc, or tell
>>> spamassassin to use razor, pyzor and dcc in the local.cf file.
>> Em, no. you can define it in MailScanner.cf, spam.assassin.prefs.conf, or local.cf.
>>
>> You cannot define it in MailScanner.conf, which is a MailScanner config file.
>> Mailscanner.cf on the other hand is a spamassassin config file, and lives in the
>> spamassassin site rules directory.
> Actually, mailscanner.cf is supposed to be a softlink to
> spamassassin.prefs.conf. If you have something else, you are breaking the
> reason that this was done.

First, *I* am the reason that was done. So please don't tell me I'm breaking the
reason it was done.

Second, I do acknowledge this is how it is by default later on in my message.

IMHO, softlinking spamassassin.prefs.conf to MailScanner.cf is counterproductive.

When I told Julian to move privileged settings to a .cf file, I meant for him to
*MOVE* them.

That said, the softlinking is probably the only usable solution that can be
automatically applied to existing installs. But the intent is not to softlink
the two, that's a compromise to avoid breaking peoples systems.

Now you're all double-parsing the settings for no good reason. Which isn't
terribly harmful, but it is pointless. You've also defeated all the benefit of
having a spam.assassin.prefs.conf in the first place.

IMHO this is the way it should be in a perfect world:

Mailscanner.cf should contain settings you want to apply SA at all times,
regardless of whether it's invoked via MailScanner or directly using a SA tool.
bayes_path, dcc/pyzor/razor config, etc. This is important so sa-learn and such
work properly.

spam.assassin.prefs.conf should contain settings you *only* want to apply to
MailScanner's run of SA. Most people don't need this, so the file should be
empty, but if for some reason you have a side process that runs SA directly,
you'd want to take advantage of it. This way your side-tool can run sa with one
required_score, and MailScanner can run it with a different one, should you
desire that.

However, that separation has to be a manual process. Which is why we soft-link
as a "punt".







More information about the MailScanner mailing list