At 08:00 PM 9/3/2003 +0200, Ralf G. R. Bergs wrote:

> SA reads any config files in /etc/mail/spamassassin automatically.

Sorry, wasn't aware of this, it's not in the manpages (or is it?!).

Yes, it is in the manpage for spamassassin.


It's not entirely clear, but basically it will find the first "default ruleset" directory (usually this is /usr/share/spamassassin), and the first "site-specific configuration" directory (usually /etc/mail/spamassassin). It will first parse the "default ruleset" directory, then the "site specific configuration" directory. As it parses each directory it will read all .cf files in them, and will read them in alphabetical order of filename.


From man spamassassin:



CONFIGURATION FILES The rule base, text templates, and rule description text are loaded from the configuration files.

       By default, configuration data is loaded from the first existing
       directory in: /usr/local/share/spamassassin;/usr/share/spamassas­
       sin;./rules;../rules

       The configuration data in the first existing directory in:
       /usr/local/etc/spamassassin;/usr/pkg/etc/spamassassin;/usr/etc/spa­
       massassin;/etc/mail/spamassassin;/etc/spamassassin are used to over­
       ride any values which had already been set

       Spamassassin will read *.cf in these directories, in alphanumeric
       order within each directory (similar to SysV-style startup scripts).
       In other words, it will read 10_misc.cf before 50_scores.cf and
       20_body_tests.cf before 20_head_test.cf.  Options in later files
       will override earlier files.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to