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 dedicated server that works fine. Recently I added a new domain with a new dedicated IP address. The emails from the webserver gets sent out from the primary IP address which is different from the IP address of the domain. This causes the emails to end up in the Junk email folders. Is there anything I can do changing the SMTP server to the new IP address or configuring send mail?

I need this for my php server on centos.

share|improve this question
up vote 2 down vote accepted

few things you can do to make situation better:

  • make sure new ip address has valid rev-dns, one that resolves into a name that can be resolved back to that ip. try to make it not generic - so it does not contain ip address in the rev-dns name

so your should resolve into and should resolve back to

  • for the domain you are sending mails from - create valid SPF record that allows sending messages from

  • make sure that domain you send your mails from has valid MX record.

  • check if your ip is in black lists and drag it out of them if needed. use for instance this or that

  • from what you describe problem does not seem to be related to the mail content, but anyway - pay attention to proper headers etc.

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.