Using a Ruleset for SpamAssassin Prefs File

Julian Field mailscanner at ecs.soton.ac.uk
Tue Oct 29 15:11:44 GMT 2002


Unfortunately you can only have 1 spam.assassin.prefs.conf file.

This is because SpamAssassin reads this when it compiles all its rules. The
only other solution is to compile SpamAssassin separately for every
message, rather than once at startup. And doing that is very very slow. I
wish there was a way of passing some custom settings for each message, but
there appears to be no means of doing this in SpamAssassin.

At 11:52 29/10/2002, you wrote:
>Im a bit of a newcomer with Spam Assassin.
>
>I have it working fine on my RedHat 7.2, MS 4.03-1 set-up
>
>However I relay mail for a lot of different domains (we look after a load
>of schools) and want to be able to have a different
>"spam.assassin.prefs.conf" per domain. I tried setting it as a ruleset but
>it complained with
>
>Oct 29 11:31:58 testbox MailScanner[6037]: Value of spamassassinprefsfile
>cannot be a ruleset, only a simple value
>
>I can see I can set various settings per domain e.g. High SpamAssassin
>Score etc.. but I want to define my own rules e.g. the
>
>header   DODGY_TEXT  Subject =~ /some dodgy text/i
>describe DODGY_TEXT  xyz School dont want this
>score    DODGY_TEXT   15.0
>
>and it only applies to one domain.
>
>My question is, in the current version is their a way of accomplishing
>this? or is the spam.assassin.prefs.conf file global.
>
>Thanks
>
>Paul Houselander
>Network & Intranet Support Officer
>Bristol City Council
>
>
>
>--
>This message has been scanned for viruses and
>dangerous content by <http://www.mailscanner.info/>MailScanner, and is
>believed to be clean.

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list