Failed to read SMTP TLS certificate
Hi, I set up Postal with docker (followed: https://docs.postalserver.io/) and added cert files to the postal.yml file.
smtp_server:
tls_enabled: true
tls_certificate_path: /opt/postal/config/smtp.crt
tls_private_key_path: /opt/postal/config/smtp.key
Tested with: https://www.gmass.co/smtp-test
Results:
<< 250-My capabilities are
<< 250-STARTTLS
<< 250 AUTH CRAM-MD5 PLAIN LOGIN
>> STARTTLS
<< 220 Ready to start TLS
ERROR: An error occurred while attempting to establish an SSL or TLS connection.
Then I checked Postal SMTP log:

How can I solve this?
This is not a bug in Postal. Please use discussions.
Within the container, config is mounted at /config. This means you need to simply reference files as /config/smtp.crt.
Within the container, config is mounted at
/config. This means you need to simply reference files as/config/smtp.crt.
Please put this in the documentation. This change means that TLS will always silently stop working when upgrading from v1 to v2.
thats a good spot actually
@adamcooke this whole sentence is incorrect right?

oh Postal the installer expects them at /opt/postal/config, Postal the service expects them at /config
Actually, yes - good spotting indeed. If you have custom config files specified, you need to ensure they're in /opt/postal/config and you search and replace /opt/postal/config with /config in postal.yml. I'll update the docs.
I've now updated these docs :) https://docs.postalserver.io/install/upgrade-to-v2
thats a good spot actually
@adamcooke this whole sentence is incorrect right?
oh Postal the installer expects them at
/opt/postal/config, Postal the service expects them at/config
Hello Mr. Will,
I have the same problem, and no emails are sent when I try to to send via secured connection using TLS. So, please let me know the solution in this case.
Below are few images for your reference:

Thank you in advance!