Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Rewrite forwarded email headers in EXIM to avoid strict DMARC/SPF block ?

Discussion in 'E-mail Discussion' started by Mike S, Nov 8, 2018.

  1. Mike S

    Mike S Registered

    Feb 28, 2018
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    We have employees that are setting up email forwarding addresses that don't always work. The reason is, for example, a financial institution will use strict DMARC rules that will cause the emails to be rejected at the final destination gmail account. So we have concluded what we need to do is rewrite the header of the email as it passes through our intermediate EXIM mail server. The question is, how do we go about doing this?

    So currently. a forwarded email's from headers would typically look like this if it were to be received:
    From: "FirstName LastName" [email protected]
    Reply-To: [email protected]

    In our example, on our EXIM server our user made a forwarding rule to forward [email protected] to [email protected]

    And we are looking for a way to set something up on EXIM to automatically change the from header header to the following if an email is being forwarded:
    From: "FirstName sLastName - reception at removed.tld" [email protected]
    Reply-To: [email protected]

    *If there was no 'Reply-To' specified in the original email, set the 'Reply-To' to the original 'From' address.

    How would we do this in our EXIM config?

    Thank you in advance.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello Mike,

    Have you checked to see if enabling Enable Sender Rewriting Scheme (SRS) Support under the Mail tab in WHM >> Exim Configuration Manager >> Basic Editor addresses this issue? Per it's description:

    I've seen reports from others that enabling this option allows emails forwarded to Gmail to deliver successfully.

    Thank you.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice