My main domain is hexstream.co.uk which my server uses but my personal domain is 0wned.it. I changed the From header in my .muttrc to reflect this when my personal domain went live but it wasn't until recently that I noticed not all the headers were set correctly.
For example, the envelope-from was still using hexstream.co.uk. After some research the solution according to the mutt wiki was to set envolpe_from=yes in .muttrc. This didn't work 
The problem turned out to be Exim. By default, Exim's primary domain is used in the headers even if you tell it to use something else, which is probably a good thing of course.
The solution is to add your user to trusted_users in the Exim config. This then allows the headers to be modified.
|