We're experiencing difficulty. Our engineers are on it. Please check status.mailgun.com for real-time updates.

Why would an email display "On behalf of"?

Article Preview


    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:

    info=example.com@mail.example.com <info=example.com@mail.example.com>; On behalf of; example.com <info@example.com>

    In this example, the Sender and From fields in the email headers will display as:

    Sender: info=example.com@mail.example.com
    From: info@example.com


    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 info@mail.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 info@example.com.


    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.


    Need Support?

    Our Support Team here at Sinch Mailgun is happy to help! Reach out to us in the Support section of your Mailgun Control Panel, and we'll be with you shortly!