ERROR: An error occurred while attempting to establish an SSL or TLS connection in Postal smtp #1458
Replies: 14 comments 3 replies
-
If you have recently changed the config file, you will need to restart Postal to apply the changes. Have you changed the ciphers or anything under those lines of config? Can the postal user definitely access those certificate files you have mentioned? |
Beta Was this translation helpful? Give feedback.
-
tls working fine but when i test smtp then show me this error Error: OpenSSL::SSL::SSLError (hostname "myhost.com" does not match the server certificate) |
Beta Was this translation helpful? Give feedback.
-
run the command openssl s_client -connect myhost.com:25 -starttls smtp and paste the output |
Beta Was this translation helpful? Give feedback.
-
CONNECTED(00000005)
|
Beta Was this translation helpful? Give feedback.
-
try to send on 587 for tls |
Beta Was this translation helpful? Give feedback.
-
140663099892160:error:0200206F:system library:connect:Connection refused:../crypto/bio/b_sock2.c:110: i get this. |
Beta Was this translation helpful? Give feedback.
-
try this smtp_server: |
Beta Was this translation helpful? Give feedback.
-
postal not working if i put port 587 |
Beta Was this translation helpful? Give feedback.
-
check the logs and paste screenshot here of error |
Beta Was this translation helpful? Give feedback.
-
please do send the screenshot of postal.yml Note: Please do hide private information in Screenshot or code |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'm also facing the same issue. this is my yml file smtp_server: |
Beta Was this translation helpful? Give feedback.
-
Hello i am writing this answer because i also struggled to establish a working TLS setup for SMTP. These are the steps i took to make it work. i copied the the certificates from caddy to the correct folder in postal and changed permissions accordingly:
after that i altered my postal.yaml to this:
please note: the path starts with Stop and restarted postal. first i encountered some error messages when running this command
this is what i found in the logs (docker logs postal-smtp-1) so far:
but after i corrected the the pathes in the |
Beta Was this translation helpful? Give feedback.
-
can't connect postal SMTP via tls Its shows an error.
Connected to smtp://mydomain:25/?starttls=always
<< 220 mydomain ESMTP Postal/SVYGBU
It is also possible that the set of SSL/TLS protocols supported by the client and server do not match.
See https://github.com/jstedfast/MailKit/blob/master/FAQ.md#SslHandshakeException for possible solutions.
See SMTP server configuration in postal.yml
smtp_server:
tls_enabled: true
tls_certificate_path: /etc/letsencrypt/live/domain/fullchain.pem
tls_private_key_path: /etc/letsencrypt/live/domain/privkey.pem
@willpower232
Beta Was this translation helpful? Give feedback.
All reactions