Ignore self signed SSL on SMTP relay server #2769
-
I have setup a postal server 2.1.4 on Ubuntu 22.04.3 LTS as per the instructions in the documentation. I am using docker. I want to relay emails from another SMTP server. While sending emails I am getting an error message, stating that the certificate verification failed as the smtp has a self-signed SSL.
Is there a way to allow postal server to trust this self-signed certificate? Prior to this I was getting (EE certificate key too weak) error, which I solved by mounting the openssl.cnf file into the SMTP and worker containers and updating the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I'll guess you can mount the Root CA into the Container so the cert will be trusted. I couldn't find any "ignore self signed cert" option in postal. |
Beta Was this translation helpful? Give feedback.
-
Hi! I have the same |
Beta Was this translation helpful? Give feedback.
I've looked into the source code. Try to set the
ssl_mode
toAuto
, the SMTP Client should start withoutverify_mode
.https://github.com/postalserver/postal/blob/main/lib/postal/smtp_sender.rb#L263
https://github.com/postalserver/postal/blob/main/lib/postal/smtp_sender.rb#L60