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!

Email Forwarding Question

Discussion in 'E-mail Discussion' started by webdave, May 10, 2004.

  1. webdave

    webdave Active Member

    Jul 4, 2002
    Likes Received:
    Trophy Points:
    Is it possible to modify the subject of a message that is forwarded? For example I have an email on my domain that is forwarded to my cell phone. I would like to modify the subject so it say something like "FORWARD FROM XX".
  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    This would be easy to do in procmail, but Exim doesn't like procmail much. You could probably do it in Exim itself, but that would require some (not) light reading over at

    Possibly the easiest solution, depending on your skills, would be to write a perl or shell script that you forward your email to using a pipe |/path/to/script that takes the email passed to it and rewrites the header that way.

    Thinking about it, you might be able to use procmail, but use that latter method to utilise it.

    Sorry that I don't have any examples, but that would require more effort in Google on my part ;)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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