Hi,
Here is how I did mine:
edit the /etc/pmg/templates/main.cf.in:
masquerade_domains = !group1.domain.com domain.com
pmgconfig sync --restart 1
The reason is that I want to transport the email@group1.domain.com to another internal mail server and the rest of the email@domain.com to...