-
Notifications
You must be signed in to change notification settings - Fork 535
Closed
Labels
Description
On some services to allow custom smtp server, TLS is required. auth0.com is one example.
It seems that TLS is not supported in MailDev, so I thought of trying ngrok (pro account) to use tls
# start docker image
$ docker run --rm -p 1080:1080 -p 1025:1025 djfarrelly/maildev bin/maildev --web 1080 --smtp 1025 --incoming-user smtp --incoming-pass smtp
# start ngrok tunnel
$ ngrok tls -subdomain=SUBDOMAIN 1025
Forwarding tls://SUBDOMAIN.ngrok.io -> localhost:1025
# manual check for connection
$ /usr/local/opt/openssl/bin/openssl s_client -starttls smtp -crlf -connect SUBDOMAIN.ngrok.io:443
CONNECTED(00000003)
didn't found starttls in server response, try anyway...
140735930754056:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 343 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1496808447
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
So far I haven't been able to succeed. Is there a way you would suggest to add TLS over MailDev? It would be great for this development environment (ie: external service that really want TLS).
Thanks!
kajmagnus, jchannon and dmvslv