I have a WordPress website that is sending emails to me through a contact form. The From address in the emails uses the same domain name of the website.

Currently the emails are being treated as spam, probably because the SPF setting for the domain name doesn't include the mail server being used by the website.

How can I find out the IP address of the mail server used by the website?

Once I've got that, I can add the IP address to the SPF DNS record for the domain.

  • 1
    Unless you have a complex server setup, I'm pretty sure the mail server IP address is the same as the web server IP address (everything run from one remote computer). – Mike -- No longer here Jul 25 '17 at 3:47
  • There are a number of online MX lookup sites you can use, like this one. If you enter in your domain, it will report back the hostname and IP address. You can also do an SPF record lookup there too (from the pulldown menu that appear after you do the MX lookup). – dan Jul 25 '17 at 4:11
  • @Mike The hosting service I'm most familiar with uses 2 different mail servers (one is a failover I think) that are different to the servers the websites are hosted on. I don't know how common that is though. – Highly Irregular Jul 25 '17 at 11:02
  • @dan as per my comment to Mike, I don't think that works. Perhaps when the website sends an email, there's some details in the raw email data? – Highly Irregular Jul 25 '17 at 11:04
  • @HighlyIrregular Did you look at the link in my comment, it has other options, including sending an email from your site to view a full Deliverability Report that will: analyze the headers, the blacklist reputation of your outbound IP address, and your SPF records. I'd suggest spending some time using that tool. Also, did you just ask your hosting service for help? – dan Jul 25 '17 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.