mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-26 13:36:02 +03:00
[GH-ISSUE #267] Use TLS checkbox for SMTP server can be confusing #229
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dominic-p on GitHub (Mar 13, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/267
Originally assigned to: @jasonmunro on GitHub.
Having just spent a few hours pulling out my hair, I realized that I didn't understand what the Use TLS checkbox meant for an SMTP server.
I am connecting to postfix using submission (on port 587) which expects a STARTTLS transaction. In order for this to work you have to uncheck the Use TLS checkbox. This was counter-intuitive to me (I want to use STARTTLS so I should uncheck Use TLS). I definitely didn't want to connect unencrypted, so I thought my only option was to check the box. I didn't realize that when the checkbox is unchecked Cypht will automatically try STARTTLS if it is available.
After figuring this out, I found the explanation here, but it would have been awesome if there was a little blurb in the UI explaining that "Use TLS" must be disabled if you want to use STARTTLS.
For anyone else that runs into this, when I was attempting to connect to my postfix SMTP server on port 587 with the Use TLS checkbox on I got a super helpful
SSL3_GET_RECORD:wrong version numbererror in my PHP logs (after I enabled Cypht debug mode and removed the error suppression from thestream_socket_clientcall...why swallow errors there?).When examining the postfix logs I saw messages about lost client after UNKNOWN. It looks like after postfix sends the banner message, PHP sends something that can't be understood (not the expected EHLO) which is rendered as
???in the logs.Don't take this is a rant. I really like the software. I just wanted to post this to help anyone else that thinks like me. :)
@jasonmunro commented on GitHub (Mar 13, 2018):
Thanks for the feedback! I absolutely agree we need to do something to make this more clear. I will let you know when I commit a solution.
@dumblob commented on GitHub (Mar 14, 2018):
Maybe just change
Use TLStoRequire TLS (STARTTLS is not enough).@dominic-p commented on GitHub (Mar 14, 2018):
Or, maybe instead of a checkbox it could be a radio?
@jasonmunro commented on GitHub (Mar 14, 2018):
Changed to radios:
@Yamakasi commented on GitHub (Mar 14, 2018):
Good fix, I read about this yesterday and was thinking what would be the best idea indeed. I think this could be it.
@jasonmunro commented on GitHub (Apr 15, 2018):
This is fixed in the master branch. Thanks again for the feedback!