Re: Good email server
BTW, if you setup such a system nowadays, the odds the big email providers, Gmail, MS, etc, will actually accept emails from your servers seem to be pretty low.
This seems to be a common misconception. I have a few domains on non-big-boy providers. A couple of clubs/societies using email provided with web hosting on cPanel & Plesk, along with some other fully self-hosted bits. I talled up the members of one of those societies and it came out about 25% Google, 25% Microsoft, 25% BTInternet and 25% "other". Leave the anglosphere and you'll see lots of other ISP and local providers who Google and MS have to exchange mail with. It's very much not the duopoly that people would have you think.
It is true that if you stand up a mail server and start firing out mail, then you'll have a bad time. If you want mail delivered then you need:
* to check your provider actually allows SMTP traffic and hasn't got port 25 closed.
* PTR records
* SPF
* DKIM
* DMARC (weirdly the presence of a record is more important than whether it actually imposes a meaningful policy)
* Checking your IPs are not on the spam lists. Which they will be if you've just spun up a DO Droplet or cloud VM.
* Some sort of TLS - STARTTLS at a minimum. Ideally MTA-STS, but that calls for configuring a web server as well to serve the MTA-STS policy.
And you'll want to slow-loris your traffic until the big boys get to know you. Don't send a billion emails on day one. Whenever I've stood up a new mail domain, I always get a few people on gmail/outlook to send some emails to me. I also send some to them and have them reply to me (and mark the domain as a safe sender). This gets you off the ground and builds a little domain rep.
That all sounds rather onerous, but it's mostly setting DNS records, and overall those bits are all easier than getting your head around Postfix and Dovecot configs.
If you've got a web-facing server and you're capable of hardening it and managing the mail software, then the other bits are pretty easy. You just need to know to do them.