i have a server running WHM/cPanel most up to date. Mail server is Exim.
I have about 10 accounts on the server that use php scripts to send mail. Password recover, order updates etc.
Many of the emails sent from the scripts are undeliverable because the from address and the reverse looked up domain are different. Is there some way to force localhost to resolve to the cPanel account's domain in the case of the mail scripts? I have PTR records for domains but localhost resolves to the main IP of the machine which is a different domain/host name with no PTR record.
Hopefully i am making this clear. PHP attempts to send mail from firstname.lastname@example.org using localhost. Localhost actual resolves to a different ip than domain1.com so the reverse lookup/PTR shows domain2.com.