I want to write about a new feature my hoster uberspace does now give me. Up to now, they gave me an global SpamAssaine and the ability to install every other solution locally in my user account.
Unfortunately, SpamAssasine was not so ideal for me as I encrypt all emails with my public key on arrival. Therefore, teaching SpamAssine was nearly impossible (I would have had to decrypt the mails on my pc and send it in some way to SpamAssasine).
Now there is also a global setup for DSPAM BUT learning is still based on each user AND DSPAM can learn just by the signature it has given the mail. What this means is this:
You do not have to give dspam a complete unencrypted mail for retraining if it has seen the unencrypted mail beforehand but only the signature! And the signature is just a header and therefore not encrypted! Yeah! So all I have to do now is send an email to my DSPAM which has the emails for retraining as an attachment inside.
I only had to write a small python script which processes all emails send to a special email address. It will take all the attachments, look for a DSPAM signature and retrain DSPAM to recognize it as spam or ham!
The script is called by qmail using this:or