That’s why the Standard Install recommends third-party mail providers, rather than trying to use an existing or self-hosted solution.
Mail is hard for a multitude of reasons, just because something is working today doesn’t mean it’s correctly configured, only that the misconfiguration doesn’t impact the original purpose.