I've saw this problem in 5.0.4 too and ignored it assuming that it was user error, but I've seen it again and reproduced it several times...
Problem: When I send mail using an identity that matches an alias setup for an account, Zimbra sets the from and replyto headers to the main address of that account.
I use a catch-all sub-domain so I can give companies and groups I deal with different addresses to contact me on - so I can easily kill an address if a company/group/individual passes my address on intentionally or through lack of due diligence. I have the catch-all sub-domain pointing to my main account except addresses that now attract spam which are aliases of another account. For example:
- firstname.lastname@example.org to (by being an alias of) email@example.com
- firstname.lastname@example.org to (by being an alias of) email@example.com
- the rest *@sub.domain.com to (by wildcard sub-domain setting) firstname.lastname@example.org
If I setup an identity in the account for email@example.com with the from and reply-to settings set to firstname.lastname@example.org the from and reply-to headers of the outgoing mail are given as email@example.com and if I do the same for addr3@ (i.e. any of those not aliased elsewhere so go to firstname.lastname@example.org) the headers of the outgoing mail are set as email@example.com.
As the point of using a sub-domain and identities like this is hiding the main account a bit, this defeats the purpose. Is this a bug or behaviour-as-designed for some reason? If the latter, is there any way of changing the behaviour? The accounts in question are all set to "allow sending email from any address".
Edit: additional info:
* If I specifically set firstname.lastname@example.org as an alias of email@example.com, outgoing mail from and identity with the address firstname.lastname@example.org is still always email@example.com despite what is set in the identity's settings.
* If I set an identity to have an address that is not known to my local Zimbra install at all (such as firstname.lastname@example.org), the behaviour is as desired: the outgoing mail carries headers stating email@example.com and not firstname.lastname@example.org.
Edit: additional additional info:
* I've confirmed that if I remove the catchall and/or aliases the behaviour is as expected (i.e. the address specified for the identity is given out), and re-adding the catch-all setting recreates the problem behaviour (the address given out is the address the catchall points to, not the address in the identity)