Cyberpanel Postfix error "Hostname or Domain not found"

I’m trying to figure out an email issue on a fresh install of the latest Cyberpanel and sometimes I get email bounced back with the following error:

<>: Host or domain name not found. Name service error for type=AAAA: Host found but no data record of requested type

When I run the command “dig mx +short”, it shows empty output instead of ‘10’

Resolution suggested in a non cyberpanel forum:

Specify correct DNS servers in the `/etc/resolv.conf` on the mail server.

When I look in /etc/resolv.conf, it shows 2 nameservers: and

Is this correct? And if it needs to be changed, can someone explain how to change it?


where dns are manged?

I’m using Cloudflare for DNS management