# Stalwart Self Hosted Mail Aliasing

**URL:** https://discuss.privacyguides.net/t/stalwart-self-hosted-mail-aliasing/40786
**Category:** General
**Tags:** software
**Created:** 2026-09-16T22:49:05Z
**Posts:** 8

## Post 1 by @owl1 — 2026-09-16T22:49:06Z

I just wanted to mention that you can use stalwart also for mail aliasing if you don’t want to rely on simplelogin or [addy.io](http://addy.io) etc.

Usually this is a feature only for the paid version, but if you just write a small script you can add another identity to your mail account and with this basically get the same thing, with just the free tier.  
If someone is interested I can share my own script too

The only downside of doing this is, that it makes you easier to identify, e.g. if only u use the domain example . com it’s pretty easy to match your accounts across different providers. Although I wouldn’t regard a site where you register with a simplelogin alias etc. as really anonymous either

The strongest argument for doing this, is that you have your own domain and can take all your alias with you whenever you want, like lets say switching server, or moving back to a commerical provider that allows you adding your own domain

---

## Post 2 by @panda7057 — 2026-09-17T16:22:44Z

I’d be interested in this, can you provide a link to your script?

---

## Post 3 by @Sorge — 2026-09-17T16:27:05Z

i never got the idea of using alias services with own domain. Like, you already have your domain, [Cloudflare Email Routing](https://www.cloudflare.com/products/email-routing/) is free - with it and a bit of js user can have any number of aliases with pretty complex rules and features

---

## Post 4 by @panda7057 — 2026-09-17T20:38:53Z

some people don’t want to use cloudflare. I selfhost 99% of my stuff. and use vps for the rest. the only service I don’t selfhost is vpn and that’s just bc it’s usually cheaper to pay for ivpn vs more vps PoP

---

## Post 5 by @Sorge — 2026-09-17T20:48:59Z

Sure, our cases are so different. VPN (kind of) is one of the very few things I self-host — just because of how much headache Tailscale solves.

Anyway, I’d appreciate any posts and blogs on Stalwart. The product looks cool and not spread enough

---

## Post 6 by @panda7057 — 2026-09-19T21:10:20Z

I just used this to determine which server to use when I was switching: [Self-Hosting Email - Privacy Guides](https://www.privacyguides.org/en/self-hosting/email-servers/) . Stalwart also has lower system requirements than mailcow, which is nice when you can’t selfhost mail at home.

---

## Post 7 by @owl1 — 2026-09-20T01:48:14Z

[here the current script i use myself](https://catinashell.de/snippets/stalwart-alias-script/), its based on the assumption that you already have a running stalwart server, a bit more detailed write up is also available: [as a whole blog post](https://catinashell.de/posts/stalwart-mail-alias-creation-script/) the above is only the code & comments, which should be sufficient ig

---

## Post 8 by @owl1 — 2026-09-20T02:01:24Z

stalwart has basically everything you need build in, which i really like, like the spam filtering (which is a bit too agressive imo by default, so I prefer setting the required Score for classification higher).

Also if you want an easy setup, I recommend you don’t use a reverse proxy for that server (what I did), since you might need to change a few things in the settings & it won’t work out of the box (as the 443 port gets blocked by the reverse proxy)

Also one thing to watch out for when hosting your own mail, is your domains trust score, like some providers (happened to me so far twice in the beginning), might reject your mails. So one thing you should absolutely do, is set the reverse dns of your servers ip to your mail domain)
