Password reset emails not working
When users try to reset their password via the "forgot your password" link, they see an error in their browser stating "Error trying to send email: Message delivery failed". The log only indicates this error:
[34mI20170201-17:55:22.254(0) [34mMeteor ➔ method sendForgotPasswordEmail -> userId: null , arguments: { '0': '<email_address_removed>' }
The SMTP settings have been tested and are functional (test emails work, new account notifications work).
Possibly related, when an admin creates a new account, the user cannot login using the password that was generated. If the password is manually set, the user still cannot login using the manual password.
Rocket.Chat Version: 0.50.1 Running Instances: 1 DB Replicaset OpLog: Disabled Node Version: runtime v.4.7.1
Password reset is broken for certain providers for us as well. It works with gmail but not hotmail.
Can you give more info? Are the users form a specific domain?
Yes, the accounts are from the same domain, as is the main admin account. This domain is defined in the accepted domains setting.
@RocketChat/core ideas?
Mine is broken as well. I got this error:
Error trying to send email: Mail from command failed -501 Syntax error in parameters
SMTP test is working but reset password shows above error. I use sendgrid and docker.
Edit Another error appears when i try to verify other users as admin
Error trying to send email: connect ECONNREFUSED 85.128.128.99
Password reset works here with 0.52 and our own SMTP server. However:
- Sent link is neither clickable nor translated nor nicely formatted.
- New password given needed to contain at least one number. Where are the password rules defined?
Can you detail if you set up MAIL_URL or Admin settings for SMTP or both?
I've since rebuilt the system from scratch using a conventional build rather than docker and it seems to be OK now.
Thank you for all your responses. I have version 0.53.0 now and it seems work, but...
We have sent you an email with password reset instruction. If you do not receive an email shortly, please come back and try again.
i have tried couple times but i still don't get any email even i got above message
@engelgabriel Mine isn't working now (it used to work long time ago. just received a report from user).
Snap Rocket.Chat Version: 0.53.0 NodeJS Version: 4.7.3 - x64 Platform: linux ReplicaSet OpLog: Disabled Commit Hash: cbdc26ded8 Commit Branch: HEAD
Log
rocketchat_lib rocketchat_lib.js:1092 Meteor ➔ method sendForgotPasswordEmail -> userId: null , arguments: { '0': '[email protected]' }
Forgot password: Custom is False The SMTP setting is working OK. I received an email from Test SMTP Settings button
Error message:

Ok i finally found the problem. This is message that i got in my sendgrid from each email activity that had been blocked from sendgrid
Reason [XXXXXXX] Our system has detected that this message is not RFC 5322 compliant: 'From' header is missing. To reduce the amount of spam sent to Gmail, this message has been blocked. Please visit https://support.google.com/mail/?p=RfcMessageNonCompliant and review RFC 5322 specifications for more information.XXXXX - gsmtp
So... after i changed my email to another email EXCEPT GMAIL, i finally see all response messages from my rocket chat!!!
@cescgie You're saying that RocketChat password reset email module might not support sending email from Gmail? Because I can send test email from SMTP setting page.
It appears this is just a matter of an email header missing. Do you have a valid from address set @cescgie?
@geekgonecrazy Hi, thanks for the reply. Can you also check my from address below.

The test email works fine with the configuration but not the forget password email.
Thanks
Does the verification email send? When you sign up for a new account? You'll have to have verify emails turned on I believe
@geekgonecrazy The Email Verification doesn't send to new user. Only welcome email with password was sent to user and the user can't login with the password (maybe it's because the Email Verification step doesn't work)
Please suggest.
@RocketChat/core it appears that the emails that are sent via the accounts package are missing the from header we set in settings. Ideas?
I'm guessing the others work because we don't send via the account package.
@teamsoo Can you try restarting your server after changing your emails details and try sending a forgot password email
@teamsoo actually i only set my smtp via docker-compose.yml. Yes. I don't set my EMAIL FROM header because as far as i know there is no option to set your email from in rocket chat docker-compose.yml
@pierreozoux I have both docker and snap version of rocket chat installed on 2 different machines. I tried restarting both and the forgot password still doesn't work on both instances.
The following error message keeps showing

Is it works on your system? Are you using Gmail?