Skip to main content

Rewrite From: header to match actual sender for 1 domain?

Comments

4 comments

  • Benjamin D.
    Anybody? I'm looking maybe for a generic exim config rewrite rule to put after the "begin rewrite" line. REWRITE RULE CONDITIONS I NEED: 1) PHP scripts cannot forge FROM headers as an account's domain the script does not originate from. This is already achieved by cPanel's "Rewrite From Header" tweak. 2) External SMTP users can only forge FROM headers as the account's domain they authenticated with, meaning they could send FROM any-user@their-domain-only.com. This is against cPanel's "Rewrite From Header" tweak. So I need a combination/adaptation of cPanel's tweak to allow for the 2 conditions at once. ANY HELP IS APPRECIATED and could be beneficial to potentially thousands of other web server owners who are looking for the same solution.
    0
  • Benjamin D.
    Ended up writing my own Perl script and annexing it to WHM's "Rewrite From: header" tweak. Problem solved.
    0
  • cPanelMichael
    Ended up writing my own Perl script and annexing it to WHM's "Rewrite From: header" tweak. Problem solved.

    Hello, I'm glad to see you were able to find a suitable solution. Feel free to share the Perl script here if you'd like, as it may help other users facing the same situation. Thanks!
    0
  • Benjamin D.
    I'll think about it. I'm not very impressed with the license fees I'm continually paying and yet having to actually learn how to code Perl and spend 2 hours to develop what looks like, to me, quite mandatory functionality lacking in WHM.
    0

Please sign in to leave a comment.