The antispam plugin allows you to retrain the spam filter by simply moving emails in and out of the Spam folder. This is the fork of the analogous plugin for Dovecot versions prior to v2.0. The original project can be found HERE.
Getting the sources
None so far.
Execute the following commands in order to get the source from the Mercurial repository:
# hg clone http://hg.dovecot.org/dovecot-antispam-plugin # cd dovecot-antispam-plugin
There is a web interface available HERE.
If you downloaded the sources using Mercurial, you will need to execute ./autogen.sh first to build the automake structure in your source tree. This process requires autotools and libtool to be installed.
If you installed Dovecot from sources, antispam-plugin's configure script should be able to find the files it needs automatically, just make sure the --prefix=<path> is specified correctly:
# ./configure --prefix=/usr # make # make install
If you get a DC_DOVECOT: not found" error message when running configure, make sure dovecot.m4 is in your aclocal folder. If you installed dovecot in an unusual location, you can also specify the path to the directory containing dovecot.m4 when you run autogen.sh like so:
# ACLOCAL='aclocal -I /path/to/directory' ./autogen.sh
In this case, you will probably also want to append --with-dovecot=/path/to/dovecot/include/directory when you run ./configure.
Configuration and Use
Please refer to the manual page dovecot-antispam(7) installed during the make install or view the textual version online HERE.
Please report the bugs, feature requests, or anything else regarding this plugin to its author and maintainer: Eugene Paskevich.
Note: Do not use chrooting because otherwise it might be impossible to find the binary the antispam plugin tries to execute. Or make sure the executed binary and the spam db is available in all home directories.