Using ForwardMX with Cloudflare is one of its original use cases. In this Wiki entry we will go through the whole setup to use ForwardMX as your MX server and receive all your domains emails while using Cloudflare as DNS provider. Now let’s get started.
We assume you already have setup your domain with Cloudflare.
If that is not the case, check out this guide by Cloudflare.
Open Cloudflare and switch to the domain you want add ForwardMX to. You will have several options on the top; choose the “DNS” one.
On the DNS panel select MX from the form at the upper part of your DNS table.
@ means your domain. If you add any other value here, the email would be only working on a subdomain. Like if you use www instead of @ emails, it will be valid only to [email protected] which is not what you want.
Click on the next form element and a modal will popup requiring you to add an MX server hostname and the priority. Use these values:
mx1.forwardmx.io - Priority: 10 mx2.forwardmx.io - Priority: 20
as seen the following pictures:
Also do not forget to click the “Add Record” button after each.
If everything is right it should look something like this:
Now wait until our system picks up the changes (with Cloudflare this usually takes between 5 and 10 minutes) and you are ready to receive emails on your Cloudflare domain!