Been racking my brain about this for several days now, reading all related posts on this forum and also a lot of other resources but to no avail.
I’ve set up a new user then an email domain. I’ve set up all DNS records properly including A records for mail. and webmail. pointing without CloudFlare proxy to the server’s ip. But when I try to enable SSL for the domain it takes a long time and eventually fails with the following error:
Error: Let’s Encrypt validation status 400 (mail.-domain-). Details: 403:“-server ip-: Invalid response from http://webmail.-domain-/.well-known/acme-challenge/Y-VzQpR2Ha28gEbN8sjmTge9c9f7R6hTCIE07msZJjM: 404”
When I look at the nginx config file for the mail domain (nginx.conf_letsencrypt) I see the following:
It seems like the verification URI doesn’t match with the one in the original challenge. I’ve tried this multiple times and in hestia, on every attempt there’s a new token failing, but the one in the nginx config always stays the same, could this be the issue?
Also, when I run:
grep -R ‘\smail.-domain-’ /etc/nginx/
I get only the following:
/etc/nginx/conf.d/domains/webmail.-domain-.conf: server_name webmail.-domain- mail.-domain-;
It has not changed, command went through without errors but still shows “root /var/www/html;”
I’m not sure because I started this server like 2 weeks ago by now, but it’s possible that I ran the initial hestia installation without webmail support. Could it be related?