-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Prefer TLS over STARTTLS #24
Comments
I think port 465 is depreciated. That is what https://wiki.debian.org/GmailAndExim4 says. And https://tools.ietf.org/html/rfc8314#section-7.3 says the same thing.
Also https://stackoverflow.com/a/19942206/3383907:
|
That page hasn't been updated since 2017 (the RFC was published in 2018). It mentions the use of SSL and it is true that SSL should not be used (TLS should be preferred). Also, the section you quote talks about smtps. The wikipedia page should clarify the intent here:
|
I see. I could not get it to work on port 465. Have you? I will play with it this weekend to see if I can get it to work and if I can I will update the guide. |
Try this link from the exim documentation. I have not tested it myself, however.
|
Thanks. I have played with this for a bit and tried to Google around but can't figure it out. It doesn't appear that anyone is using 465 with exim4 and Gmail. I might try posting to SE. |
https://wiki.debian.org/Exim seems more up to date and uses the |
Alright so I managed to get it working using a combination of the advice from https://wiki.debian.org/Exim and https://wiki.debian.org/GmailAndExim4. First:
Select:
Then check
For TLS: Generate a local cert: Under In
In
Add the following after
Reload/generate the configuration from the template:
Test it with |
Wow! This is great. I will test this and then accept the pull. |
Where exactly should |
If I recall correctly, I put it under the comment header. If it's a split configuration, probably at the top of the file. If you run into problems I'll test it again in GCE. |
I think it might not be needed. I didn't set that part and followed the rest of it and it seems to have worked. I'll test more again in a new VM. They sure don't make it easy to be secure, do they? |
According to the doc:
So it might actually be needed. I will do some debugging to see whether or not STARTTLS is being used if this option is not set. |
Wasn't able to do much comprehensive testing but a port scan shows:
I will make minor modifications to the PR. |
I committed your changes and then made some slight updates/modifications. I also added a note with a link to your GitHub page. I hope that is okay. Thanks so much! |
RFC 8314 recommends that you prefer implicit TLS on port 465 over STARTTLS on 587:
So I would at least recommend changing the GMail port used. I'm not sure what if any other changes are needed to be made to the document.
The text was updated successfully, but these errors were encountered: