For example, you would like to change your root@localhost with admin@mydomain.com.
In /etc/postfix/main.cf, add :
canonical_maps = hash:/etc/postfix/canonical
In /etc/postfix/canonical, add :
root admin@mydomain.com
Then do :
postmap /etc/postfix/canonical
/etc/init.d/postfix restart