this post was submitted on 24 Nov 2025
46 points (100.0% liked)

Selfhosted

53166 readers
1000 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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?

top 18 comments
sorted by: hot top controversial new old
[–] cyberwolfie@lemmy.ml 3 points 1 day ago

Since switching from Gmail three years ago to Proton, I've not had a single spam mail. I also use aliases most places so that I can disable it if I start receiving spam on one.

[–] daniskarma@lemmy.dbzer0.com 1 points 1 day ago

My "important" emails work on a white list basis. So every sender not approved by me goes to spam. When I'm waiting for an email I'll check the spam folder for it and white list the sender.

[–] rmuk@feddit.uk 3 points 1 day ago

Get a domain name and use that for your email; most providers let you set a catch-all that delivers everything to one place. So if you got, say, strawberrypigtails.egg you could give every service you sign up for a different address: ebay@strawberrypigtails.egg, sdf.org@strawberrypigtails.egg, pornhub@strawberrypigtails.egg and so on. Then, when you start getting loads of spam, you can look at where the email was sent to rather that where it came from and either take action against that service or just block emails sent to that address.

[–] suzune@ani.social 3 points 1 day ago

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.

[–] dieTasse@feddit.org 8 points 2 days ago* (last edited 2 days ago)

Well.. Been using Proton since 2020 and ever since that I don't have spam issues. I am also using aliases, so if somebody sends me way too many newsletters I just disable the alias. This probably won't help you, but you asked 😀

[–] CompactFlax@discuss.tchncs.de 13 points 3 days ago (1 children)

Hard SPF and DKIM enforcement helps.

[–] pHr34kY@lemmy.world 2 points 1 day ago* (last edited 1 day ago)

Enforcing TLS filters out a lot of spam connectikns too. Every legit provider has a cert these days.

[–] foggy@lemmy.world 5 points 2 days ago (1 children)

I recently looked at my emails spam filters and my goodness. I've built a monstrosity over a few decades here.

[–] irmadlad@lemmy.world 2 points 2 days ago

LMAO! I would speculate that conservatively 90% of all my mail is spam that gets either rejected or dropped in the trash bin.

[–] blackbrook@mander.xyz 5 points 3 days ago

I use POPFile, open source software that classifies email into whatever categories you set up using a Bayesian algorithm (so you train it). It works as a proxy so it does it when your download email, so not a solution to your inbox filling up unless your can figure out how to run it on the server automatically.

It tags the email with a header and I use Thunderbird filters to move mail to folders for spam, adverts, political spam, and regular inbox.

It's abandonware but it still works and doesn't really need any more features IMO.

[–] erebion@news.erebion.eu 4 points 3 days ago (1 children)

My mailserver runs on Stalwart. Whatever it does works for me. I haven't yet had to change the defaults. It's also very easy to set up and requires next to no maintenance.

(It also does JMAP, which is like IMAP, but modern and efficient)

[–] hendrik@palaver.p3x.de 2 points 3 days ago (1 children)

Unfortunately JMAP isn't supported (yet) by a lot of email clients. I don't think there's a good open-source email suite for computers available... But I've tried Stalwart as well and it's really sleek and seems to come with good defaults.

[–] erebion@news.erebion.eu 3 points 2 days ago (1 children)

Sure, not widely supported, but if you use clients supporting it, it is great. Blazingly fast, while IMAP is always slow.

Also, Thunderbird is working on JMAP support: https://blog.thunderbird.net/2025/09/state-of-the-thunder-mozilla-connect-updates/

[–] hendrik@palaver.p3x.de 1 points 2 days ago* (last edited 2 days ago) (1 children)

Yes. I think several clients have open feature requests. The Stalwart documentation has a list of projects. There is one command line client as of now. But I'm not switching to a cli mail client or proprietary software, so I've postponed it. We'll see where this is going.

I welcome these modernization attempts. Though in theory I'd love to see someone revamp email in its entirety, add encryption, signatures, chat and crack down on spam and phishing. Not sure if that's ever going to happen, but that'd be great, too.

[–] erebion@news.erebion.eu 2 points 1 day ago

Ltt.rs works quite well on Android. Even without a client I'd be glad to have it already, I'm ready when Thunderbird is ready.

[–] eksb@programming.dev 4 points 3 days ago

spamassassin

[–] irmadlad@lemmy.world 2 points 2 days ago

As @eksb@programming.dev said, SpamAssasin and diligent training. Also, pFsense will filter based on rules and criteria in conjunction with Suricata or Snort.

[–] gedaliyah@lemmy.world 0 points 3 days ago

There are some tweaks you can usually do on the server/host side as well. That's particularly helpful if you use Thunderbird on multiple devices, such as desktop and phone.

Hopefully it will be even easier over time to sync settings between devices — I'd love to see filters and signatures across devices one day.