Change X Headers to allow for the host name to be set based on how exim is being connected to
As an administrator, I would like the X headers (X-AntiAbuse, X-Get-Message-Sender-Via, X-Authenticated-Sender) to use a variable that allows for the host name to be set based on how exim is being connected to, so that when accounts have a dedicated IP the X-headers reflect the account host that was being used and don't 'leak' information about the underlying server.
On a server is setup to host multiple accounts / domains when the domains have a dedicated IP, the headers from the email are showing still showing the server name associated with the main host name because they are using the primary_hostname variable.
Headers look like this presently even when a dedicated IP / hostname for domain B was used to send the email:
X-AntiAbuse: Primary Hostname - base.domainA.com
X-Get-Message-Sender-Via: base.domainA.com: authenticated_id: susan@domainB.com
X-Authenticated-Sender: base.domainA.com: susan@domainB.com
Headers should depend on values like smtp_active_hostname or sender_host_authenticated that allow for the host name to be set based on how exim is being connected to. The current code seems to defeat/ignore the multi-tenant / dedicated IP functionality.
At present even it this feature were to be completed: https://features.cpanel.net/topic/an-option-to-use-actual-reverse-dns-resolution-as-helo-for-outbound-email
The headers in the email still would not be correct since the smtp_active_hostname is not being used to formulate these headers.
Internally you can refer to ticket 11731935 for more detail on the origin of this feature request.