I have read all the similar threads here, but could not solve my problem. I created a web domain and successfully obtained a certificate for it, but when I tried to get ssl in the mail section I got error 400. I have the necessary records (mail/webmail) in DNS and they are accessible from the outside world.
From the logs it seems that the web address mail.MY_DOMAIN.com is missing and I really did not find anything about it in the nginx configs. Maybe I should create it manually?
==[Debug information Step 5]==
{
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "XXX.XXX.XXX.XXX: Invalid response from http://mail.MY_DOMAIN.com/.well-known/acme-challenge/VamVjSP8dLmFSMcaERwht07G4WknxowGb4BW5MwjabU: 404",
"status": 403
},
"url": "https://acme-v02.api.letsencrypt.org/acme/chall-v3/208332787817/nrsCTQ",
"token": "VamVjSP8dLmFSMcaERwht07G4WknxowGb4BW5MwjabU",
"validationRecord": [
{
"url": "http://mail.MY_DOMAIN.com/.well-known/acme-challenge/VamVjSP8dLmFSMcaERwht07G4WknxowGb4BW5MwjabU",
"hostname": "mail.MY_DOMAIN.com",
"port": "80",
"addressesResolved": [
"XXX.XXX.XXX.XXX"
],
"addressUsed": "XXX.XXX.XXX.XXX"
}
],
"validated": "2023-03-05T06:25:42Z"
}
==[Abort Step 5]==
=> Wrong status