How to run spamassassin on a mail server

For some reasons, for example if you use your own webmail server, you may want to run spamassassin on your mail-server, not on the client. This gives you an overview how you can do this with Linux. We will set up a mail server that fetches mail from a remote server and deletes the spam mails.

/etc/init.d/webmin start Point your browser to http://localhost:10000/fetchmail/, use your browser to configure fetchmail. Point your browser to http://localhost:10000/spam/, use your browser to configure spamassassin.
 * install fetchmail
 * install webmin
 * start webmin
 * configure fetchmail via webmin
 * configure spamassassin via webmin
 * configure procmail via webmin

Know: Procmail processes incoming mails. One option is to feed the mail through spamassassin.

Do: Point your browser to http://localhost:10000/procmail/, make sure that Feed to program /usr/bin/spamassassin is set to Always execute action. Point your browser to http://localhost:10000/fetchmail/index.cgi, click onto "check all servers". Point your browser to http://localhost:10000/mailboxes/, click onto your username.
 * fetch your mails
 * read your mails