I appreciate the author taking the time to detail all of this out, but I feel like the immense length of this article is a counterpoint to their previous article about how hosting your own email is “not hard”. I could easily see someone spending days trying to stumble through the process documented here, to figure out the right things to configure, etc. This article should help them with that though, but it did take something like this article to make it ‘not hard’…
I think something like NixOS should be a great way for people to make it easy. I need to try out this project:
I’ve been using it for a year or more, works great and is a total pleasure to set up in NixOS.
The one little downside is that adding a new mail user requires a NixOS system switch (like any NixOS configuration change) and that takes a few seconds—which is a nonissue for most small mail servers.
This excellent article goes into a lot of detail and explains the reason and its context for each setting, besides describing stuff only tangentially related, from configuring OpenBSDs httpd to acquire TLS certificates to screenshots of mail clients.
A few years ago, I set up a personal SMTP server with Postfix on Linux. I had the chance to own my physical server hosted in a data center with a super clean IP address. Only with rDNS and SPF (I was too lazy to set up DKIM), I was surprised to see how good the deliverability was. I could reach GMail and others without problem.
I think you need DKIM and DMARC for Gmail these days? But yes, if you disregard Microsofts free mail services and don’t send too much bulk mail, it isn’t too hard.
I have neither and I deliver to Gmail without problems.