i installed modoboa and imap migration used :pip install modoboa-imap-migration.
imap migrations tab doesn't add in toolbar, I run manually via below command:
cd /usr/local/lib/python3.9/dist-packages/
cp -r modoboa_imap_migration /srv/modoboa/env/lib/python3.9/site-packages/
cp -r modoboa_imap_migration-1.4.1.dist-info/ /srv/modoboa/env/lib/python3.9/site-packages/
and then restart uwsgi.
imap migration tab added.
if i installed OfflineIMAP , when i used old user name and password i get this error: Your username and password didn't match. Please try again.
if i don't install OfflineIMAP, i can login with my old username , but my inbox not sync.
i run this command for offlineimap :
python3 generate_offlineimap_config.py
and get this error:
Traceback (most recent call last):
File "/srv/modoboa/env/lib/python3.9/site-packages/modoboa_imap_migration/management/commands/generate_offlineimap_config.py", line 13, in
from modoboa_imap_migration.models import Migration
File "/usr/local/lib/python3.9/dist-packages/modoboa_imap_migration/models.py", line 7, in
from modoboa.admin.models import Mailbox
File "/usr/local/lib/python3.9/dist-packages/modoboa/admin/models/init.py", line 3, in
from .alarm import Alarm
File "/usr/local/lib/python3.9/dist-packages/modoboa/admin/models/alarm.py", line 19, in
class Alarm(models.Model):
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 108, in new
app_config = apps.get_containing_app_config(module)
File "/usr/local/lib/python3.9/dist-packages/django/apps/registry.py", line 253, in get_containing_app_config
self.check_apps_ready()
File "/usr/local/lib/python3.9/dist-packages/django/apps/registry.py", line 135, in check_apps_ready
settings.INSTALLED_APPS
File "/usr/local/lib/python3.9/dist-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/usr/local/lib/python3.9/dist-packages/django/conf/init.py", line 63, in _setup
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
i installed modoboa and imap migration used :pip install modoboa-imap-migration. imap migrations tab doesn't add in toolbar, I run manually via below command:
cd /usr/local/lib/python3.9/dist-packages/
cp -r modoboa_imap_migration /srv/modoboa/env/lib/python3.9/site-packages/ cp -r modoboa_imap_migration-1.4.1.dist-info/ /srv/modoboa/env/lib/python3.9/site-packages/ and then restart uwsgi. imap migration tab added. if i installed OfflineIMAP , when i used old user name and password i get this error: Your username and password didn't match. Please try again. if i don't install OfflineIMAP, i can login with my old username , but my inbox not sync.
i run this command for offlineimap : python3 generate_offlineimap_config.py and get this error:
Traceback (most recent call last): File "/srv/modoboa/env/lib/python3.9/site-packages/modoboa_imap_migration/management/commands/generate_offlineimap_config.py", line 13, in
from modoboa_imap_migration.models import Migration
File "/usr/local/lib/python3.9/dist-packages/modoboa_imap_migration/models.py", line 7, in
from modoboa.admin.models import Mailbox
File "/usr/local/lib/python3.9/dist-packages/modoboa/admin/models/init.py", line 3, in
from .alarm import Alarm
File "/usr/local/lib/python3.9/dist-packages/modoboa/admin/models/alarm.py", line 19, in
class Alarm(models.Model):
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 108, in new
app_config = apps.get_containing_app_config(module)
File "/usr/local/lib/python3.9/dist-packages/django/apps/registry.py", line 253, in get_containing_app_config
self.check_apps_ready()
File "/usr/local/lib/python3.9/dist-packages/django/apps/registry.py", line 135, in check_apps_ready
settings.INSTALLED_APPS
File "/usr/local/lib/python3.9/dist-packages/django/conf/init.py", line 82, in getattr
self._setup(name)
File "/usr/local/lib/python3.9/dist-packages/django/conf/init.py", line 63, in _setup
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.