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

    Joined:
    Feb 28, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Toronto
    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" reception@removed.tld
    Reply-To: johnsmith@removed.tld

    In our example, on our EXIM server our user made a forwarding rule to forward annaclark@ourcompany.com to annaclark@gmail.com

    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" annaclark@ourcompany.tld
    Reply-To: johnsmith@removed.tld

    *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.
    Sincerely,
    Mike
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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