You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Daniel Watts <d...@nielwatts.com> on 2005/10/31 11:54:32 UTC
How to include rule files?
Really simple question -
Where's the documentation to find out how to link other rule files into
my local.cf file?
Dan
Re: How to include rule files?
Posted by Daniel Watts <d...@nielwatts.com>.
Matt Kettler wrote:
> At 05:54 AM 10/31/2005, Daniel Watts wrote:
>
>> Really simple question -
>> Where's the documentation to find out how to link other rule files
>> into my local.cf file?
>
>
> You can't..
Really? It's in the documentation (but admittedly doesn't work...)
> but you don't need to. Spamassassin will parse
> /etc/mail/spamassassin/*.cf, not just local.cf
>
yep - someone told me this just now and it works a charm. means for a
cluttered spamassassin directory though...but i can live with it =)
> So, all you need to do is copy the rule files into the same directory
> as local.cf and SA will automatically use them with no configuration.
Re: How to include rule files?
Posted by Matt Kettler <mk...@comcast.net>.
At 05:54 AM 10/31/2005, Daniel Watts wrote:
>Really simple question -
>Where's the documentation to find out how to link other rule files into my
>local.cf file?
You can't.. but you don't need to. Spamassassin will
parse /etc/mail/spamassassin/*.cf, not just local.cf
So, all you need to do is copy the rule files into the same directory as
local.cf and SA will automatically use them with no configuration.
Re: How to include rule files?
Posted by Daniel Watts <d...@nielwatts.com>.
Daniel Watts wrote:
> Really simple question -
> Where's the documentation to find out how to link other rule files
> into my local.cf file?
>
> Dan
Answered this myself:
http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html
just use "include FILENAME"
Re: How to include rule files?
Posted by Matt Kettler <mk...@evi-inc.com>.
Daniel Watts wrote:
>
> Matt,
>
> Many thanks for this heads up! Any reason you are avoiding going to the
> 3.x branch?
Well, generally I hold off on new major releases for at least a month unless
there's a security reason to upgrade ASAP.
However, in this case I've just been too busy to upgrade.
Re: How to include rule files?
Posted by Daniel Watts <d...@nielwatts.com>.
> *MANY* things in the 3.x documentation aren't supported in 2.55. The
> include directive is new as of 3.0.0. Since I run 2.64, I was unaware
> it had been added. However, the option is only really useful for
> user_prefs files. Adding it to local.cf is pointless unless you have
> your .cf files in a different directly.
>
> Also, beware.. SpamAssassin 2.55 has a remotely exploitable DoS
> vulnerability. All an attacker needs to do is send you a malformed
> message.
>
> http://www.securityfocus.com/bid/10957
>
> Currently the only versions released of SA newer than 2.40 that are
> not vulnerable to any known security issues are:
> 2.64
> 3.0.0
> 3.0.4
> 3.1.0
Matt,
Many thanks for this heads up! Any reason you are avoiding going to the
3.x branch?
Yours,
Danie
Re: How to include rule files?
Posted by Matt Kettler <mk...@comcast.net>.
At 06:17 AM 10/31/2005, Daniel Watts wrote:
>Daniel Watts wrote:
>
>>Really simple question -
>>Where's the documentation to find out how to link other rule files into
>>my local.cf file?
>>
>>Dan
>
>
>Hmm spoke too soon:
>
>[root@fs3 spamassassin]# spamassassin --lint
>Failed to parse line in SpamAssassin configuration, skipping: include
>"/etc/mail/spamassassin/rules/SOFTWARE_SPAM.cf"
>
>is this only supported in 3.x? I'm on 2.55
*MANY* things in the 3.x documentation aren't supported in 2.55. The
include directive is new as of 3.0.0. Since I run 2.64, I was unaware it
had been added. However, the option is only really useful for user_prefs
files. Adding it to local.cf is pointless unless you have your .cf files in
a different directly.
Also, beware.. SpamAssassin 2.55 has a remotely exploitable DoS
vulnerability. All an attacker needs to do is send you a malformed message.
http://www.securityfocus.com/bid/10957
Currently the only versions released of SA newer than 2.40 that are not
vulnerable to any known security issues are:
2.64
3.0.0
3.0.4
3.1.0
Re: How to include rule files?
Posted by Daniel Watts <d...@nielwatts.com>.
Daniel Watts wrote:
> Really simple question -
> Where's the documentation to find out how to link other rule files
> into my local.cf file?
>
> Dan
Hmm spoke too soon:
[root@fs3 spamassassin]# spamassassin --lint
Failed to parse line in SpamAssassin configuration, skipping: include
"/etc/mail/spamassassin/rules/SOFTWARE_SPAM.cf"
is this only supported in 3.x? I'm on 2.55