Open jediazmurillo opened 11 months ago
Hey there. I'm assuming it's because the container (container_name: addy
) doesn't have /etc/...pem
mounted so as far as it's concerned the path doesn't exist. You could try mounting the certs in the container at the root and then modify the ENV variables to point to the internal container path.
volumes:
- "./data:/data"
- "/etc/letsencrypt/live/domainexample.xyz:/certs"
POSTFIX_SMTPD_TLS_CERT_FILE="/certs/domainexample.xyz-fullchain.pem"
...
Support guidelines
I've found a bug and checked that ...
Description
Can not enable TLS on Postfix
Expected behaviour
Should Enable TLS
Actual behaviour
Getting 500's on webapp
sudo docker compose logs -f gives the following:
addy_nginx | 111.111.111.111 - - [19/Dec/2023:06:29:44 +0000] "GET /captcha/mini?9ntdf97c HTTP/2.0" 200 5776 "https://websiteedited.xyz/register" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0" "-" addy | Dec 19 00:29:53 mail postfix/smtpd[1072]: warning: cannot get RSA certificate from file "/etc/letsencrypt/live/domain.xyz/fullchain.pem": disabling TLS support addy | Dec 19 00:29:53 mail postfix/smtpd[1072]: warning: TLS library problem: error:80000002:system library::No such file or directory:crypto/bio/bss_file.c:297:calling fopen(/etc/letsencrypt/live/domain.xyz/fullchain.pem, r): addy | Dec 19 00:29:53 mail postfix/smtpd[1072]: warning: TLS library problem: error:10080002:BIO routines::system lib:crypto/bio/bss_file.c:300: addy | Dec 19 00:29:53 mail postfix/smtpd[1072]: warning: TLS library problem: error:0A080002:SSL routines::system lib:ssl/ssl_rsa.c:448:
(IP and website edited for privacy)
Steps to reproduce
Using the information provided using default settings on fresh vps
Docker info
Docker Compose config
Logs
Additional info
By default certbot certificates are only root accesible, i tried to create others on /home/user/anonaddy with 777. The application can not read those either.