I have setup numerous web/mail servers. Save yourself some grief and route your mail through the likes of sendgrid if you expect high volumes or Gmail for low volume. Postfix is my goto mail server.
> Save yourself some grief and route your mail through the likes of sendgrid if you expect high volumes or Gmail for low volume
What are the pain points?
.
The main pain points I think are stopping/managing your own mailserver being abused or blacklisted. I have experienced both.
You need to weigh up the pros and cons for what you're optimising for e.g. cost, robustness, security, setup time. Separating them is likely more secure and robust, but likely more costly and requires more setup.
Why not use a mail service instead of hosting yourself?
I run dockerized mailcow and nginx on the same machine with two different IPs. Works fantastically.
Divided; with two failover machines ready to replace either failed primary machine at a moment's notice.
Inbound or outbound mail?
both inbound and outbound (MTA), I ask regarding the reputation