I think you mean something like this: https://mailinabox.email/
It's almost the same setup (and inspired by) the OP's link but in a simple script that you can deploy to a cheap VPS. I've been running my own email server for years, but I've considered switching to this just for the reduced maintenance.