Have seen the same issue recently with somebody else, and with the same cause if I remember correctly.
You are causing some issues yourself.
You should never use mail as hostname. At this moment mail.postrategy.co is your hostname. Mail is reserved for mail.
So if I'm correct, you can fix like this.
1.) Change your hostname to a decent FQDN hostname, so not mail or www or whatever, use for example server.postrategy.co or something else.
2.) It is wise for some reasons (so not obligated but advised) to create this hostname in DNS via the DNS manager too
3.) Login via SSH and use this command to create a new certificate for your hostname
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single server.postrategy.co 4096
4.) Login into your control panel in Hetzner and create the correct rDNS/PTR record for your hostname.
At this moment it points to static.222.252.21.65.clients.your-server.de but that is not your hostname. Set it to your hostname.
If you want to keep using ipv6 then do this for both ipv4 and ipv6 ipadresses used for the hostname.
5.) Just to be sure you could reboot your server and see if things (like hostname) are as should be.
Thanks Richard.
At this moment my hostname is postrategy.co, not mail.postrategy.co .
My previous hostname was server.postrategy.co which caused the SSL of subdomains to be incorrect.
In fact, SSL was created, but it only was working for the main domain(postrategy.co), not for the subdomains and said "Your connection to this site is not secure" and "certificate is not valid".
It was showing that certificate was issued to: server.postrategy.co that is not for subdomains like api.postrategy.co:
"This server couldn't prove that it's
api.postrategy.co; its security certificate is from
server.postrategy.co. This may be caused by a misconfiguration or an attacker intercepting your connection."
For these reasons, I had to change the hostname to postrategy.co and got a new SSL certificate that works correctly even for subdomains.
( I think this is a bug for directadmin.)
let's move on, I changed the hostname for server.postrategy.co According to your suggestion but now I have new errors.
1. I can't go to the page "Email Accounts" in direct admin, it is showing this error:
2. When I want to go webmail manager from directadmin (Admin --> Extra Features --> Webmail:Roundcube) the new address (
https://server.postrategy.co/roundcube) is opening in the new tab that is not reachable.
after changing the address "
https://server.postrategy.co/roundcube" to "
https://postrategy.co/roundcube" manually, the logging page of Roundcube Webmail is loading but only with admin Email account can login it, not for example with
no-reply (
[email protected]).
Regarding number 4:
I changed the reverse DNS to server.postrategy.co from my Hetzner dashboard.
I checked it from my windows, and it is ok.
I also updated Exim configuration files with ./build exim_conf and rewritet WEB server configuration files with ./build rewrite_confs .
***********************
With all these things,
1. I still can't send email.
2. I still can't login to Roundcube Webmail with other email accounts except admin account.
3. the
https://server.postrategy.co/roundcube address is not reachable.
4. I don't know the reverse dns is correct?
Please help me.