I am self-hosting my email. It's a pain in the ass, but software like mox[1] help on keeping things easier.
The most tedious part is to setup correctly SPF, DKIM and DMARC and ensure that your IP will be whitelisted.
replies(2):
Not an endorsement as I haven’t actually tried it myself.
[0]: https://stalw.art/