Till soem time ago I also configured my mailserver, postfix and dovecot. Normally during upgrade you'll be asked what to do with changes and/or differences in conf files.
Now I removed postfix and dovecot and started using
Mailcow. Mailcow included postfix, dovecot, nginx, spamd, etc, in docker containers, and i very easy to upgrade by script. Maybe that is something for you too.