this post was submitted on 12 Jun 2023
113 points (99.1% liked)

Selfhosted

40220 readers
895 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 1 year ago
MODERATORS
 

All this new excitement with Lemmy and federation has got me thinking that maybe I should learn to run my own instance. What always comes up though is how email is the orginal federated technology.

I am looking at proxmox and see that is has a built in email server, so now I am wondering if it is time to role my own.

I stopped using gmail a long time ago, and right now I use ProtonMail, but I am super frustrated with the dumb limitation of only having a single account for the app. I get why they do it, and I am willing to pay, but it is pricey and I don't know if that is my best option. I guess it is worth it since ProtonVPN is included. It looks like they are expanding their suite.

Is it worth it? Can I make it secure? Is it stupid to run it off a local computer on my home network?

(page 5) 31 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (7 children)

@DidacticDumbass
Yes I run my own mailserver. I have done it for the last 15 years or so.

I'm also running my own Friendica instance.

load more comments (7 replies)
[–] [email protected] 0 points 1 year ago

“No. No, man. Hell no. No, i imagine someone would get their ass kicker if they said something like that”

[–] [email protected] 0 points 1 year ago (1 children)

I use https://github.com/docker-mailserver/docker-mailserver with sendgrid.com as an SMTP relay (recieving emails is easy, sending them successfully is a pain)

[–] [email protected] 0 points 1 year ago (1 children)

Thank! I will look into this.

[–] [email protected] 0 points 1 year ago (1 children)

If you're serious about self-hosting mail... this is the best advice here by a long way. The hassles around SMPT sender validation and reputation management are a big deal. Receiving is not so bad if you know what you're doing.

load more comments (1 replies)
[–] [email protected] 0 points 1 year ago

Not likely worth it. Primary reason is that the large federated email services are skeptic also of email from services such as your proposed self hosting solution and may simply not deliver the mail you send. This is to mitigate against spammers setting up a bespoke servers.

There are a bunch of other things that could go wrong if you don’t set everything up perfectly, but even if you do, this would be a big problem.

Better off using a custom domain with a big provider. Fewer headaches. I like Fastmail, but many others are great too.

[–] [email protected] 0 points 1 year ago (3 children)

I just decommissioned the mail server I was running, because I didn't have the capacity with the rest of life to keep on top of it. Mailu was my choice of suite, and it was really great once I figured out how to get it behaving nicely behind my reverse proxy. For the most part it was low maintenance, but I would occasionally have issues with cert renewal and subsequently my email clients would stop connecting. I didn't have issues with non-delivery once I set up the various DNS records and did a lot of test emails that I could mark as not junk to various providers. I ended up switching to using icloud+, which includes email with a custom domain. Would I host my own email again? Possibly if I really need more than 6 addresses. But icloud+ costs less per month than the power consumption of the tiny server I was running mailu on over 3 days. Which is... Not insignificant in the current financial climate.

load more comments (3 replies)
[–] [email protected] -1 points 1 year ago* (last edited 1 year ago) (4 children)

Your own email server requires near 100% uptime or you risk not receiving critical emails. If a remote email server is trying to contact your email server and it can't it's only going to retry a few times and then give up. Hosting this yourself sounds great until you realize high uptime is not cheap and requires constant attention.

Setting it up securely can be difficult depending on your understanding of server infrastructure as well as protocols like DNS. You need to set up SPF, DKIM, DMARC, etc in order to prevent someone from faking an email from your server.

Of course, federated email does not use SPF/DKIM/DMARC because the whole point is that someone from another server could use your server to send an email (hence the federation). Open email servers were common 20 years ago but very rare today. That makes setup easier, but the main caveat is that most known non-federated email servers will reject email from servers that don't have SPF/DKIM/DMARC because they generally end up being havens for bots and spam since there is no verification or authenticity of the sender.

As someone who self hosts a lot of things, I would never self host my email. If i did I would be paying for two boxes in different parts of the world on different ISPs to provide that uptime. I would definitely set it up securely and not as a federated server otherwise it would be practically unusable for day to day emails.

load more comments (4 replies)
[–] [email protected] -4 points 1 year ago (2 children)
load more comments (2 replies)
load more comments
view more: ‹ prev next ›