Patch to default MailScanner.conf for correct SpamAssassin Local State Dir

Stef Morrell stef at aoc-uk.com
Thu Nov 23 10:02:35 GMT 2006


Hello,

Randal, Phil [prandal at herefordshire.gov.uk] wrote:
> As Theo van Dinter notes in
> http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4952#c11
>  , the spamassassin local_state_dir includes /spamassassin, e.g.
> /var/lib/spamassassin, and not /var/lib.

Might want to be a bit careful with this. My spamassassin installs,
which are from Julian's most recent bundle have the following code:

# note that the CWD takes priority.  This is required in case a user
# is testing a new version of SpamAssassin on a machine with an older
# version installed.  Unless you can come up with a fix for this that
# allows "make test" to work, don't change this.
@default_rules_path = (
  '__local_state_dir__/__version__',
  '__def_rules_dir__',
  '__prefix__/share/spamassassin',
  '/usr/local/share/spamassassin',
  '/usr/share/spamassassin',
);

As you can see, /spamassassin is NOT included in the _local_state_dir_
line. Accordingly, MailScanner.conf should not be changed at this time.

It will need to be checked again after the next release of SA, I would
guess.

Regards

Stef
Stefan Morrell          | Operations Director
Tel: 0845 3452820       | Alpha Omega Computers Ltd
Fax: 0845 3452830       | Incorporating Level 5 Internet
stef at aoc-uk.com         | stef at l5net.net


More information about the MailScanner mailing list