Proxmox Mail Gateway is built on Postfix and uses the same policy service. PMG writes main.cf from a template, so the change goes in a custom template:
mkdir -p /etc/pmg/templates
cp /var/lib/pmg/templates/main.cf.in /etc/pmg/templates/
In /etc/pmg/templates/main.cf.in, add check_policy_service { inet:127.0.0.1:10040, timeout=10s, default_action=DUNNO } to smtpd_recipient_restrictions after reject_unauth_destination, then apply it:
pmgconfig sync --restart 1
See Postfix for what the policy service does and how to turn it on.