Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 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 81.82.83.84 should resolve into my.name.com and my.name.com should resolve back to 81.82.83.84.

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

  • 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
add comment

Your Answer

 
discard

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.