email header from sendmail

I have just bought a dedicated server to home my own sites on. It has ensim on it. In the past I had several VPS and did not have this problem.

Since there is only one copy of sendmail running from all domains. when I use PHP to send email sendmail attaches a FROM header like it is coming from apache@localhost and has the domain of host.mydomain.com which is that of the ensim appliance and not the domain that is sending it.

So when email is bounced back it comes to the root of host.mydomain.com and not back to the domain sending it.

Is there a way to configure sendmail either not to add that header or to add a header that is specific to the domain sending it. i.e. a config file for each domain in the host list?

Dennis

 

 

 

 

Top