# Logged out and cant login - emails not sending?

**URL:** https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506
**Category:** Support
**Created:** [March 30, 2025, 10:34am UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506 "2025-03-30T10:34:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 10:34am UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/1 "2025-03-30T10:34:42Z")

</div>

Hi,

I logged out of my admin account in order to check what the site looked like as a guest and when I tried to log back in it said that an activation email was sent to my inbox. I looked in my inbox and there was nothing there. I tried this three times with no prevail.

I also tried login with link, forgot password and /u/admin-login but no email are arriving to my admin inbox.

There might be something wrong with my admin email because Backups were not sent to my email like a week ago so I checked and it turned out that when I setup the forum I used two different emails. One email during the server setup and one email as the admin email.

In order to fix that problem I [changed my email manually in the server](https://meta.discourse.org/t/change-staff-email-address-from-console/42062) so both the admin email and the server email were the same one and the emails (backups) started working again.

However the problem seems to not be fixed because I now cant login without the site requiring an activation email (maybe because I changed the email?) and the forgotten password, /u/admin-login and invite link does not work.

If I remember correctly it said something regarding SMTP in /sidekiq/retries but I can not access this page anymore because I am not logged in to my admin account.

Best regards  
Olle

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 7:23pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/3 "2025-03-30T19:23:28Z")

</div>

I also tried to login through mobile but it did not work.

I can not access my admin account because of the emails are not sending and it requires an activation of my admin account.

I can login to a normal account I created a few weeks ago, but that account have no access to the admin.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 30, 2025, 7:28pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/4 "2025-03-30T19:28:20Z")

</div>

Would `https://your-forum/u/admin-login` work?

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 7:31pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/5 "2025-03-30T19:31:29Z")

</div>

Hi Jagster,

No /u/admin-login does not work. No email is being delievered.

Best regards  
Olle

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 30, 2025, 7:32pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/6 "2025-03-30T19:32:43Z")

</div>

Oh damn… of course 🤦‍♂️ I’m a bit slow today…

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 7:35pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/7 "2025-03-30T19:35:41Z")

</div>

That is alright I appreciate any help. I cant work on my forum at all because of this lockout and I am used to working on it everyday. [Safe mode](https://meta.discourse.org/t/53504?silent=true) does not work either because in order to use [safe mode](https://meta.discourse.org/t/53504?silent=true) you need to be logged in as admin.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 30, 2025, 7:36pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/8 "2025-03-30T19:36:57Z")

</div>

> [@Olle11](#):
>
> and it requires an activation of my admin account.

Maybe it can help if you need to activate the account from the console:

> [@How do I activate a user account via console?](https://meta.discourse.org/t/how-do-i-activate-a-user-account-via-console/286191/2):
>
> I don’t think there is a direct command for that, but you can use the Rails console. First, you enter into it: cd /var/discourse ./launcher enter app rail c Then, you find the user by its username (replace username\_to\_activate) and activate it. User.find\_by(username: "username\_to\_activate").activate You can type exit two times to quit. You should see that action in the log: [image]

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 30, 2025, 7:41pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/9 "2025-03-30T19:41:28Z")

</div>

Or perhaps this:

```plaintext
./launcher enter app
rake admin:create

```

Because when used email that is already in use for an admin it will ask if wanted to give new password.

Hopefully I don’t hallucinate this time 🫣

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 7:42pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/10 "2025-03-30T19:42:09Z")

</div>

Thank you. This should at least let me login and let me check the logs on Sidekiq as to why the emails are not sending.

I will come back here when I have managed to log in as an admin and checked the logs.

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 7:43pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/11 "2025-03-30T19:43:03Z")

</div>

This might also be of help, thank you, I will come back here when I have (hopefully) managed to log in and can go on towards the next step.

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 30, 2025, 9:05pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/12 "2025-03-30T21:05:07Z")

</div>

I tried this in console and was met by this message, what am I doing wrong?

![image](https://global.discourse-cdn.com/meta/original/4X/a/7/c/a7cd3df9a7f49b8550e586ee14d04cbcd0c69437.png)

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [March 30, 2025, 9:09pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/13 "2025-03-30T21:09:39Z")

</div>

Are you sure you are in the right folder? The one with app.yml in it?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 30, 2025, 9:16pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/14 "2025-03-30T21:16:03Z")

</div>

`rails` with s.  
There is a typo it seems.

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 31, 2025, 11:31am UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/15 "2025-03-31T11:31:44Z")

</div>

Yippie rails c worked to activate my admin account.

Now what is remaining is to find out why the emails are not sending, this is what I recieve at Sidekiq/retries:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/d/f1df37135c284b110337b9daaf5877f5f4fa08b3.png)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 31, 2025, 11:44am UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/16 "2025-03-31T11:44:53Z")

</div>

`SMTPAuthenticationError: 535 Incorrect authentication`

Are you sure that your email credentials are correct?

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 31, 2025, 12:00pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/17 "2025-03-31T12:00:19Z")

</div>

I think it is the correct user\_name (the email) according to admin\>Server setup & logs

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [March 31, 2025, 12:10pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/18 "2025-03-31T12:10:57Z")

</div>

try sending an email using the test button  
 ![image](https://global.discourse-cdn.com/meta/original/4X/c/0/9/c09cfeca4a88111707625b4afd18bd599cea9789.png)  
found here

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/4/b/64b7201c98c9b0821b723a81f2f58c6343543a0d.png)

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 31, 2025, 12:12pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/19 "2025-03-31T12:12:38Z")

</div>

This is not working either. No emails are being sent

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [March 31, 2025, 12:34pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/20 "2025-03-31T12:34:12Z")

</div>

> [@Olle11](#):
>
> not working either

I figured but usually it pops up a dialog box the tells you what the error is

---

<div class="post-metadata">

### Author: ![Olle11](https://avatars.discourse-cdn.com/v4/letter/o/cdc98d/32.png) [@Olle11](https://meta.discourse.org/u/Olle11)
#### Post date: [March 31, 2025, 12:49pm UTC](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506/21 "2025-03-31T12:49:44Z")

</div>

Oh it says the very same thing about the SMTP:

535 Incorrect authentication data

[Next page](https://meta.discourse.org/t/logged-out-and-cant-login-emails-not-sending/359506.md?page=2)
