I believe that one could selfhost an email server from a raspberry pi, from home using Cloudflare tunnel, using a custom domain. Would this be a bad idea? Why?

@epical Could, and lots of people do. The only due diligence you'll have be wary of is configuring SPF/DKIM/DNSSEC and also run your IP (and ASN; oft overlooked) through services like Spamhaus or other blacklist checkers to make sure the IP range is clean.

Even so, expect mails to hit the Spam folder of your recipient now and then.

Thankfully, with tools like 'imapsync' you can migrate your inbox between hosted or self-hosted servers very effortlessly if need be.

@oedmarap This setup in particular must be kind of new, I can't find one article or video about it.
Well, the CF announcement was 5 days ago (
This might change the selfhost from home field a bit.
IP range should be provided by CF, not sure if this is good or bad.
Thanks for the tips.

@epical if you want to hide your IP your best option is setting it up through TOR. it's secure, encrypted and anonymous. And ddos attacks are ineffective under the tor network.

Anyway, you can selfhost it without using cloudflare or tor anyway. It'll work. You just need to setup a reverse proxy, like nginx. That's it.

The other option is using a cheap VPS which isn't ideal in terms of privacy, but still far better than using Cloudflare.

@werwolf I want to hide my IP but not like that and that much, just don't want to expose my home IP and have to open ports.

Nginx Proxy Manager would already be part of the configuration with CF but if not I ideally would want something else to put in front of it.

What makes CF that bad?


Take a look if you want. But basically they act like a MITM, decrypting your connection, so they can watch everything that you do. It's the same than using the old and insecure http but who can see your traffic is Cloudflare.

@werwolf Thanks for the info.
Usually I avoid everything I don't want to support but with email the scenery is just retarded and there's no good options.

You can set it up on Tutanota and let them do the heavy lifting.

@Tay0 Been using that for the last 2 years. Getting tried of not being able to use other clients. And find it to be badly priced. You want more than basic service, pay 12€, oh you want another small improvement, pay another 12€, you need 6 alias instead of 5, another 12€. WTF

Migadu could be an option, better priced and all, then I found out that the almost unlimited plan could only send a max of 20 emails a day. I don't even reach that, I just think that's stupid.

I really don't like the cloudflare part of it and I don't understand what it is for?

Self-hosting a mail server is nice, you should do it! I must admit I'm hosting mine on a cheap VPS these days and not at home, but still. ;)

@smpl Me neither, but who can you trust anyway.
As I understand its required to protect your real IP from being exposed to the world, also ddos protection and all other features that are included.

Home or not, that's awesome. :)

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.