Install standard vnet jail. Execute pkg install dovecot postfix
inside the jail. Proceed from there.
Vnet jails are complete standard FreeBSD runtime environments. No need for a special "dovecot/postfix jail".
I run Nextcloud, Gitea, Guacamole, MineOS, Monit, Observium, ... each in their own jail. Just pkg install
...
Got to get your networking right, of course. So if you struggle with that, just come back.