Email Stopped Working


#1

I’m having problems with email. My contact form will not work since I installed Cloudflare. I presently have 3 A records - Mail, domain.com and www. I have 1 MX record - domain.com, mail handled by mail.domain.com. My mail doesn’t work and I’m getting the following warning - An A, AAAA, CNAME, or MX record is pointed to your origin server exposing your origin IP address.

Any help would be appreciated.

Thank you.


Changing your domain name servers to Cloudflare
#2

I don’t have my computer right now so I can’t post a screenshot. Here’s what the email setup I use is like. Not sure if this is proper setup but it works for me. My web server and email server are on different IPs:

A record - domain.tld - web server ip - orange cloud
A record - mail - mail server ip - grey cloud
CNAME record - www - alias of domain.tld - orange cloud
MX record - mail.domain.tld

Edit: also please see this Cloudflare support article

Edit2: here’s a screenshot I threw together that illustrates what I wrote above in the Cloudflare UI:


#3

If your form is trying to send email using domain.com it won’t work because that is CloudFlare’s IP address which does not have your mail server. You may need to specify mail.domain.com in your form which does point to your mail server’s IP address.

You can ignore the warning about a record exposing your origin server’s IP for things like this IF you’re not bothered about people knowing your servers’s actual IP.

I recommend checking your MX records because your post makes it sound like domain.com is set as the MX which won’t work because that’s CloudFlare’s IP. You’ll need to change your MX records to point to your actual mail server’s IP address.