[GH-ISSUE #2979] can't get manage.py generate_offlineimap_config to generate any accounts in .offlineimaprc #1543

Closed
opened 2026-02-27 11:17:42 +03:00 by kerem · 3 comments
Owner

Originally created by @louis-eyond on GitHub (Apr 5, 2021).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2979

I have tried logging in with a couple of new accounts for modoboa, existing accounts on the old server. The accounts get created (the first account creating the Domain entry), but they don't seem to create the migration script. Each time I run the manage.py generate_offlineimap_config cron script, it come back with an .offlineimaprc that is empty:

[general]
accounts =
pythonfile = ~/.offlineimap.py

I've tried deleting the accounts and logging in again; I've also tried deleting the domain and logging in with the accounts again.

  1. Is there a manual way that I can tag these accounts for migration?
  2. Is there some other suggested path to getting these accounts to automatically generate the correct .offlineimaprc?
Originally created by @louis-eyond on GitHub (Apr 5, 2021). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2979 I have tried logging in with a couple of new accounts for modoboa, existing accounts on the old server. The accounts get created (the first account creating the Domain entry), but they don't seem to create the migration script. Each time I run the _manage.py generate_offlineimap_config_ cron script, it come back with an .offlineimaprc that is empty: [general] accounts = pythonfile = ~/.offlineimap.py I've tried deleting the accounts and logging in again; I've also tried deleting the domain and logging in with the accounts again. 1. Is there a manual way that I can tag these accounts for migration? 2. Is there some other suggested path to getting these accounts to automatically generate the correct .offlineimaprc?
kerem 2026-02-27 11:17:42 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@tonioo commented on GitHub (Apr 6, 2021):

Did you create accounts manually? Or were they created by the authentication backend?

<!-- gh-comment-id:1521984524 --> @tonioo commented on GitHub (Apr 6, 2021): Did you create accounts manually? Or were they created by the authentication backend?
Author
Owner

@louis-eyond commented on GitHub (Apr 6, 2021):

Created by the backend... I had 2 email addresses at different domains, e.g. test@one.com and test@two.com. one.com was a migrating domain, while two.com was not. Once I removed test@two.com and deleted then recreated test@one.com, the IMAP Migration entry was correctly made.

I am looking at modoboa_imap_migration/auth_backends.py, perhaps it isn't taking into account the same address at 2 different domains?

<!-- gh-comment-id:1521984535 --> @louis-eyond commented on GitHub (Apr 6, 2021): Created by the backend... I had 2 email addresses at different domains, e.g. test@one.com and test@two.com. _one.com_ was a migrating domain, while _two.com_ was not. Once I removed _test@two.com_ and deleted then recreated _test@one.com_, the IMAP Migration entry was correctly made. I am looking at modoboa_imap_migration/auth_backends.py, perhaps it isn't taking into account the same address at 2 different domains?
Author
Owner

@stale[bot] commented on GitHub (Jul 15, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:1636632747 --> @stale[bot] commented on GitHub (Jul 15, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1543
No description provided.