I suggest posting a question to the upstream dovecot mailing list too: https://www.dovecot.org/mailing-lists
I personally haven’t used doveadm for this task. Also, you’ll want to upgrade your MacPorts dovecot to the latest version. That version has a vulnerability with a reasonably serious CVE score.
smime.p7s
Description: S/MIME cryptographic signature