Rule Filename Conventions

SpamAssassin rules files typically look like this: or The convention is:


These have grown organically, and are just conventions -- so take this with a pinch of salt!

These are ordered with SpamAssassin in mind, particularly the way it reads the files in sorted order, so lower numbers are read first. The convention goes like this:

Note that files at level 70 in the SpamAssassin distribution's rules dir are not installed by "make install". That's a magic level.

All the others are approximate.

Descriptive Text

Our convention is to use all lower case, no spaces, characters from the set /[-_0-9a-z.]/ .


Rules files have to end in ".cf", otherwise SpamAssassin will ignore them. Plugins have to end in ".pm".

RuleFilenameConventions (last edited 2009-09-20 23:16:34 by localhost)