Newbie: Domain registered at Cloudflare, how to set up DNS between DirectAdmin

tomwin

Verified User
Joined
Apr 23, 2020
Messages
88
Hi, haven't done this in several years. I can't get it to work. No outgoing email is working on my domain. I have a black warning triangle In front of the domain.
Lot of problem. After I set up Directadmin on my server. Ubuntu 24.04. I haven't touched any thing DNS setting on Directadmin DNS. I have only tried to change in Cloudflare. My DNS setting on Cloudflare is an A record that point to my domains IP address A www proxied in orange TTL is set to auto. And then I have an A record to my mail A. mail set to my domain IP address proxied in orange and auto in TTL.

The site working but right now I have this black warning triangle domain field. And when I try to send outgoing email nothing ends up in receivers mail inbox.
Any idea what I should do? Should I change the DNS in Directadmin DNS pointing to Cloudflare?
Please help me.
 
There are 2 things which you need for mail to work.
1.) When using Cloudlfare, the mail DNS records should not be proxied but set to DNS Only. This goes for mail, MX, smtp and so on.
2.) You require to have port 25 open incoming and outgoing, best is to doublecheck that for example to telnet to mail.directadmin.com on port 25. When you get a response then port 25 is open outgoing.

DNS in DA normally does not have to be changed.
 
There are 2 things which you need for mail to work.
1.) When using Cloudlfare, the mail DNS records should not be proxied but set to DNS Only. This goes for mail, MX, smtp and so on.
2.) You require to have port 25 open incoming and outgoing, best is to doublecheck that for example to telnet to mail.directadmin.com on port 25. When you get a response then port 25 is open outgoing.

DNS in DA normally does not have to be changed.
But isn't port 25 for SMTP? Im don't use a 3rd email provider to send my emails by SMTP I just trying to send email and receive emails to my Roundcube and outgoing email for my register user on the website so they can activate the emails they use.
 
But isn't port 25 for SMTP?
That depends what you're using. SMTP is nowadays mostly used via port 587 and 465, your mail client uses that to send mail to your server or an external mail service.
But if you want your Directadmin server to send and receive your mail, then port 25 needs to be open incoming and outgoing because the mailserver (Exim) uses port 25 to communicate with other mailservers.
 
I have Digitalocean. And I sent them a support yesterday to ask them to open port 25 but it looks like they refuse to do so. All I get back is, tell us why you want to open port 25 and I tell them that I want to be able to send out mail from my website to new register members and be able to use the Round cube on Directadmin. It looks like I'm stuck with a bad hosting and paid a lot of money and now I have a web site that doesn't work because the support on Digitalocean stop answer my support question.
Thank you for helping me.
 
Last edited:
1. They have block port 25, you can not use VPS as email server
2. Send mail to new register in your website: you can setup 3rd smtp, example: gmail smtp. If you want use email domain, you can register google workspace, zoho, ...
3. If you want Digital Ocean unlock 25, you must used vps more than 6 months
 
Not bad provider, you just start the new account, so they not trusted you enough to open the open 25.
 
Back
Top