Snappymail upgrade - with two mail account

What app is this about, and its version: 3.1.4~ynh1
What YunoHost version are you running: 12.1.43
What type of hardware are you using: Virtual machine

Describe your issue

Hello,

After upgrade,
current_version: 2.38.2~ynh4
new_version: 3.1.4~ynh1

when i switch from one mail account to another, a password is ask and it refuse to connect to the second account…

Same error, at every upgrade of snappymail since a long time

What the best way to avoid this issue ?

Thank’s

Share relevant logs or error messages

Account error: Switch vers le compte “xxx@laposte.net” a échoué

Hello,

Please provide more context details - what do you call “switching”/where do you try doing this in Snappymail?

When i’m connected as simple user, in the top right menu, I use to have more than one mail account. So I can have other account easily.

After upgrade, only the first one still working well. When I try the second one, I m ask for a password, and even with password it doesn’t work.

I also have this message, when I trie my passord for the mail account :

“Votre phrase secrète de connexion a été changé. Veuillez fournir votre ancien mot de passe de connexion pour décrypter les données”

“Your login passphrase has changed”

but what login passphrase ?

Hello,

I’ve tried adding an account and I managed to switch from one to the other without issue - couldn’t replicate.

However it seems to be a known issue upstream, that may have happened if you’ve changed your laposte account password typically. If this is your case, at the passphrase prompt, you should enter your old password, not the new one (I guess that will be prompted only once, for Snappymail to update the cryptkey associated to this account).
If this is not your case, maybe you’ll want to try the alternative solution suggested in the upstream issue link (which I did not test), i.e. deleting the .cryptkey file associated to your account.

  1. Backup the app with YNH to be on the safe side
  2. Access your server via SSH and run cd /var/www/snappymail/app/data/_data_/_default_/storage/mydomain.tld/myusername/, where
    • mydomain.tld is the domain on which you have installed Snappymail
    • myusername is the YNH user account name you connect to Snappymail with
  3. From here, running ls -la should list you a .cryptkey file among other ? If so you can remove it with rm .cryptkey then log out from snappymail, log in and try switching from one account to another again (I guess you will be prompted to enter passwords again?).