This will allow you to match incoming mail by regex and redirect it to any other mail but will break the Catch-ALL rule in the Aliases.
(Assume that you are root
and repo was cloned into the /root/mailcow-dockerized
)
Override main.cf
nano /root/mailcow-dockerized/data/conf/postfix/extra.cf