this post was submitted on 07 Feb 2025
14 points (93.8% liked)

Selfhosted

41875 readers
891 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 2 years ago
MODERATORS
 

does anyone have a good suggestion for running a mail server on my nixos box?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 45 minutes ago
[–] [email protected] 7 points 2 hours ago* (last edited 2 hours ago)

Self hosting email is a difficult business.

The main issue is that you must have a static IP and that IP needs to have a good mail reputation or you will be blacklisted in a few days.

Said so, Today there are pretty good selfhostable email stacks like stalwart

My solution, which has been running for over two decades, is bare metal with postfix, dovecot, opendkim, opendmarl, spamassassin and a few more poeces which are all absolutely mandatory. Plus a nice webmail and a few more optional pieces.

But on gentoo, not on nix

[–] [email protected] 2 points 2 hours ago

I run Postfix, Dovecot and rspamd on my server. The configuration is here: https://git.dblsaiko.net/systems/tree/configurations/polaris

There’s also the Simple NixOS Mailserver project which is an abstraction on top of these and has a few more things. I’ve never used it myself though.

Of course, you also have to set up all the standard email setup like DKIM, DMARC, SPF and so on here.