cross-posted from: https://lemmy.sdf.org/post/46161145
I’ve been using Thunderbird to sort out my junk email for a while, ever since I walked away from my Gmail account. Thunderbird does a great job, but it does mean it has to stay running somewhere.
However I’m currently in the process of moving and as a result I’ve had to shut down the system that that I had been running Thunderbird on. The result of which, obviously, is that my inbox is now being flooded with spam.
Since it’s been a while since I last looked at the problem, I figured I ask. How do you deal with spam email?


First layer is done by Postscreen (by Postfix). It watches bots misbehaving, check blackhole DNS and disconnects them. Fail2ban takes care of bots who cause errors and warnings in logs and bans them. Third layer is SPF and DKIM. If it does not match, it’s getting flagged.
If someone conforms to protocols and passes the tests, there is still rspamd on the fourth layer. It does zillions of checks on the metadata and additionally learns via bayes. Dovecot moves all the crap to Junk and inserts the valid mails into their proper folders.
The fifth layer is me. If some junk mail arrives in the inbox, I move it to Junk manually and Dovecot tells rspamd to learn it as spam.