Setup mail server and Cloudflare DNS
Hello,
I need to setup my email server host with Cpanel while my nameserver and DNS are with cloudFlare. Would someone recommand a guide or tuto please ?
(I spent days without success to do that ... :((....)
Thanks a lot.
Khampol.
-
Hey there! If the DNS is being handled by a remote service you would just need to make sure your MX record is pointed to your cPanel machine in DNS. The easiest way to do that is to make sure your DNS looks similar to the following: domain.com. IN MX mail.domain.com. mail.domain.com. IN A x.x.x.x where "x.x.x.x" is the IP address of your cPanel machine. Can you try that and see if that gets things working for you? You will likely need to allow for a bit of DNS propagation time while that change makes its way around the internet. 0 -
If you are using CloudFlare for DNS I'd highly suggest turning off the proxy feature (click the orange cloud to make it grey) for your MX record(s) and any DNS records you are using in your email client (like mail.yourdomain.tld) as that will cause you nothing but grief. The proxy/fiirewall is intended for Web, not mail. 0 -
Hello, sorry for my late reply. We see here my config in cpanel and CL. I think all is correct. CL cpanel " Email Deliverability" If i try to ping the mail server the IP is good but i have 100% loss... I use pfSense. I think to open all necessery ports in it.... .. Otherwise the web http and https work very well. I am stuck for days now.... .... :(( 0 -
Ping isn't a reliable indicator of service, as many routers block ping traffic by default. It would be a better idea to use a tool like "dig" to check the DNS records, or an online tool to check the records. 0 -
Ping isn't a reliable indicator of service, as many routers block ping traffic by default. It would be a better idea to use a tool like "dig" to check the DNS records, or an online tool to check the records.
ok i check that. But overall what o u think? My setup looks ok ?0 -
Yes, it appears to be correct. You can check pretty easily by going here: MX Lookup Tool - Check your DNS MX Records online - MxToolbox and putting your domain name in. You can then see that DNS for the MX record works properly. 0 -
No, you just look up your domain name, not mail.yourdoamin.tld. 0 -
No, you just look up your domain name, not mail.yourdoamin.tld.
ah ok. Ok i relaunch the test win only mydomain.com and got this : The target IP is correct but something looks block it. But as I post above i open all port in the firewall. This is what i dont get ...0 -
It may not really be blocked. cPanel puts a delay on IP's it has not seen before. You can bypass that, but adding the IP to Trusted SMTP IP addresses, but you won't know the IP address of their server. You can test on your computer with telnet: telnet ##.##.##.67 25
And just give it a bit to see if it connects. After a bit, you'll see a couple of 220 replies from the server.0 -
Ohlala ! I find my own mistake !! I correct it and it works now :D yippeee ! Thanks a lot for help guys. Khampol. 0 -
I'm glad you were able to track that down! 0 -
Ohlala ! I find my own mistake !! I correct it and it works now :D yippeee ! Thanks a lot for help guys. Khampol.
May i know where is this settings on cpanel? i having same issue0 -
@ctrlvb - I don't believe that screenshot is from cPanel - I think that is from the Cloudflare side of things. 0
Please sign in to leave a comment.
Comments
14 comments