To modify/extend the configuration of various packages/applications in Mailcow (Postfix, Dovecot, etc), create the extra.cf file in the applications corresponding directory described below.
/opt/mailcow-dockerized/data/conf/<packagename>/extra.cf