Sending mail from nobody

antec1981

Registered
Aug 20, 2003
2
0
151
When a php script im using send mails to an email in outlook some people see


"Nobody [[email protected]]; on behalf of; XXXXXX Inc [[email protected]]"


when they open the mail. I would like to suppress this but im not sure how. I think it is due to phpmailer setting the "Sender" argument into the message headers.

Is there a way for Exim to say hey if sender contains Nobody to pull in the X-Source-Dir: line up to ":" and do a rewrite of that address if From also includes billing. Or without phpsuexec enabled another way to have Exim detect the sender user and set it to their domain another way. If php can do this that would be ok also.
aka

Nobody <[email protected]> would become Billing <billing@$sourcedirhost>
 

freedog96150

Well-Known Member
Mar 25, 2005
68
0
156
Nevada, USA
Goto WHM -> Service Configuration -> Exim configuration Editor -> Options and uncheck the option that says "Always set the Sender: header when the sender is changed from the actual sender. (Unchecking this will stop "On behalf of" data in Microsoft(R) Outlook, but may limit your ability to track abuse of the mail system.)"

That should do it.