Ditch the Spam: Self-Host Your Own Disposable Email Service
Ever signed up for a sketchy download link, a one-time forum, or a service you just know is going to sell your email address? We've all been there. You use a temporary email service, but then you're at the mercy of some random website, wondering who's actually reading those inboxes.
What if you could cut out the middleman entirely? That's the idea behind TempFastMail, an open-source project that lets you run your own disposable email server. It's about taking back a little control over your digital privacy, one throwaway inbox at a time.
What It Does
TempFastMail is a self-hosted service that gives you temporary, on-demand email addresses. You spin up the server, and it creates unique email addresses for you to use. Any emails sent to those addresses are caught by your server, where you can view them. After a short, configurable lifespan (like 10 minutes), the address and its emails are automatically deleted. It's a personal, private spam sink.
Why It's Cool
The clever part is in the simplicity and autonomy. You're not relying on a public service like Guerrilla Mail or Temp-Mail. Since you host it, you control the data. No one else is scanning those "verification" emails or "special offer" newsletters. It's just your server, catching mail you asked for.
It's built to be lightweight and straightforward. The server handles the email receiving (via SMTP) and provides a clean web interface to check your temporary inboxes. The automatic cleanup means you don't have to manage or worry about old addresses piling up. It’s a set-it-and-forget-it tool for protecting your primary email from clutter and potential abuse.
How to Try It
Getting started is a classic self-hosted project workflow. You'll need a server (or even a Raspberry Pi) and a domain (or subdomain) you can point to it.
- Grab the code: Clone the repo from GitHub:
git clone https://github.com/kasteckis/TempFastMail.git - Configure it: You'll need to set up your DNS records (MX records are key for receiving email) and configure environment variables for your domain and mail server settings. The README has the details.
- Deploy it: The project provides a
docker-compose.ymlfile, so getting it running is typically just adocker-compose up -daway.
There's no live demo because, well, the whole point is to host your own private instance. The setup is the demo.
Final Thoughts
As a developer, I see tools like this as small but powerful pieces of personal infrastructure. It's not for everyday communication, but it's perfect for those moments when a website demands an email but doesn't deserve yours. Hosting it yourself adds a layer of privacy that public temporary email services simply can't offer.
It's a weekend project that pays off in reduced spam and a bit more peace of mind. If you've been looking for a practical excuse to tinker with SMTP and DNS settings, or just want to keep your main inbox clean, TempFastMail is a neat solution to check out.
@githubprojects
Repository: https://github.com/kasteckis/TempFastMail