How to setup cloudflare on virtualmin

I have Vps with unubuntu 16.04 and nginx. How do I setup cloudflare and virtualmin for mail to work. I can setup the ip in cloudflare but I don't know how to setup mx records etc. Please help Thanks



Howdy -- it sounds like you may need to point the DNS 'A' record to CloudFlare, and the MX record to your mail server (which may be your Virtualmin server in this case). You can configure that in Server Configuration -> DNS Records.

It looks like you're using Virtualmin GPL there though. If you had any additional questions on how to do that, you'd actually want to use the Forums for support. We monitor the Forums, along with lots of wonderful folks in the community. Thanks!

Thanks andreychek I posted it in the forum as well but no replies. I searched google and see alot of people having the same issue but none of them show how to set it up. Can you give a step by step for settings in cloudflare and virtualmin? I know this will help alot of people having the same issue. Thanks