Mails not received when using Cloudflare DNS and Cpanel server [closed]

Any idea what am I doing wrong? The MX records are pointed to mydomain.com . Should they be pointed to mail.mydomain.com or to the IP address of the Cpanel server?

MX Records should point to the server that is configured to accept mail for that domain.

In your case, that's probably your mailservers name.