this post was submitted on 01 Feb 2026
51 points (94.7% liked)

Selfhosted

55494 readers
1023 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.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I need to run my own email server for some of my domains, because the providers that I usually use don't support them (they use Unicode characters, and not everyone supports that yet). I have a small VPS that I run a few Docker containers on, and I'm wanting to try and run an email server on it as well. What containers are good for a low-hassle email setup? I don't need a mailbox webui (ex: round cube), but it would be nice to have a UI for management. I do need multi-domain support, however.

top 28 comments
sorted by: hot top controversial new old
[–] ikidd@lemmy.world 13 points 14 hours ago* (last edited 14 hours ago) (2 children)

Mailcow-dockerized. I've used it for nearly a decade, it's been flawless. Very easy to set up with the admin webpage and has a webmail client, or use Roundcube with it.

Make sure you have your DKIM, SPF and Dmarc records in order and tested against MXtoolbox before you start.

[–] johnnixon@lemmy.world 4 points 3 hours ago (1 children)

What happens if your server is offline and an email comes in? I'm genuinely curious what it would do. Or must you VPS host your mail server for maximum uptime?

[–] lukecyca@lemmy.ca 3 points 3 hours ago

All MTAs have retries baked in, so running a self-hosted email server that receives mail is actually one of the most forgiving services in this respect. If your server is offline, the sending server will retry several times over 24-48 hours before it gives up. Even the big cloud email providers will do this.

That said, there are other aspects of running an email server that require some extra rigour, but they're more on the sending side (making sure emails you send to other people actually land in their inbox). Doable, but one of the more challenging things to self-host.

[–] CetaceanNeeded@lemmy.world 1 points 9 hours ago (1 children)

What's the resource usage like? I've looked into mailcow before but the recommended system specs are too expensive to make it worth it on a VPS.

[–] ikidd@lemmy.world 1 points 4 hours ago

Seems really low. I run it on a docker LXC with Nextcloud and bunch of other stuff, on 8 cores of an ancient dual Xeon Dell. I never seem to have to deal with latency on it.

[–] chluehr@feddit.org 9 points 16 hours ago (2 children)
[–] lukecyca@lemmy.ca 2 points 3 hours ago

Oh this is one to watch! Thanks for posting. I'm currently running docker-mailserver (which is quite mature and stable) but xmox looks very interesting.

[–] Shimitar@downonthestreet.eu 2 points 15 hours ago

This is so cool... Didn't know about it... And also european... Will try it for sure

[–] aksdb@lemmy.world 18 points 21 hours ago (1 children)

Stalwart

Written in rust, contains SMTP, IMAP, JMAP, Sieve, CalDAV, CardDAV, WebDAV. Has an admin web ui. Sane defaults, minimal foot guns. No zoo of containers needed.

[–] Shimitar@downonthestreet.eu 8 points 20 hours ago (1 children)

Beware it's very heavyweight. My dedicated oldish server with 8gb ram and spinning hdes couldn't even handle one single domani and a few users....

Was 6 months ago, tough.

[–] Shimitar@downonthestreet.eu 8 points 20 hours ago

I had to play with database types, because apparently out of the box setup works only on SSDs (??) And do a bunch of other stuff to improve performance.

End result was way worse than installing postfix+dovecot+dkim/dmark/etc stuff directly.

Quite unusable, but the hardware was limited

[–] JRaccoon@discuss.tchncs.de 11 points 21 hours ago (1 children)

I've had a good experience with mailcow. It's not the most lightweight tho, and spins up quite a few containers.

[–] sk@utsukta.org 5 points 21 hours ago

+1 for mailcow, i've been running my mailserver for over 2 years now, very efficient, no hassle setup.

[–] dm9pZCAq@lemmy.0x0c.link 6 points 19 hours ago (1 children)
[–] manwichmakesameal@lemmy.world 3 points 14 hours ago

This is what I use as well and it’s pretty painless after setup.

I'm still looking for a good solution that includes support for notes. I'm migrating off Exchange Online and using mailcow temporarily but the built in notes feature is sorely missed.

[–] osanna@thebrainbin.org 3 points 17 hours ago (1 children)

You're gonna have a bad time if you have to email MSFT/GOOG. MSFT was worse in my experience. their DumbScreen tech was horrible. Even the tech couldn't get my emails to not go to spam. Gave up in the end. The likes of MSFT and Google make it nigh on impossible for people to self host their own email.

[–] Shimitar@downonthestreet.eu 7 points 16 hours ago (1 children)

Been running my own mailserve for last 20 years and never had big issues.

Do dkim dmark stuff and DNS records properly and you will be fine. Also don't spam and beware of spam-related subnets, and you should not have issues.

[–] moonpiedumplings@programming.dev 4 points 9 hours ago* (last edited 9 hours ago) (3 children)

Have you considered that the reason why your mail server is trusted is because it's been around for 20 years?

Have you tried to set up mail from scratch on a new domain/ip recently?

[–] Shimitar@downonthestreet.eu 1 points 38 minutes ago

To be honest it's mostly FUD. Self host email is perfectly doable provided that:

  • you don't use your home IP
  • you do DNS records correctly
  • you do DKIM & DMARC correctly
  • you don't send spam

What happened to me over the years was having the subnet my ip was is being associated to spammers, and that was a problem. It took several iterations with blacklists and my provider to get it sorted. That's why I recommend using a reputable service provider that take care of spammers in a timely manner.

[–] Shimitar@downonthestreet.eu 1 points 40 minutes ago* (last edited 37 minutes ago)

Yes, I migrated IP (from one provided to another) last year, and I recently added a new domain as well.

The new domain on the new ip just works, and the old domain on the same new ip just keep working.

Both the old and new ip are not residential IPs, I rent a small dedicated server for this purpose on the major hoster of my country. I pay about 15€/month for that, but it's not only used for email, for all my services.

[–] lukecyca@lemmy.ca 1 points 2 hours ago (1 children)

I've been running my own email server for 15+ years. One year ago I needed to change VPS providers and thus get a totally different IP. I worried about this a bit, but actually had no issues whatsoever. Of course, I wasn't starting completely from scratch as I had the same domain, all my personal experience, and a battle-tested configuration for docker-mailserver. But yeah, the lack of IP reputation itself didn't seem to be an issue at all. Maybe I got lucky. Or maybe it's because I chose a relatively small Canadian VPS provider rather than one of the global cloud giants (I assume their IP address space gets pretty trashed with scammers).

What about domain reputation?

[–] tribut@infosec.pub 6 points 22 hours ago
[–] Decronym@lemmy.decronym.xyz 4 points 20 hours ago* (last edited 2 hours ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
IMAP Internet Message Access Protocol for email
LXC Linux Containers
SMTP Simple Mail Transfer Protocol
SSD Solid State Drive mass storage
VPS Virtual Private Server (opposed to shared hosting)

6 acronyms in this thread; the most compressed thread commented on today has 15 acronyms.

[Thread #52 for this comm, first seen 1st Feb 2026, 10:01] [FAQ] [Full list] [Contact] [Source code]

[–] rollerbang@lemmy.world 2 points 20 hours ago

I use mailu, find it quite lightweight as well.

[–] Im_old@lemmy.world 2 points 20 hours ago
[–] black_flag@lemmy.dbzer0.com 1 points 18 hours ago