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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rewrite Sender: header to match From: header

Discussion in 'E-mail Discussions' started by lorio, Oct 9, 2017.

  1. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    255
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I have an email account and many forwarder addresses.

    I still haven't found a way to prevent that EXIM sets a sender header (my email account address). I set the From Line to one of my forwarder addresses but the sender header is always set. The settings in EXIM WHM are set not helping. "Set SMTP Sender: headers" is off.

    I need the reverse behavior from this option "Rewrite From: header to match actual sender". Or at least a suppressing of the sender header.

    What is the best place to add rewrite rules to rewrite the sender header?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide an example of an entry in a message header as it appears on your system when you reproduce the behavior, and another example of how you'd like it to appear?

    Thank you.
     
  3. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    255
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Don't think it is a bug. I want to force EXIM to use the From Header (which I manually enter in my email client via the From field) and not add the Sender Header with the emailaddress of the sending account.
    That would prevent Outlook from showing both emailadresses with "on behalf of" .

    Adding or changing settings via GUI WHM seems not enough. Suppressing the sender header seems to be not possible without editing files directly.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Here's a list of options in "WHM >> Exim Configuration Manager >> Basic Editor" that relate to the sender field in the header:

    EXPERIMENTAL: Rewrite From: header to match actual sender
    Set SMTP Sender: headers
    Enable Sender Rewriting Scheme (SRS) Support
    Query Apache server status to determine the sender of email sent from processes running as nobody
    Trust X-PHP-Script headers to determine the sender of email sent from processes running as nobody

    Have you tried setting "EXPERIMENTAL: Rewrite From: header to match actual sender" to "disable"?

    Thank you.
     
  5. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    255
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Thanks for the list. I'm aware of the available options.

    Since there is no script involved (I send the Emails via Outlook and just enter an emailaddress in the from field), I don't see these settings as relevant.

    Yes, this setting is already set to disable.

    To sum it up: How can I suppress the "Sender" header and force EXIM to just write a "From" header.
    That would solve the issue.

    Perhaps I have overlooked a discussion.
    Thanks for your time.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't believe that's supported with any options offered in the basic editor. Here's some information from Exim's documentation that you may find helpful:

    Additionally, review the sections on "untrusted_set_sender" at:

    14. Main configuration

    Thank you.
     
  7. lorio

    lorio Well-Known Member

    Joined:
    Feb 25, 2004
    Messages:
    255
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I don't expect this kind of modification in the WHM GUI EXIM.
    Thanks for extracting relevant parts of the EXIM documentation. But that's not your job ;-) Digging EXIM documentation for the lazy ones. My opening question was not good enough. Perhaps that way: How do modify the EXIM config on parts, that are not open via GUI EXIM. Directly editing the file is the road to hell. Any paths/filename to place custom stuff, so that cpanel 66 get along with it?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Is there a particular value you are unable to add or edit using the "Advanced Editor" tab in "WHM >> Exim Configuration Manager"?

    Thank you.
     
Loading...

Share This Page