MX still not correct

On Cloudflare, before I had MX =, but changed it in Cloudflare DNS management to MX=
Why on Mailgun this hasn’t changed. And as a consequence mail is not working.
What can I do?
Please help.

Hi @luc.huyse,

The record doesn’t point to mailgun, so they shouldn’t be involved, perhaps it just takes some time for them to see the change in records.

As for your email currently, you have an MX record pointing to, but no DNS records for that. You need to add an A record for mail pointing to your mail server IP set to :grey:.

Thank you so much for replying to me.
How do I write the Type A -> Name: mail and Proxy status this grey cloud?

Like this? See screen print.

Or this:

or like this (I changed the word email to just mail). See


Assuming that is the correct IP for your server, that’s the one you need to add.

Thank you, I’ll try it and come back here, OK?

1 Like

I have a remark nowScreenshot 2021-01-28 at 12.51.33

That’s expected, if you choose to host your email on the same server as your website you have to expose the IP.

What do you mean by ‘expose the IP’?

hi domjh, what do you mean by ‘expose the IP’?

Usually when you proxy DNS records through Cloudflare, it hides the actual IP address of the server. Cloudflare cannot hide the IP of your server if you also use it for emails.

1 Like

What is the solution? Do I have to delete MX?

No, if you want your email to work, you have to leave it as it is. It’s just a warning to make you aware that your server IP is not hidden.

Thank you. I give it a try. I’ll let you know!

I have a response from the server company, they say that I must delete the last TXT and add a SPF record.
v=spf1 a mx ip4: -all
but I don’t know where exactly and if I have to fill in all. What in ‘Name’ and do I have to fill in all thatv=spf1 etc in ‘Content’?

Nope. SPF Type records are deprecated.


what now???

DNS specifications have deprecated the SPF record type in favor of TXT records
You can check this article for more details on how to manage DNS records in Cloudflare: