How do you intend to connect your mailserver to "the Internet"? If you only receive via MX to DynDNS but send (authenticated) through the relay host of some service provider, it may work. Sending from a dynamic IP address is a sure recipe for disaster. Seriously.
What are you hoping to gain? I have all my mailboxes at my provider, but run a dedicated Postfix instance on my OPNsense (could be a jail on TrueNAS, absolutely no problem) for local sending. So my devices like NAS, UPS, ... can drop their outbound mails locally and Postfix sends them authenticated via my provider's mailserver. That does make sense, IMHO - because a stupid device like an UPS will simply drop any notification if the mailserver cannot be reached. So better have it local.
But communication with the public Internet? Beware!
