WordPress notifications from main server not received on my MIAB inbox

I have the following configuration:

  1. Server 1 with MIAB (box.mydomain.com) and external DNS for mydomain.com pointing to Server 2
  2. Server 2 with a RoR app (mydomain.com) and a WP blog (mydomain.com/blog)

On the Server 2, I use postfix to get WordPress to send notifications, password reset emails, etc.

When I set the recipient address to myemail@gmail.com, these notifications are received.

But when the recipient address is set to be mail@mydomain.com, I receive none of these WP emails. I don’t find them in the spam nor anywhere…

Are there logs that I can check to see if these emails at least hit Server 1, and do you have an idea what could be causing that?

/var/log/mail.log

Likely due to the postfix configuration on server 2. I’d suggest that you configure it as a smart host or preferably use a SMTP plug in for your WP installation.

And what is a ‘RoR app’?

Thanks Alento. It’s Ruby on Rails. I’ll check these!

For better understanding, what do you think could be the issue in postfix config? Basically WP creates the mail but postfix doesn’t send it because it’s an address on the same domain?

Yeah … so really … you are going to have much less grief if you use a smtp plugin for WP. If you do not, you are going to need to create a custom SPF record as well as figuring out the issue in the first place.

Hi Alento,

Actually I already have a custom SPF, which I included in the Cloudflare DNS records. I modified the one for mydomain.com from

v=spf1 mx -all

to:

v=spf1 include:send.aweber.com mx a ip4:1.2.3.4 ip4:5.6.7.8 ip6:0000:1:2:3 mx -all

It solved the issue of having the notifications marked as “unsafe” by Gmail.
Actually this reminds me of an issue I had a couple of years ago with WP notifications on a VPS. Some loop due to postfix domain name config… (of course I don’t remember exactly what :-P). I’ll check the logs on both servers when I’m on the computer.