In
main.cf:
header_checks = pcre:/etc/postfix/header_checks
(use regex if your postfix does not support pcre)
Then, add the following line to the header_checks file:
/^From: Username <user@sub\.(example-domain\.com)>/ REPLACE From: Username <user@{1}>
Restart postfix
--
Gabriele