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
[server] SMTP connection with STARTTLS does not work #5222
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Yes, this is still an issue with 2.3.7-beta:
|
This makes MAILER_SECURE accept either `none`, `smtps`, or `starttls`, and passes the correct values to Nodemailer: https://nodemailer.com/smtp/#tls-options This also changes the default MAILER_PORT to 465, to be consistent with the default MAILER_SECURE value of `smtps`. Fixes laurent22#5222.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
This is still waiting on #5369. |
Any value other an an explicit "1" is interpreted as false. Fixes laurent22#5222 MAILER_SECURE enables a forced SSL mode (SMTPS) often seen on port 465. The other common variant of port 587 & STARTSSL requires MAILER_SECURE to be false. More importantly, as previously written there was no way to set it to false, thus making STARTTLS impossible to use. With this setup both options can be used as required in the installation environment.
b5d792c has solved the immediate issue of not being able to override the secure parameter. Will test if STARTSSL is feasible now. |
I am unable to confirm if email sending is now functional with STARTSSL since it seems to be completely broken: #5669 |
I can confirm that STARTTLS is now functional when setting
|
Environment
Joplin version: Joplin Server v2.2.7-beta
Platform: Linux amd64
OS specifics: Ubuntu 18.04 + Docker
Steps to reproduce
MAILER_SECURE=0
in environment configuration.EmailService
maintenance fails.Describe what you expected to happen
Setting
secure=false
for nodemailer should cause it to use STARTTLS rather than an SSL socket. However, settingMAILER_SECURE=0
does not seem to be respected:joplin/packages/server/src/config.ts
Line 93 in f611d77
In addition, the default value of
true
on that line is inconsistent with the default port on the line above:joplin/packages/server/src/config.ts
Line 92 in f611d77
(The submission port 587 normally uses STARTTLS, where as port 465 is standard for SMTPS a.k.a SMTP over SSL.)
Logfile
The text was updated successfully, but these errors were encountered: