Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Mediatemple dv (Plesk) server with two domains, each has static IP.

I had domain1 as main domain and domain2 as secondary.

When A PHP script from domain2 sends email the headers show the IP address of domain1 as the origin. Received: from ( [70.ipof domain1]).

I want only domain2 to be mentioned so I did the following:

Changed server name to made the primary domain (about 30 hours ago) made fixed IP address of the default address for the server.

Still when the script sends emails I see the same info as above in the header.

What do I need to do to make the email origin

share|improve this question

reset hostname, reset php and mail server. Actually you can reset everything related to web services, if that doesn't help then grep /etc for domain1 and wipe it, then reset again.

share|improve this answer
up vote 0 down vote accepted

Needed to define reverse DNS

share|improve this answer

Check this out:

Also verify the sendmail_path in the php.ini, and then check the sendmail executable's config file too.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.