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

Test all email SMTP settings, which ones work #3702

Closed
xet7 opened this issue Apr 8, 2021 · 6 comments
Closed

Test all email SMTP settings, which ones work #3702

xet7 opened this issue Apr 8, 2021 · 6 comments

Comments

@xet7
Copy link
Member

xet7 commented Apr 8, 2021

https://github.com/wekan/wekan/wiki/Azure#mailjet-mail-from

@xet7 xet7 changed the title Check does sending email with Mailjet work at Azure. Someone reported it not working. Test all email STMP settings, which ones work Apr 14, 2021
@xet7
Copy link
Member Author

xet7 commented Apr 14, 2021

  • Changing from Mailjet to O365
  • Gmail / Google Workplace
  • AWS SES
  • etc

at https://nodemailer.com/about/

@ertanalytics
Copy link

ertanalytics commented Jun 23, 2021

Thanks @xet7 - This was originally reported by me over chat, thanks for creating this one.

In our case, we found that the mailjet account got disabled somehow and wanted to switch to O365 since the mailjet Azure marketplace item was not longer available and our users wanted the email alerts.

image

We set the wekan URL from the guide below:

smtp://user:password@smtp.office365.com:587?ignoreTLS=false&tls={rejectUnauthorized:false}&secure=true'

to url encoded format:
snap set wekan mail-url=‘smtp://[NoReplyUser]%40[O365hosteddomain].com:[URLencodedpassword]@smtp.office365.com:587?ignoreTLS=false%26tls={rejectUnauthorized:false}%26secure=true’

In each card move that showed in the logs (journalctl -u snap.wekan.wekan
), we saw:

Jun 23 21:57:01 wekanvm wekan.wekan[253351]: ====== BEGIN MAIL #0 ======
Jun 23 21:57:01 wekanvm wekan.wekan[253351]: (Mail not sent; to enable sending, set the MAIL_URL environment variable.)

Will continue to monitor this open issue.

@xet7
Copy link
Member Author

xet7 commented Jun 24, 2021

@ertanalytics

Thanks! I have only tested that AWS SES works:
https://github.com/wekan/wekan/wiki/Troubleshooting-Mail#example-aws-ses

I will test O365 etc all that are mentioned at https://github.com/wekan/wekan/wiki/Troubleshooting-Mail

@xet7
Copy link
Member Author

xet7 commented Jul 16, 2021

With some test code, I figured out how to send email with O365. I added issue to meteor/meteor#11544 asking, should those changes be in Meteor email package itself, or should I fork that package.

At Wekan, email sending code is here:

~/repos/wekan$ ./find.sh Email.send

./models/settings.js:      Email.send({
./models/settings.js:        Email.send({
./models/users.js:        Email.send({
./server/notifications/email.js:        Email.send({
./server/rulesHelper.js:        Email.send({

@xet7
Copy link
Member Author

xet7 commented Aug 21, 2021

Doh, still seems to require MAIL_URL. I'll try to figure out how to fix.

@xet7
Copy link
Member Author

xet7 commented Aug 26, 2021

Actually, when I tested this, it did work once. I added more info to https://github.com/wekan/wekan/wiki/Troubleshooting-Mail . Please test. If there are problems, please add new issue.

@xet7 xet7 closed this as completed Aug 26, 2021
@xet7 xet7 changed the title Test all email STMP settings, which ones work Test all email SMTP settings, which ones work Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants