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

IMAPsync configfile configuration and generation #3245

Open
olaf7 opened this issue May 2, 2024 · 5 comments
Open

IMAPsync configfile configuration and generation #3245

olaf7 opened this issue May 2, 2024 · 5 comments
Labels
Milestone

Comments

@olaf7
Copy link

olaf7 commented May 2, 2024

Manual installation (not using installer) on Debian Stable.
In any v2 version the IMAPmigration lacks the possibility to configure what needs to be configured for migration resulting in the creation of a near empty .offlineimparc file which in turn errors the migration process.

I am going to add some screenshots v1 panel and v2 panel and comment below.

image

image

image

image

Problems:

  • no option to define host, port, domain, credentials (or other required or optional settings)
  • mismatch between v1 and v2 panel settings (but this is the case in lots of settings in my instance). Here: enable imapsync, create folders
  • when changing and saving the setting to make imapsync active (enable) the change in v2 is not applied when checking the next time Iogin and check the setting

Resulting .offlineimaprc :
[general] accounts =

@Spitfireap Spitfireap self-assigned this May 2, 2024
@Spitfireap Spitfireap added this to the 2.3.0 milestone May 2, 2024
@Spitfireap Spitfireap added the bug label May 2, 2024
@tonioo
Copy link
Member

tonioo commented May 14, 2024

@olaf7 The synchronization issue is pretty strange and I don't reproduce it...
About offlineimap settings, once you have enabled the feature, you need to create at least one provider (gmail.com for example) where you'll be able to fill-in connection parameters and more.

@olaf7
Copy link
Author

olaf7 commented May 14, 2024

As in editing the almost empty config file provided by hand to suit my needs? Or will I be able to edit and or select anything from Modoboa/GUI once the config file is provided with a provider? A webform to supply details/parameters would be nice as now the configfile is not much more than a placeholder/marker.
As you can see my generated config file is far off from the template as provided by https://github.com/modoboa/modoboa/blob/master/modoboa/imap_migration/templates/imap_migration/offlineimap.conf

@tonioo
Copy link
Member

tonioo commented May 16, 2024

Have you defined a provider and a migration yet?

@olaf7
Copy link
Author

olaf7 commented May 16, 2024

Please note: effectively this issue should be split into two issues imho. My bad. 1. mismatch settings v1/v2 and 2. IMAP migration
Also: can you comment on how I can help debug this as clearly something is wrong (as can be seen by screenshots), but you cannot reproduce.

To answer your question regarding the imap_sync issue: I created a .offlineimaprc based on the template, but it fails for a couple of reasons:

  1. IIRC no domain and accounts should be created in advance. There is no existing domain, so no domain admin. Therefor I need to use Modoboa Administrator. This user has no postbox, so no Dovecot login, so offlineimap fails.
  2. You do not know upfront what the remote IMAP server type is and what configuration is supported / what tweaking is required. Obviously I know what the server is in my case, but in general this is an issue. Settings can currently not be tweaked from within Modoboa.

After creation of the file nothing has changed to the GUI, so the screenshots provided here are still as it is. So editing is not possible. I assume this is by design?

Also note (more an OfflineIMAP issue, and something not easily to be avoided): passwords will be stored unencrypted in a file on disk.

@Spitfireap
Copy link
Member

Please create another issue for the sync issue and keep this one for generation.

@Spitfireap Spitfireap removed their assignment May 23, 2024
@Spitfireap Spitfireap modified the milestones: 2.3.0, 2.4.0 Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants