-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add warning to mailer documentation about authentication #11563
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
Conversation
References go-gitea#7966 Signed-off-by: Andrew Thornton <[email protected]>
Hmm weird, I use SMTP fine with user/password without setting Looking at the way Gitea works is that if you set gitea/services/mailer/mailer.go Lines 160 to 164 in 5789e60
but if not it still tries StartTLS if supported: gitea/services/mailer/mailer.go Lines 185 to 191 in 5789e60
Which will upgrade the connection to a TLS connection in most cases. So So I think it should say you can only use username/password if the SMTP server supports TLS. |
@mrsdizzie - I forgot about that little feature - hopefully I've improved @guillep2k's suggestion. @guillep2k presumably nota bene has died out in the Americas, I thought it was well-known e.g. i.e. etc. |
Can you also add this to |
@zeripath looks good. Maybe while in here we can update the comment for
Since the name is confusing and the current comment isn't really descriptive of what it does (most people read it as required for any TLS and it is probably wrongly suggested for servers or ports that don't support Implicit TLS). |
@mrsdizzie do you mean explicit rather than implicit here? My understanding is that STARTTLS is opportunistic TLS or implicit - in that the server and the client will upgrade to TLS implicitly without us explicitly telling them to, similarly connecting to a TLS port and detecting it was a TLS connection would be implicit, but saying connect with TLS is being explicit. |
Oh this is a weirdness of the RFC - the implicit here means that at the protocol layer the TLS is implicit. (even though the user has made it very explicit that they want TLS.) |
@zeripath yes agree its all very confusing : ( Most simply, STARTTLS is considered the explicit one because the connection is explicitly upgraded if not secure. Other option is implicit because its implied the connection is already secure. |
Signed-off-by: Andrew Thornton <[email protected]>
OK I've tried to make that a bit clearer. Fundamentally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm -- hopefully this will be just as helpful to us in the future as a reminder of how it works : )
) * Add warning to mailer documentation about authentication References go-gitea#7966 Signed-off-by: Andrew Thornton <[email protected]> * As per @guillep2k and @mrsdizzie * as per @mrsdizzie Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: guillep2k <[email protected]>
References #7966
Signed-off-by: Andrew Thornton [email protected]