65
submitted 3 days ago* (last edited 3 days ago) by crandall@lemmy.today to c/selfhosted@lemmy.world

Several of my self hosted services need to be able to send minor occasional emails for things like changing passwords or other notifications.

I've never been interested in the hassle of self-hosting my personal email, since I've heard about it being difficult. But for my little local services to have one admin@ or noreply@ to send from, with just a small handful of friends and family as users, maybe it's simpler than a full personal email replacement would be? I'm not too concerned, for example, if they have to check their spam folders. As long as the email still lands. And probably wouldn't need to worry about incoming emails.

What are you using for this type of thing? Hoping to have something not too complicated, and FOSS.

Edit: I also would like it to come from ____@mydomain.com

you are viewing a single comment's thread
view the rest of the comments
[-] emon@masto.top 4 points 3 days ago* (last edited 3 days ago)

@crandall selfhosting an email server is far from being a hassle. Nowadays it is really easy. You can setup everything in less an hour.
I use stalwart + a postfix relay on a cheap vps.

[-] axum@lemmy.blahaj.zone 4 points 3 days ago

Ah yes. Fuck with dns, reverse dns/ptr records, dmarc, dkim, spf, verify server is not on a blacklisted ip in spamhaus, stand up a server, then implement anti spam filters, and hope anything you send doesn't end up in someone else's spam filters, as well as monthly checks to make sure no spam lists have sudddenly added your domain/ip to said lists.

But hey easy right?

[-] Theoriginalthon@lemmy.world 3 points 2 days ago

Actually yes, if you take each piece one step at a time it's not that bad, as long as you are not expecting a fully functioning mail server on day 1 it's relatively easy.

[-] Dultas@lemmy.world 2 points 1 day ago

Yeah, this is self hosting after all. If you don't expect some challenges to work though then you're not gonna not have a good time.

[-] Theoriginalthon@lemmy.world 1 points 1 day ago

The crazy thing is I can do a mail server easily, but I always get stuck or annoyed with docker, everyone says docker is easy 🤷

[-] Dultas@lemmy.world 1 points 1 day ago

Yeah that's going to depend a lot on the images you're running. If it's a published one the likely it'll have a compose or at least a one liner to get it running. But yeah there can always be issues with hard coded IDs and if you want to give the host folders 777 or limit them. Are you running selinux and that's going to get in the way. Did they not mention capabilities that needed to be added?

And if you're building your own or extending that a whole other ball of wax.

And I typically run on k8s so that adds a whole other layer of complexity. But I've been using it for years and I'm actually more comfortable with it than just docker or podman.

[-] Theoriginalthon@lemmy.world 1 points 1 day ago

I tend to just say fuck it and run a full KVM image

[-] Dultas@lemmy.world 1 points 14 hours ago

Could always use LXCs they're lighter weight than a VM but they're IMHO more complicated to get started with than Docker / Podman as there isn't as big an ecosystem, unless you run a hypervisor that supports them. If you run a hypervisor then Proxmox and I think OpenStack are they only two I know that support them natively.

[-] awelo@tuiter.rocks 1 points 13 hours ago

@Dultas @selfhosted @Theoriginalthon
You could install incus on almost every Linux system out there

[-] Dultas@lemmy.world 1 points 8 hours ago

Maybe one day I'll get time to test Proxmox alternatives but I have a lot of playbooks I'd need to migrate if I went with something else.

It is kind of a hassle to get all your DNS set up so your mail doesn't go to spam. If you don't already know what you're doing it will probably take over an hour.

[-] Dultas@lemmy.world 1 points 1 day ago

Even if properly setup it could still go to spam until you get your reputation score up which with low volumes will take ages.

[-] trilobite@lemmy.ml 1 points 2 days ago

So i was thinking about this from a dns perspetive. If you have a dns forwarder can you not configure it to ensure that emails from the local smtp server never leave tour lan?

If you have local SMTP and IMAP you can send mail on your own systems, or if you're not using containers and you run everything on the same system you may even be able to skip SMTP and just deliver directly. But if you want to receive mail from outside your LAN you'll need a way to access your IMAP server.

this post was submitted on 17 Sep 2026
65 points (100.0% liked)

Selfhosted

62227 readers
1746 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS