Skip to content

🐛: Recreated account cannot log in until server is restarted #1469

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

Open
1 task done
s-aga-r opened this issue May 5, 2025 · 0 comments
Open
1 task done

🐛: Recreated account cannot log in until server is restarted #1469

s-aga-r opened this issue May 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@s-aga-r
Copy link
Contributor

s-aga-r commented May 5, 2025

What happened?

After deleting and recreating an account in Stalwart Mail, I'm unable to log in with the newly created account credentials. Any authentication attempts (e.g., via IMAP, JMAP, or other protocols) fail with a 401 Unauthorized or similar error. However, once the server is restarted, the same credentials work as expected.

How can we reproduce the problem?

Steps to Reproduce:

  1. Create an account via POST /api/principal.

  2. Delete the account.

  3. Recreate the same account.

  4. Try to log in using the new credentials — login fails.

    Image

  5. Restart the server.

  6. Try to log in again — login succeeds.

    Image

Version

v0.11.x

What database are you using?

None

What blob storage are you using?

None

Where is your directory located?

None

What operating system are you using?

None

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@s-aga-r s-aga-r added the bug Something isn't working label May 5, 2025
@s-aga-r s-aga-r changed the title 🐛: Recreated account returns 401 Unauthorized on JMAP endpoint until server is restarted 🐛: Recreated account cannot log in until server is restarted May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant