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

Can STARTTLS be configured in the email setup ? #2502

Closed
erionsina opened this issue Jan 18, 2019 · 13 comments
Closed

Can STARTTLS be configured in the email setup ? #2502

erionsina opened this issue Jan 18, 2019 · 13 comments
Assignees
Labels
documentation Improvements or additions to the documentation. good first issue Opportunity for newcoming contributors. help wanted Extra attention is needed.
Milestone

Comments

@erionsina
Copy link

erionsina commented Jan 18, 2019

Hi guys,
thank you for this platform. I'm having some issues during the configuration of the email
Can STARTTLS be configured in the email setup ?
Thanks

@erionsina erionsina changed the title Does weblate allow Starttls on email configuration ? Can STARTTLS be configured in the email setup ? Jan 18, 2019
@nijel nijel added the question This is more a question for the support than an issue. label Jan 19, 2019
@nijel
Copy link
Member

nijel commented Jan 19, 2019

Yes, just use EMAIL_USE_TLS.

@XVII
Copy link

XVII commented Jan 20, 2019

I get Can not send email (SMTP AUTH extension not supported by server.), please check EMAIL_* settings

But I'm not sure if it's related -- I had thought email_use_tls might not have been working.

Using Office 365 @erionsina ?

@erionsina
Copy link
Author

Yes, just use EMAIL_USE_TLS.

Thank you, it worked.

@erionsina
Copy link
Author

I get Can not send email (SMTP AUTH extension not supported by server.), please check EMAIL_* settings

But I'm not sure if it's related -- I had thought email_use_tls might not have been working.

Using Office 365 @erionsina ?

I'm using private mail server for this not Office365

@hhyyrylainen
Copy link

It would be really handy if this was mentioned in the documentation that weblate links to when you get an email send error: https://docs.weblate.org/en/weblate-4.3.2/admin/install.html#out-mail

@nijel
Copy link
Member

nijel commented Nov 13, 2020

@hhyyrylainen patches to improve the documentation are always welcome ;-)

@ilkarataev
Copy link

ilkarataev commented Nov 20, 2020

I am using last docker-compose and have the same issu but EMAIL_USE_TLS=TRUE didn't help me

weblate_1 | check stderr | CRITICALS: weblate_1 | check stderr | ?: (weblate.E003) Cannot send e-mail (SMTP AUTH extension not supported by server.), please check EMAIL_* settings. weblate_1 | check stderr | HINT: https://docs.weblate.org/en/weblate-4.3.2/admin/install.html#out-mail
Fix the problem
WEBLATE_EMAIL_PORT=587
WEBLATE_EMAIL_USE_TLS=True

@nijel nijel added documentation Improvements or additions to the documentation. good first issue Opportunity for newcoming contributors. help wanted Extra attention is needed. and removed question This is more a question for the support than an issue. labels Nov 20, 2020
@nijel nijel reopened this Nov 20, 2020
@nijel nijel added this to the 4.4 milestone Nov 20, 2020
@nijel nijel self-assigned this Nov 25, 2020
@nijel nijel closed this as completed in ccd2303 Nov 25, 2020
@github-actions
Copy link

Thank you for your report, the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@BasicPro
Copy link

BasicPro commented Feb 6, 2021

Hey guys, I get this error too, I've tried everything in this posts and others with no success. I'm using Docker. Everything else is working perfectly.

These are some of my email settings:

environment:
     - WEBLATE_ENABLE_HTTPS=1
     - WEBLATE_EMAIL_HOST=mail.masteringbox.com
     - WEBLATE_EMAIL_HOST_USER=weblate
     - WEBLATE_EMAIL_HOST_PASSWORD=<password>
     - WEBLATE_EMAIL_HOST_PORT=587
     - WEBLATE_EMAIL_USE_TLS=1
     - WEBLATE_IP_BEHIND_REVERSE_PROXY=1
     - WEBLATE_SECURE_SSL_REDIRECT=1

The error:

weblate_1   | check stderr | CRITICALS:
weblate_1   | check stderr | ?: (weblate.E003) Cannot send e-mail (STARTTLS extension not supported by server.), please check EMAIL_* settings.
weblate_1   | check stderr | 	HINT: https://docs.weblate.org/en/weblate-4.4.2/admin/install.html#out-mail

This is the mail log in the smtp server

Feb  6 13:47:02 mail postfix/smtpd[17060]: connect from sandbox.masteringbox.com[136.243.71.4]
Feb  6 13:47:02 mail postfix/smtpd[17060]: lost connection after EHLO from sandbox.masteringbox.com[136.243.71.4]
Feb  6 13:47:02 mail postfix/smtpd[17060]: disconnect from sandbox.masteringbox.com[136.243.71.4] ehlo=1 commands=1

@nijel
Copy link
Member

nijel commented Feb 6, 2021

STARTTLS extension not supported by server

Why do you enable WEBLATE_EMAIL_USE_TLS when your server does not support it?

@BasicPro
Copy link

BasicPro commented Feb 7, 2021

Yeah, that is true. I was getting this error which I get with TLS deactivated:

(weblate.E003) Cannot send e-mail (SMTP AUTH extension not supported by server.), please check EMAIL_* settings.
weblate_1   | check stderr | 	HINT: https://docs.weblate.org/en/weblate-4.4.2/admin/install.html#out-mail

And that url said:
"In case you get error about not supported authentication (for example SMTP AUTH extension not supported by server), it is most likely caused by using insecure connection and server refuses to authenticate this way. Try enabling EMAIL_USE_TLS in such case."

Which is why I tried activating it and then tried other things and didn't put it back to 0.

My mailserver uses STARTTLS in port 587 which is working fine.

@nijel
Copy link
Member

nijel commented Feb 7, 2021

Most of the servers refuse authentication without SSL, so that's kind of expected.

Going through your configuration, there is no WEBLATE_EMAIL_HOST_PORT, it should be WEBLATE_EMAIL_PORT.

@BasicPro
Copy link

BasicPro commented Feb 7, 2021

Thanks @nijel ! That was the problem. However, I had to turn back on WEBLATE_EMAIL_USE_TLS=1

environment:
- WEBLATE_ENABLE_HTTPS=1
- WEBLATE_EMAIL_HOST=mail.masteringbox.com
- WEBLATE_EMAIL_HOST_USER=weblate
- WEBLATE_EMAIL_HOST_PASSWORD=
- WEBLATE_EMAIL_PORT=587
- WEBLATE_EMAIL_USE_TLS=1

That worked in the end.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to the documentation. good first issue Opportunity for newcoming contributors. help wanted Extra attention is needed.
Projects
None yet
Development

No branches or pull requests

6 participants