welcome: please sign in

Diff for "SpamAssassinAdmin"

Differences between revisions 1 and 18 (spanning 17 versions)
Revision 1 as of 2005-08-08 06:53:21
Size: 1316
Editor: AdamChlipala
Comment:
Revision 18 as of 2021-11-06 18:42:33
Size: 710
Editor: ClintonEbadi
Comment: ... but the puppet parts for installing spamd aren't public yet
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Here's how we set up our site-wide Spam``Assassin bayes database, including the ability for users to train it. {{{#!wiki note
'''Additional information is available at a [[https://wiki.hcoop.net/SpamAssassinAdmin?rev=14|previous version of this page]]'''
Line 3: Line 4:
 1. Create a new user `spamd` with home `/home/spamd`.
 1. Perform the following as `spamd`:
   1. `cd /home/spamd`
   1. `maildirmake -S Maildir`, to create the shared Spam``Assassin mailbox.
   1. `maildirmake -f SiteSpam -s write Maildir`, to create a writable folder for misclassified spam.
   1. `maildirmake -f SiteHam -s write Maildir`, to create a writable folder for misclassified ham.
 1. Add the following to `spamd`'s crontab to learn from and delete messages in those shared folders every five minutes:
    {{{
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sa-learn --spam --dir /home/spamd/Maildir/.SiteSpam/cur >/dev/null; cd /home/spamd/Maildir/.SiteSpam/cur ; ls | xargs -r rm
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sa-learn --ham --dir /home/spamd/Maildir/.SiteHam/cur >/dev/null; cd /home/spamd/Maildir/.SiteHam/cur ; ls | xargs -r rm}}}
    The funny `xargs`-based way of deleting files is important, because `ls` has a hard limit on how many files it can handle, which we learned the hard way! Also, be sure there's a newline after the last line, or it won't be processed.
 1. Modify `/etc/spamassassin/local.cf` with the directive:
    {{{
bayes_path /home/spamd/}}}
It is quite outdated. However, it may have some information which has not yet been incorporated into the current version.
}}}


== FAQ ==

=== Where can I find the config files? ===

A: https://git.hcoop.net/hcoop/config/spamassassin.git contains the current spamd configuration, which is pulled into puppet using a git submodule.

Installation is handled using Puppet classes `hcoop::service::mail::spamassassin::{client,server}`, which is unfortunately only accessible to members with admin accounts currently.

----
CategorySystemAdministration

Additional information is available at a previous version of this page

It is quite outdated. However, it may have some information which has not yet been incorporated into the current version.

1. FAQ

1.1. Where can I find the config files?

A: https://git.hcoop.net/hcoop/config/spamassassin.git contains the current spamd configuration, which is pulled into puppet using a git submodule.

Installation is handled using Puppet classes hcoop::service::mail::spamassassin::{client,server}, which is unfortunately only accessible to members with admin accounts currently.


CategorySystemAdministration

SpamAssassinAdmin (last edited 2021-11-06 18:42:33 by ClintonEbadi)