# Two Factor Authentication failed due to not receiving email

**URL:** <https://forums.rocket.chat/t/two-factor-authentication-failed-due-to-not-receiving-email/13465>\
**Category:** Community Support\
**Created:** [March 1, 2022, 7:02pm UTC](https://forums.rocket.chat/t/two-factor-authentication-failed-due-to-not-receiving-email/13465 "2022-03-01T19:02:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysandr](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@ysandr](https://forums.rocket.chat/u/ysandr)\
**Post date:** [March 1, 2022, 7:02pm UTC](https://forums.rocket.chat/t/two-factor-authentication-failed-due-to-not-receiving-email/13465/1 "2022-03-01T19:02:14Z")

</div>

### Description

\<Hello, I’m a regular user of rocketchat and had been suddenly logged out of my laptop randomly. I have tried logging back in but it asks for a two factor authentication that has been sent to my email. However, no email was received even after trying a few more times. Another fact, it’s been a while since I have received an email notification from rocketchat when someone messages me. My email is correct. I’m not sure what to do with information below as I’m just a regular laptop user. Please help. Thank you so much! →

### Server Setup Information

- Version of Rocket.Chat Server: I am not sure where to see that
- Operating System: i7
- Deployment Method: 
- Number of Running Instances: first time
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy: 
- Firewalls involved:

### Any additional Information

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [March 3, 2022, 11:12am UTC](https://forums.rocket.chat/t/two-factor-authentication-failed-due-to-not-receiving-email/13465/2 "2022-03-03T11:12:23Z")

</div>

Hi! Welcome to our forums!!

please, confirm:

- You are not talking about our open server, [http://open.rocket.chat](http://open.rocket.chat)
- You do not have admin access to this server

On both cases, you will need to contact the admin of those server, as they seems to be facing some issue while sending emails or a bug.

For reference, we are investigating a similar issue, that may or may not be related:

> [@Two Factor Authentication via email broken](https://forums.rocket.chat/t/two-factor-authentication-via-email-broken/13302):
>
> Description So I have been trying to set up smtp via my own mail server (see other thread) and in this course I have “locked myself out” of being able to authenticate via code received by email. (Rocket chat is trying to send the code to an email that can’t be reached. But in order to change that email address back to one that can be reached, I need to enter a code that is being sent to the email address that can’t be reached…) I included the following two lines in my docker-compose file to de…
