Certain email clients will display a notation referred to as "On Behalf Of" in specific circumstances. While perhaps not the best-looking arrangement, not to worry - it is otherwise harmless. The notation is ultimately based on how the email client reads the Sender field in the email headers, which we'll see below.
A Quick Example
"On Behalf Of" notation will display in a format such as:
firstname.lastname@example.org <email@example.com>; On behalf of; example.com <firstname.lastname@example.org>
In this example, the Sender and From fields in the email headers will display as:
What "On Behalf Of" Signifies
Ultimately, the "On Behalf Of" notation highlights the mismatch between the domain used in the Sender field (mail.example.com) and the domain used in the From field (example.com). In the above example, the envelope is sent through the domain mail.example.com, but the message is listed as being sent from the domain example.com. This nuance is important as the Sender field is an envelope field and the From is an email header field - each representing different aspects of the message.
Two Choices, One Preferred Resolution
It is important to understand that there is no way for Mailgun to prevent an email client from displaying the "On Behalf Of" notation as long as the domains contained in the Sender and From fields don't match. However, ensuring the exact same domain is used in both fields will eliminate the "On Behalf Of" notation. In our example above, adjusting the From address to email@example.com will remove the "On Behalf Of" notation. An alternative - though less recommended - solution is to add the domain example.com to the account, verify example.com, and maintain the From address of the messages as firstname.lastname@example.org.
A Path Less Traveled
A less common scenario that causes “On Behalf Of” notation is when your emails are DKIM-signed with a domain that differs from the domains contained in both the From and Sender fields; you'd usually see a mismatch between From and Sender versus the domain listed in the Mail-From header in such cases. As mentioned, this is much less common, and it's best to reach out to our support team so that we can analyze your domain’s DKIM authority as well as your email headers.
Sinch Mailgun has answers! If you have any concerns or questions, please send us a Support ticket using the Support page within your Mailgun Control Panel. Our Support Team will be happy to assist!