this post was submitted on 12 Jun 2023
147 points (98.7% liked)

Selfhosted

40324 readers
277 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 2) 50 comments
sorted by: hot top controversial new old
[–] jonne@infosec.pub 3 points 1 year ago (2 children)

I used to, I don't any more. All the other comments are right, spam is a huge issue, and you can get blacklisted for no reason without recourse. I'm personally using migadu.com, which gives me some of the flexibility of running my own server without the hassle.

load more comments (2 replies)
[–] Dumledyr2005@feddit.dk 3 points 1 year ago (1 children)

I run a complete ISP style setup with multiple domains. I run it from a rented server at Hetzner, so i don't have problems with being black listed for sending from a consumer IP.

load more comments (1 replies)
[–] taur10@venera.social 3 points 1 year ago (1 children)

@DidacticDumbass I use hosted email from Polaris Email, $25/yr, and my domain from Porkbun at $5 for the first year, and access the mail through Thunderbird on phone and computer.

load more comments (1 replies)
[–] DyXen@lemmy.world 3 points 1 year ago (1 children)

Hello, I'm selfhosting mailserver with mailcow in docker container. Its easy to setup. I have static IPv4 and domain. Thats all.

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

It seems so simple. I started playing around with Docker, which seems so solid. But I was also turned off by Docker desktop, so it seems like it is becoming something that is slowly monetizing every feature that used to be free. It makes sense I guess, more users more costs. Actually, I think they are only monetizing docker hub, so... I don't know.

I have also seen podman brought up as the thing everyone is migrating to, so I think I will try it.

Proxmox -> VM -> Docker -> Mailserver seems to be the way to go. Not like email needs baremetal performance or whatever.

Thank you for sharing your setup!

[–] enbee@dataterm.digital 3 points 1 year ago (4 children)

a bit late to the party here, but I didnt see iRedmail mentioned. been using this to host my own email on a VPS for a little over a year now and its great. for me its worth, you can absolutely make it secure, and its not stupid to run it off a local computer. unfortunately most ISPs make it insanely difficult to host on your home network.

load more comments (4 replies)
[–] ricecake@sh.itjust.works 3 points 1 year ago (1 children)

I have run my own email server, and have worked in the commercial web hosting sector.

Honestly, I wouldn't run your own email except as a side project.

It's certainly possible and all the tools are available and easy enough to use, but email in general is a rough combo of super old, and a "big target".

The super old part means that a lot of things that we might consider standard for a modern federated system just aren't there for email. Security is profoundly lacking, and if something gets dropped because of an update, or your computer crashed, there's no guarantee that the system will find a way to get it to you, and the sender might not even know it didn't get to you.

Security wise, you basically have to set everything up correctly all at once, or some system somewhere between you and the recipient will just throw the messages away, and they may or may not tell you.
They do this because all the tools are old, crufty and there's a lot of good exploits that misconfiguration leaves open that automated tools can use to send spam.

Be sure to keep your computer fully patched, and install a malware scanner, even on Linux.

Ultimately, I wouldn't bother running one because the ratio of reward to work is just off for me. I would recommend setting something up for an afternoon though, just so you can see how the pieces work, and get to send yourself an email and know what steps it took.

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

Good point! I had not considered that the technolog itself is a bit of a vampire, and really only lives on due to its legacy as a cheap form of communication.

I guess the world could have a better more secure kind of email, but change is expensive and the biggest companies are cheap.

[–] chris@l.roofo.cc 3 points 1 year ago (1 children)

I did but I stopped. My server had everything set up (DKIM, DMARC, SPF, Spam filtering) but I gave up after some providers wanted me to jump through hoops to get my mail delivered. Also I never had enough outgoing mail to build some reputation.

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

That sucks. I don't even know what to think anymore. It is crazy that anyone with our email address essentially has access to when they use giant corporate services like google of microsoft, but every independent server is a bad actor until proven reputable.

I can't be asking everyone I want to email to put me on a whitelist. They'll just tell me to lose their address.

load more comments (2 replies)
[–] PlexSheep@feddit.de 3 points 1 year ago

I run my own Mailserver on a vps with mailcow dockerized. Was a real pain to set up, even through it mostly works right now.

DNS stuff isn't just some A or AAAA records, also txt stuff reverse DNS and much more. As the others said, that's completely impossible with a regular ISP.

I'm on some dumb blacklist because my IP is obviously in the IP range of my hosting provider, and some lists generally block all vps ranges.

Now imagine the following: your bank wants to contact you and your primary mail is selfhosted, for some reason they block your IP (yes outgoing blocks, those idiots) and you don't get some real important mail. Or your server is down for maintenance, certificate issues, so on.

The best solution is most probably letting a professional email holster take care of your domain, for email at least. Protonmail offers that but the problem I have with them is that they don't allow a regular login through thunderbird, restricted to their own software.

[–] greaterthanstupid@dmv.social 2 points 1 year ago (4 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.

load more comments (4 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)
load more comments
view more: ‹ prev next ›