SSL acme-challenge/404.html

Hello!

I’m having issues with my mail server when trying to generate a SSL with this command:

/root/.acme.sh/acme.sh --issue -d mail.domain.com -d www.mail.domain.com --cert-file /etc/letsencrypt/live/mail.domain.com/cert.pem --key-file /etc/letsencrypt/live/mail.domain.com/privkey.pem --fullchain-file /etc/letsencrypt/live/mail.domain.com/fullchain.pem -w /home/mail.domain.com/public_html/ -k ec-256 --force --server letsencrypt

Im recieving this error:

mail.domain.com:Verify error:00.000.000.000: Fetching http://mail.domain.com/.well-known/acme-challenge/404.html: Connection refused
[lun ago 22 14:10:54 CDT 2022] Please check log file for more details: /root/.acme.sh/acme.sh.log

How can I fix this? I can recieve mails but the SMTP is failing due to expired SSL, that’s why I’m trying to generate a new one

Thanks in advance!

Can you please show vhost configrations?