No SMTP servers were available — SSL_connect returned=1 errno=0 state=error: dh key too small

Hi Sir,

My web server is CaddyServer and I’m using CaddySSL. Im getting below error when I send emails securely via TLS.


**SSL_connect returned=1 errno=0 state=error: dh key too small**

My OS: Ubuntu 20.01

Can anyone please help me solve this. Thank you in advance!

Kind Regards,
Xeny

Caddy is an HTTP server. SMTP is not HTTP. Caddy is not the right tool to proxy SMTP connections.

You may use caddy-l4 which would allow you to proxy connections at the TCP level https://github.com/mholt/caddy-l4

Please fill out the help topic template when posting on the forums.