My domain is: mail.commedia.org.uk
I ran this command:
openssl s_client -connect mail.commedia.org.uk:25 -showcerts
It produced this output:
CONNECTED(00000003)
140137382925632:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 312 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
The operating system my web server runs on is (include version): Centos 5
My hosting provider, if applicable, is: self-hosted
I can login to a root shell on my machine: yes
I'm using a control panel to manage my site: no
The version of my client is:
~/.acme.sh/acme.sh --version
https://github.com/acmesh-official/acme.sh
v2.8.8
Using https://www.checktls.com/ to check TLS on this mail server, I get the following error message:
Certificate #1 of 1 (sent by MX):
Cert is unsigned
Cert VALIDATION ERROR(S): unable to get local issuer certificate
This may help: [What Is An Intermediate Certificate](http://support.godaddy.com/help/article/868/what-is-an-intermediate-certificate/)
So email is encrypted but the recipient domain is not verified
Cert Hostname VERIFIED (mail.commedia.org.uk = mail.commedia.org.uk DNS:mail.commedia.org.uk)
Not Valid Before: Mar 13 23:17:33 2021 GMT
Not Valid After: Jun 11 23:17:33 2021 GMT
subject= /CN=mail.commedia.org.uk
issuer= /C=US/O=Let's Encrypt/CN=R3
I think I've created the following files correctly:
./acme.sh --install-cert -d mail.commedia.org.uk --cert-file /etc/pki/tls/cert.pem --key-file /etc/pki/tls/privkey.pem --fullchain-file /etc/pki/tls/fullchain.pem
And following the instructions here:
https://upcloud.com/community/tutorials/secure-postfix-using-lets-encrypt/
I point to the files here:
smtp_tls_key_file = /etc/pki/tls/privkey.pem
smtp_tls_cert_file = /etc/pki/tls/fullchain.pem
Reloaded Postfix but errors remain.
Please help and advise with:
Cert VALIDATION ERROR(S): unable to get local issuer certificate