The problem there is most of the hard work the OP mentions has nothing to do with the mail server itself, but instead it's around DNS, networking, certificates, and monitoring 3rd party services.
Some of this may be able to be automated, but that's the hard part; not installing and configuring a few software packages.