Extensions: Allow TLS in the smtp uri

Created on 5 Aug 2020  路  10Comments  路  Source: firebase/extensions

Extension name

This feature request is for extension: firestore-send-email

What feature would you like to see?

For use with office365 smtp a TLS connection is needed (with port 587). As it is it doesn't work (als not when the port is correctly set).

How would you use it?

I would suggest something like smtptls://...

in-review feature request

Most helpful comment

Hi,
Thanks for the quick response.

The mail server does not accept SSL, only TLS. An error I get is:
Error when delivering message=mail/: Error: 68894361679680:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:

The rest is not visible in the error console. The smtp server does work with Firebase authentication when STARTTLS is used and it doesn't with the SSL option.

All 10 comments

Hey @kresten8 - thanks for raising this feature request - we'll review and get back to you, thanks!

Unless I'm confused about something this is already possible through smtps://user:[email protected]:587

Hi,
Thanks for the quick response.

The mail server does not accept SSL, only TLS. An error I get is:
Error when delivering message=mail/: Error: 68894361679680:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:827:

The rest is not visible in the error console. The smtp server does work with Firebase authentication when STARTTLS is used and it doesn't with the SSL option.

I'm getting the same error with smtp.office365.com.

Hi,

Any news on this?

Best Kresten

I will need this update to. Let me know if I can help for someting.

Thanks a lot !

@Salakar @russellwheatley can you see if this can be reproduced? If so let's prioritize it.

Change the protocol to smtp and it will work.

Example:
smtp://user:[email protected]:587

If you set the protocol to smtps it will try and connect with a secure connection, and the STARTTLS protocol will fail. If you set it to smtp, the connection will be unsecure, and the STARTTLS protocol will be invoked and upgrade the connection to secure.

Thanks, this works!

I'm happy it worked for you, @kresten8 馃憣

Was this page helpful?
0 / 5 - 0 ratings