Can't Send Email From Directadmin to the Gmail

That was not mentioned in your post, it was just an reminder for you that all your DNS records in Da panel must match the one in your CF DNS
Okay, i see. Thank you for your reminder. Yes, the dns records on both sides are now align. What's next?
 
I did your said. But i can't;

[root@ovh-vps135-195 scripts]# sh letsencrypt.sh request_single ovh-vps135-195.inadayapp.com 4096
Setting up certificate for a hostname: ovh-vps135-195.inadayapp.com
letsencrypt.sh: line 487: syntax error near unexpected token `<'
letsencrypt.sh: line 487: ` readarray -t args < <(grep -o '^[a-zA-Z0-9_]*=[^;<>|\ ]*' "${DNSPROVIDER_FALLBACK}")'

Then i tried this;
'
[root@ovh-vps135-195 scripts]# sh letsencrypt.sh request_single 'hostname' 4096
Domain does not exist on the system. Unable to find hostname in /etc/virtual/domainowners, and domain is not set as hostname (servername) in DirectAdmin configuration. Exiting...
no valid domain found - exiting
 
what is your hostname exactly ? ovh-vps135-195 ?
Why not using something easy like srv1 or so ? you have add only A record for your hostname linke this

srv1 3600 A 135.125.237.195, be sure that your hostname is correct in DA

first config dns record at cloudflare like "serv.hostname.com" point to your server IPAddress with grey-clouded

login to your server terminal with "root" access,

execute:
hostnamectl set-hostname serv.hostname.com

then login to directadmin panel:
Admin > Server Management > Admin settings

Did you done this ?
 
what is your hostname exactly ? ovh-vps135-195 ?
Why not using something easy like srv1 or so ? you have add only A record for your hostname linke this

srv1 3600 A 135.125.237.195, be sure that your hostname is correct in DA



Did you done this ?
What does it matter? ovh-vps135-195 / vps1 / srv1 ? I changed it to vps1 for your sake.
I'm starting over
I have a domain, inadayapp.com
I want to use vps1.inadayapp.com for the server's hostname.

I added an A record for vps1.inadayapp.com on Cloudflare DNS panel;
1691146475800.png

My vps running on OVH. I changed the reverse dns of 135.125.237.195 to the vps1.inadayapp.com;
1691146512987.png

I changed the server's hostname on Directadmin panel.(vps1.inadayapp.com)
What should be ns1 and ns2 on Directadmin?

1691146590118.png
 
What should be ns1 and ns2 on Directadmin?
If you are using external DNS than it doesn't really matter.

I see some weired things in your DNS :

Domain inadayapp.com. resolves to:
  • 172.67.185.242
  • 104.21.36.57
Domain Name IPs are Public
OK. No private IPs found for inadayapp.com.. Web servers using private IPs can't be reached from the Internet.
Resolve WWW
OK. Domain www.inadayapp.com. resolves to:
  • 135.125.237.195

Seems to me you have different IPs for your site but your emails should be fine (I assuming here that you are sending from 135.125.237.195)
 
If you are using external DNS than it doesn't really matter.

I see some weired things in your DNS :

Domain inadayapp.com. resolves to:
  • 172.67.185.242
  • 104.21.36.57
Domain Name IPs are Public
OK. No private IPs found for inadayapp.com.. Web servers using private IPs can't be reached from the Internet.
Resolve WWW
OK. Domain www.inadayapp.com. resolves to:
  • 135.125.237.195

Seems to me you have different IPs for your site

Main domain's A record behind the proxy on Cloudflare. Shouldn't it be like this?
1691147151572.png

If that's not the case, I can disable the proxy.
 
I have no much experience with CL because we have never used it,
But your main problem is email for now, can you do an new spam check ?
Also, having the domain's A record behind a proxy is not something I've done recently. It was like this when I was using Plesk and I could send emails everywhere without any problem. As I said I can disable the proxy if this is an issue for directadmin.

I'm aware that things are mixed up. My main problem is about to email sending. But right now, i trying to set server's hostname properly. I want to use vps1.inadayapp.com for the server's hostname.

Right now i can use vps1.inadayapp.com:2222 for the access to directadmin. However i can't access over SSL. I need your help for this. I'll come back to email once I've figured this out.
 
If you have your hostname setting right you can request an new certificate
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single vps1.inadayapp.com 4096
Yes i tried this. But it is not working.

[root@vps1 scripts]# sh letsencrypt.sh request_single vps1.inadayapp.com 4096
Setting up certificate for a hostname: vps1.inadayapp.com
letsencrypt.sh: line 487: syntax error near unexpected token `<'
letsencrypt.sh: line 487: ` readarray -t args < <(grep -o '^[a-zA-Z0-9_]*=[^;<>|\ ]*' "${DNSPROVIDER_FALLBACK}")'
 
letsencrypt.sh: line 487: syntax error near unexpected token `<'
This is bothering me because you dont get any dns or unreachable error, so maybe your script is messed, try :
Code:
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
 
This is bothering me because you dont get any dns or unreachable error, so maybe your script is messed, try :
Code:
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
[root@vps1 custombuild]# ./build update
[root@vps1 custombuild]# ./build letsencrypt
######################################################################## 100.0%
######################################################################## 100.0%
Lego 953d5c85145b6a2b9a52f2d919faf23e04a359b3 Installed.
[root@vps1 custombuild]# cd ..
[root@vps1 directadmin]# cd scripts/
[root@vps1 scripts]# sh letsencrypt.sh request_single vps1.inadayapp.com 4096
Setting up certificate for a hostname: vps1.inadayapp.com
letsencrypt.sh: line 487: syntax error near unexpected token `<'
letsencrypt.sh: line 487: ` readarray -t args < <(grep -o '^[a-zA-Z0-9_]*=[^;<>|\ ]*' "${DNSPROVIDER_FALLBACK}")'


Nope, same here :/
 
[root@vps1 scripts]# hostname
vps1.inadayapp.com
[root@vps1 scripts]# hostname -f
vps1.inadayapp.com
[root@vps1 scripts]# hostname --fqdn
vps1.inadayapp.com

Also my hosts;

135.125.237.195 vps1.inadayapp.com vps1
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 vps-8358c422.vps.ovh.net vps-8358c422
 
ok ,I am out of options, maybe a new rebuild can help you

Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d

reboot afterwards to eliminate any problems that maybe otherwise can occure
 
Last edited:
ok ,I am out of options, maybe a new rebuild can help you

Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d

reboot afterwards to eliminate any problems that maybe otherwise can occure

Thanks for your help. I rebuild all. But same...

Delete this line.

However, that should not interfere with the letsencrypt script.
Seems to me there is an issue with the letsencrypt script at your server. But I don't know how to fix.
I deleted that line. But it is added automatically after every reboot
1691150996173.png
 
Please do not change command line that suggest from people trying to help you, if you don't know it work or not.


just execute like this, not need to add "sh" or "bash" in front of command line.
Code:
./letsencrypt.sh
 
Back
Top