I am using contabo server, after change the name-server of the server (new name server name is we.robotlancer. com), i think lots of problem arrived. main problem is our emails not working. I am using VPS, Cloudflare (i am using 2 domain gocloudo. com and robotlancer. com)
PROBLEM? what i am actually doing wrong? what should be my MX record? i cant send emails. its bouncing back. then changed lots of things in server DNS options and cloudflare settings. may be i messed up?
create an A record - mail. Point this to your Virtualmin server’s IP address. From the screenshot I see you have an A record for mails (note, plural). You could keep this or delete it, it has no role in configuration of DNS for Virtualmin.
now its saying - Oh well, I did not detect any MX records so you probably don’t have any and if you know you should have then they may be missing at your nameservers!
I think you need to check your hostname for your server also check with your registar dns records to forward properly to cloudflare and then on cloudflare check if its properly linked to your server… with cloudflare you cannot host your own dns - every edit needs to be added manually… and if anything in any of those 3 ways get mistakes - nothing will give you resolution in error messages because of cloudflare so good luck there.
Missing MX records doesn’t necessarily mean you should be unable to send mail.
So these are two different issues to solve.
When using Cloudflare you can’t proxy the mail.domain, so remove the “orange cloud” from the mail A record.
And fix your MX record like mentioned by @calport.
For the sending troubles, please share an example bounce you got when trying to send an email.