Skip to content
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

Migration instructions from Rainloop. #271

Closed
craftxbox opened this issue Mar 7, 2022 · 10 comments
Closed

Migration instructions from Rainloop. #271

craftxbox opened this issue Mar 7, 2022 · 10 comments
Labels
documentation Improvements or additions to documentation

Comments

@craftxbox
Copy link

Is your feature request related to a problem? Please describe.
There is no guide or FAQ about migrating an existing rainloop instance to snappymail.

Describe the solution you'd like
I would like to see a guide or small write-up on how to properly migrate an existing Rainloop install to Snappymail, As right now It is problematic to not know what to do.

Additional context
In attempting to just 'drop in' replace rainloop, My test install became broken and the control panel inaccessible, Complaining of problems with a custom ChangePasswordSQL plugin that I had wrote.

@craftxbox
Copy link
Author

An additional problem that likely should be split into its own issue if it is not already, I am being asked for a TOTP code for ?admin login, something that Rainloop did not have and as a result I don't have

@the-djmaze
Copy link
Owner

Complaining of problems with a custom ChangePasswordSQL plugin that I had wrote.

Correct, the plugins system has changes.
Read https://github.com/the-djmaze/snappymail/tree/master/plugins#readme

I am being asked for a TOTP code for ?admin login, something that Rainloop did not have and as a result I don't have

You can leave the field empty. You can set it later.
Read here for info: #84 (comment)

@craftxbox
Copy link
Author

Possibly off-topic for this issue, I assume there is no plans to re-add support for external oauth providers like Google's Oauth? I used it pretty heavily, Any materials of where/how I could do this myself if not planned would be appreciated.

@the-djmaze
Copy link
Owner

I assume there is no plans to re-add support for external oauth providers like Google's Oauth?

There's some draft code here:
https://github.com/the-djmaze/snappymail/tree/master/plugins/login-oauth2

@jas8522
Copy link

jas8522 commented Mar 18, 2022

I think this got derailed with specific issues. The original question was: "I would like to see a guide or small write-up on how to properly migrate an existing Rainloop install to Snappymail, As right now It is problematic to not know what to do."

And I, too, am curious as to what the best migration path is. The rough version I'm thinking goes like this:

  1. Clone RainLoop data folder and database to a staging area
  2. Drop snappymail over top of staging area
  3. Resolve plugin incompatibilities manually (replacing rainloop plugins with snappymail equivalents where available)
  4. Re-complete steps on live, with updated plugins folder and configuration files.

Does that work? Is there a better way?

@the-djmaze
Copy link
Owner

Does that work? Is there a better way?

That should probably it.
However, some plugins are not available (converted).

@the-djmaze the-djmaze added the documentation Improvements or additions to documentation label Mar 18, 2022
@jas8522
Copy link

jas8522 commented Mar 19, 2022

Those steps worked well with these alterations/notes:

  • First thing noticed after step 2 was errors about plugin incompatibilities (as expected). I disabled them and replaced them later on with no issues. I only had a couple plugins activated previously, so this was fairly easy.
  • After attempting admin login I received this error in the logs (with unknown error in the UI): 0 - Call to private method RainLoop\\Actions::getAdditionalLogParamsByUserLogin() from context 'RainLoop\\ActionsAdmin' -- the solution was to reset the admin password by commenting out admin_password in application.ini then logging in with the new one it created for me (and changing it, of course)

Question: is the 2fa functionality in RainLoop compatibile with the 2fa plugin for SnappyMail such that if users have already set up 2fa in RainLoop, they'll be able to continue to login after the transition to Snappy, or will the admin need to reset those 2fa codes for them?

@the-djmaze
Copy link
Owner

Question: is the 2fa functionality in RainLoop compatibile with the 2fa plugin for SnappyMail such that if users have already set up 2fa in RainLoop, they'll be able to continue to login after the transition to Snappy, or will the admin need to reset those 2fa codes for them?

In theory it should just work as before.

@jas8522
Copy link

jas8522 commented Mar 21, 2022

I've added my findings / steps above to the wiki: https://github.com/the-djmaze/snappymail/wiki/Installation-instructions

@the-djmaze
Copy link
Owner

I've added my findings / steps above to the wiki

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants