the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
924 stars 109 forks source link

Two authentication systems ? Nextcloud + Snappymail login #1610

Closed mmallejac closed 4 weeks ago

mmallejac commented 1 month ago

Hello !

This is related to #1602

I am under the impression that there are two authentication systems when Snappymail is used with Nextcloud.

With the login issue revealed with #1602 I have multiple cases, difficult to understand:

Wouldn't it be good to have only the Nextcloud authentication when Snappymail is used in conjunction with Nextcloud ?

Not sure, but I am under the impression that the Snappymail authentication page uses a client side mechanism, which goes against the flexibility: a user is ok with one of his setup (computer / browser) but not with another one.

Sorry if this is not very clear, just trying to understand what's under the hood !

the-djmaze commented 1 month ago

You login on IMAP server using name and mypassword. You login on Nextcloud as name and mypassword. Now SnappyMail can login easily.

You login on IMAP server using name@company and mypassword. Your Nextcloud account primary email address is name@company and mypassword. Now SnappyMail can login easily.

In any other case they are different and there's no way to match them. So you go to Nextcloud -> User Settings -> Additional and fill in your IMAP credentials. Now when you login in Nextcloud, under the hood SnappyMail logs in using the provided credentials. But when that login fails it will remove the provided password. Why? Because else the IMAP server is flooded with failed login attempts.