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!

Creating email forward with new "To"

Discussion in 'E-mail Discussion' started by Thomas Ravkilde, Jan 15, 2016.

  1. Thomas Ravkilde

    Thomas Ravkilde Registered

    Joined:
    Jan 15, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    Website Owner
    Hi there

    I need to set up an email forwarder that doesn't just redirect the message but replaces the "To" field with the new recipient also. I need this because a script does something at the last stop based on the text in the "To" field. Is this possible?

    Thanks in advance!
    /Thomas
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Thomas Ravkilde

    Thomas Ravkilde Registered

    Joined:
    Jan 15, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    Website Owner
    Thanks for the links. No, no root access unfortunately. It's a rented web hotel. I guess I could perhaps redirect the mail to a perl script that does the replacement and then sends the email again, but I don't have experience with that so was hoping for an easy solution ;)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    It's not possible to force Exim into rewriting the message header without root access, but feel free to post to the Exim user's mailing list to see if anyone else has done this through a custom script:

    Exim-users Info Page

    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