So your setting up a mail relay or mail agent and your want to strip off the hostname or subdomain before the message gets to the internet: for example your relay gets it as firstname.lastname@example.org but you want it to look like email@example.com well this is really simple with postfix. Just load up your main.cf and add the following line
masquerade_domains = jgriffiths.org
This will strip off everything after jgriffiths.org. You can add additional domain by placing spaces between hosts.