this post was submitted on 12 Jun 2023
158 points (98.8% liked)

Selfhosted

40329 readers
503 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 3) 50 comments
sorted by: hot top controversial new old
[–] NochMehrG@feddit.de 2 points 1 year ago (1 children)

I don't. But I do have my domain and use a hosted solution, so I'm kind of independent and own my data.

[–] DidacticDumbass@lemmy.one 2 points 1 year ago

That sounds like the right middle ground for me. I know for sure my home network is not as secure as it could be, especially since I live with people who need everything online to work without obstacles. I can't even install PiHole.

But, hosting is probably more affordable in a year than the amount I might spend on coffee in a week. And I typically make my own coffee.

[–] Chobbes@lemmy.world 2 points 1 year ago (1 children)

Gotta say, I’m really happy to see so many people here actually talking about doing it! Usually I see a lot of fear-mongering about self hosting email. You can do it, though, and I think we should encourage more people to do so! It can be a little tricky to set up at first because there’s a lot of different things you need to configure and make talk to each other — I haven’t used them but there’s things like mail-in-a-box that are supposed to make this easier. But the most important thing is to make sure you set up SPF, DMARC, and DKIM DNS records (and set up DKIM signing for your outgoing messages). I’d recommend setting the ruf and rua tags in the DMARC record so you get mailed reports from other mail servers (can help you debug if your mail is getting rejected). I’d also use these tools:

https://www.mail-tester.com/ https://www.learndmarc.com/

Happy mailing :)

[–] DidacticDumbass@lemmy.one 2 points 1 year ago (2 children)

Thank you for the encouragement! I am inching my way towards building a server, and I am thankful for all the tips and suggestions I got.

I am starting to think that if email is the hardest to self-host, then perhaps more people should try it. It is worthy to take regain indepedence and autonomy of technology, even if it seen as a lost cause.

Yeah, I hope to get something running soon, just so I can say I did it.

load more comments (2 replies)
[–] emhl@feddit.de 2 points 1 year ago (3 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)

load more comments (3 replies)

Very interesting. Thanks for the follow up.

[–] bunkbed 2 points 1 year ago (1 children)

I used to. I had a docker-mailserver. It was good. But I moved house and changed ISP. I couldn't set up the reverse DNS on my address, and Gmail was blocking me, so I had to switch to a hosted mail server (namecheap private email).

It's a shame, syncing is noticably slower, and I only get one mailbox, but oh well. Just keep on using GPG.

load more comments (1 replies)
[–] greaterthanstupid@dmv.social 2 points 1 year ago (2 children)

there are many replies saying similar things, but don't be discouraged from try it out. i host my own with mailinabox on a vm from a cloud provider. no spam issues. the only wildcard was spending a few months getting my ip address off google's spam filters. it is so worth it, i own my own email/calendar/contacts/notes/todo list/ AND website solution. all with mailinabox. completely disconnected from google etc.

[–] cvr@sh.itjust.works 2 points 1 year ago (2 children)

Did you ever manage to get off hotmail/outlook spam filters? I ran my own server for years and had no issues with gmail, but was never able to reliably send to hotmail. That was the nail in the coffin in the end as so many businesses I communicate with were on outlook and my mail would always goto spam causing endless issues.

load more comments (2 replies)
[–] DidacticDumbass@lemmy.one 2 points 1 year ago

The more I learn about FOSS the more I understand it is just not about using open auditable software, but about having complete ownership of the technology a person uses. I need to learn these things.

[–] ronondex@mlem.a-smol-cat.fr 2 points 1 year ago (3 children)

Hosting a mail server is really easy. Making sure Hotmail, Gmail and others accept your emails is a nightmare.

I don't host my own email, I just delegate my email management to a small provider.

load more comments (3 replies)
[–] eursec@lemmy.anymore.nl 2 points 1 year ago (1 children)

I host my own mailserver, and to be honest it's pretty painless. Usually I just let it run without giving it any thought. It's on rare occasions that I need to put a bit of work into improving the inbound spam scanning.

Selfhosting does need quite some knowledge of the software stack and several additional protocols to set them up correctly to get your outgoing email delivered. Also, like already mentioned in another comment, you absolutely need an IP address from a non-blacklisted subnet (I think most VPS providers will be okay, residential definitely not).

My software stack: Arch Linux (soon NixOS), Postfix, Dovecot, rspamd, opendkim, opendmarc.

Additional techniques configured: SPF, DKIM, DMARC, DNSSEC.

As you can see it's quite a lot, and I've been doing for more than 20 years now, so my opinion can be a bit skewed. I'd say go for it if selfhosting is a hobby.

[–] DidacticDumbass@lemmy.one 2 points 1 year ago

I have been learning about it, and what really has motivated was seeing my current provider ProtonMail have an anniversary sale, and just having the least affordable pricing just to get a couple features I need. I have never been a fan of cloud storage, I have never needed an online service to handle my calendars or whatever else.

I need to do do this out of principle.

You are right, that is a lot of software in use. However, I have been given a lot of recommendations. I got my own domain name. I am almost ready. I just need to setup a few more things. I am taking a long time to do this, I got distracted with other self-hosted applications, but I do want to try running a mailserver.

[–] boilingpenguin@lemmy.world 2 points 1 year ago (1 children)

I've thought about rolling my own email service, but I'm hesitant given the risk of it inadvertently nuking the rest of my network. There's a lot of work needed to keep the thing secure, and even if you do everything right there's a good chance you get SMTP traffic blocked because other services are worried about unknown accidentally hosting spammer networks.

Plus given my prior track record, there is a $1000% chance I screw up the DNS entries for any mail servers I set up.

load more comments (1 replies)
[–] alvaro@social.graves.cl 2 points 1 year ago (3 children)

@DidacticDumbass@lemmy.one I do, it is a pain and I understand why it is not worth for some people.

load more comments (3 replies)
[–] ShittyKopper@lemmy.blahaj.zone 2 points 1 year ago (1 children)

I feel like I'll eventually have to... mailbox.org upped their prices from 1 EUR/mo to... whatever they are right now, and on top of that I'll still need a VPN to access heinous sites such as pastebin (welcome to Turkey), which is another 5 EUR/mo.

For that money I could get an alright enough VPS from Hetzner and spend some time getting everything configured properly, and have bonus flexibility in terms of hosting anything else I might want to host.

The problem with this ofc is that no "turnkey" mail bundle seems to give a shit about resource usage as far as I'm aware, and I'm worried they'll end up hogging all the server resources for themselves.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›