this post was submitted on 07 Feb 2025
31 points (97.0% liked)

Selfhosted

61512 readers
1167 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
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] Shimitar@downonthestreet.eu 12 points 2 years ago* (last edited 2 years ago) (1 children)

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

[–] ellyxir@kbin.melroy.org 1 points 2 years ago (1 children)

yeah, i checked some of the blacklists and my IP (static) seems to be ok. i'll check out the other services/app/executablees you mentioned, thanks!

[–] Shimitar@downonthestreet.eu 1 points 2 years ago

The risk is that the IP will get banned AFTER you start sending out mail from it because it has zero reputation... IT happened to me too and it took months, if not years, to get it definitely cleared. And if you neighbour with a similar IP get infected and start spamming, it's all over again. This is the main issue with residential IPs, it's a very real issue.

To get around it, rent a VPS with a non residential IP and front the mail server there, with tunnels (wireguard+nft) back to your home mail server, so at least the public facing IP is good or has less risks or being blacklisted.