Go for it. More people should. I'm running postfix+dovecot combo on a VPS running Debian.
As others have already mentioned, you'll need a server with static public IP address and a way to change DNS PTR record for it, so in practice for majority of people that means a VPS from (preferably) a reputable vendor. Then you'll need to set up DNS records for your domain, MX and SPF are sufficient. DKIM and DMARC are nice to have, but not strictly speaking needed, at least for now.
When configuring your SMTP service make sure that no one other than intended users can send mail trough it. That's pretty much the most important thing if you want to stay out of blocklists. You'll still end up in a few and it needs some manual work to resolve, but the longer you run your own server the fewer false positives there will be.
Some will suggest mailcow or some other 'all in a box' service. They very likely work and may even work better than good'ol postfix, but I'd still recommend postfix (or exim, if you lean that way) because they really teach you the ropes and also they support maildir format for mailbox storage which makes it pretty trivial to move and backup stuff between installations as needed.
When you get the setup running make absolutely sure your backups are in order. Email is so important for a lot of things that losing your inbox may be a costly mistake. Also set up some sort of server monitoring so that you'll get alerts if something is not right. Email is pretty resilient, it can easily handle couple of hours downtime from a server, but the longer your downtime is the more you risk of lost emails (senders will get a notification that delivery failed, but it's up to them to react for it).
There's a handful of different parts to figure out, but nothing is really that difficult. Sure, you'll need to understand how email works under the hood and the whole stack is more complex than throwing a jellyfin docker image on your personal server but it's very much doable. Have fun!