To set up an MX record in Cloudflare for mail service, follow these steps:

  1. Log in to your Cloudflare account.

  2. Select the domain for which you want to set up the MX record.

  3. Click on the "DNS" tab.

  4. Scroll down to the "MX" section.

  5. Click on the "Add Record" button.

  6. In the "Name" field, enter the subdomain for the MX record (e.g. "mail" for "mail.example.com"). Leave the "Name" field blank if you want to set up the MX record for the root domain (e.g. "example.com").

  7. In the "Type" field, select "MX" from the dropdown menu.

  8. In the "Value" field, enter the mail server hostname or IP address provided by your mail service provider.

  9. In the "Priority" field, enter the priority value for the MX record (usually 10 or 20).

  10. Click on the "Add Record" button to save the MX record.

That's it! You should now have an MX record set up in Cloudflare for your mail service. It may take some time for the MX record to propagate and become active. You can verify the MX record by using a DNS lookup tool, such as the "dig" command or the "nslookup" command.

Was this answer helpful? 0 Users Found This Useful (0 Votes)