Exim via Mailgun causing 'on behalf of' to appear

ServerMan1984

Member
Oct 6, 2018
5
0
1
London
cPanel Access Level
Root Administrator
We are moving our cpanel servers to Google Cloud. We are aware of GCP blocking port 25 so we decided to configure Exim to route all outgoing mail to Mailgun.

Emails are going through, however, they appear like this in Outlook:

[email protected]
on behalf of Our User <[email protected]>

In Gmail it appears like this:

Our User [email protected] via mg.our-company.com

I am guessing it is due to Sender: key in the header which is set to:
Sender: [email protected]

Is there any way to alter the Sender: key in the header to be the same as From:?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,269
313
Houston

ServerMan1984

Member
Oct 6, 2018
5
0
1
London
cPanel Access Level
Root Administrator
Thanks,

Although, I would still like to know the ideal WHM setup on Google Cloud Platform for multiple domains. There are guides out there that allude to this issue but I haven't come across a detailed and workable solution to this.

If we can get a solution that would be fantastic as we would rather keep all our VMs in one place.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,269
313
Houston

ServerMan1984

Member
Oct 6, 2018
5
0
1
London
cPanel Access Level
Root Administrator
I guess by ideal I mean what WHM's main purpose is, that is to manage multiple vhosts/domains/sites. The above link covers most aspects in that regard but doesn't deal with the key issue of emails in depth.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,269
313
Houston
There shouldn't be much in terms of email in respect to setting up a server with them though, maybe I'm not following? Once the server is set up/configured you should not need a 3rd party mail provider.
 

ServerMan1984

Member
Oct 6, 2018
5
0
1
London
cPanel Access Level
Root Administrator
Google blocks all outgoing traffic from port 25, so it is virtually impossible to setup a mail server on Google Cloud, and that's why the blog mentioned above suggests 3rd party mail services.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,269
313
Houston