Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: SMTP vs SMTPS #22

Closed
mr-j0nes opened this issue Jul 23, 2019 · 4 comments
Closed

Question: SMTP vs SMTPS #22

mr-j0nes opened this issue Jul 23, 2019 · 4 comments

Comments

@mr-j0nes
Copy link

Hello there,

just a couple of questions, I am a bit confused about your naming convention for smtp and smtps.
Isn't smtps deprecated like 15 years ago ?

You have the following:
smtp:::auth_method_t::NONE
smtp:::auth_method_t::LOGIN
smtps:::auth_method_t::NONE
smtp:s::auth_method_t::LOGIN
smtp:s::auth_method_t::START_TLS

what is the difference between the two NONEs and the two LOGINs.

As I understand STARTTLS asks the server to upgrade the insecure connection to a secure one. So somehow it makes sense to me to have only one set of NONE, LOGIN and START_LS under a same nemespace..

@karastojko
Copy link
Owner

Hi,
One NONE is for SMTP the other for SMTPS, same for LOGIN. It would be more elegant to have enum inheritance, but that is not possible in C++.
There are still servers which use SMTPS, and it was easy to add - so there it is.

@mr-j0nes
Copy link
Author

Thank you for the reply. I see.
I guess then what confuses me is that START_TLS is not only a feature of SMTPS but also of SMTP. So why is it not available on SMTP too ?

@karastojko
Copy link
Owner

The idea is that smtps is for the secure type of connections. Since START_TLS is used to secure the connection, it is not available in smtp.

@mr-j0nes
Copy link
Author

Ok I see now, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants