SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
dspam Training
Training dspam from Thunderbird junk messages
Dovecot Antispam Plugin
Retrain spam message
dspam --user username --source=error --class=spam /path/to/message
Classify a message without training on it:
dspam --user username --classify /path/to/message
Dovecot Anti-Spam Plugin
Train dspam simply by moving messages into a Spam folder.
cd /extra/src
wget http://hg.dovecot.org/dovecot-antispam-plugin/archive/tip.tar.gz \
-O dovecot-antispam-plugin.tar.gz
tar zxf dovecot-antispam-plugin.tar.gz
cd dovecot-antispam-plugin-5ebc6aae4d7c
ACLOCAL='aclocal -I /usr/local/share/aclocal' ./autogen.sh
./configure
make
make install
Edit /usr/local/etc/dovecot/conf.d/20-imap.conf
and add the plugin:
protocol imap {
mail_plugins = $mail_plugins antispam
}
Configure the plugin settings in /usr/local/etc/dovecot/conf.d/90-plugins.conf
:
antispam_backend = dspam-exec
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_trash = trash;Trash;Deleted Items; Deleted Messages
antispam_spam = Spam
antispam_dspam_binary = /usr/local/bin/dspamc # For our daemonized setup
antispam_dspam_args = --client;--deliver;--user;%u;--source=error;--signature=%%s
Alias training issue
Even with MySQLUIDInSignature on
set in dspam.conf
, the antispam_dspam_args
must have --user
set to a user that exists in the the MySQL table dspam_virtual_uids
.
http://dspam-user.narkive.com/njwX4rau/getting-mysqluidinsignature-to-work-under-3-6-1
https://www.mail-archive.com/dspam-users@lists.nuclearelephant.com/msg00709.html
http://dspam-user.narkive.com/ez7Ct8sc/problems-with-mysqluidinsignature-and-single-spam-alias
- Log in to post comments
Credits
Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.