Rewrite From: header to match actual sender

gotroot

Well-Known Member
Mar 27, 2007
48
0
156
Problem with having this option on is that it tries to rewrite your mailservers hostname EG root.mydomain.com when delivering messages from root. Shouldnt it only be trying to rewrite messages headers that a considered email addresses? eg [email protected]*?

EG

2019-01-20 00:03:01 1gl84L-003r2L-RR From: header (rewritten was: [[email protected]], actual sender is not the same system user) original=[[email protected]] actual_sender=[[email protected]]
2019-01-20 00:03:02 1gl84L-003r2L-RR => efast <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0 <[email protected]> APCCNzUrRFxbBQ4A1ioWhA Saved"
2019-01-20 00:03:02 1gl84L-003r2L-RR Completed
 
Last edited:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
9,010
762
263
Houston
cPanel Access Level
DataCenter Provider
Hello @gotroot

Essentially [email protected] is, in fact, a valid email the default cPanel user for the account is considered a valid email address. When sending mail via a script this is the expected behavior as it's essentially being sent as the PHP user which is the [email protected]ostname.tld address.


Thanks!