https://github.com/modoboa/modoboa-pfxadmin-migrate
A script to migrate from PostfixAdmin to Modoboa
https://github.com/modoboa/modoboa-pfxadmin-migrate
email hosting migration modoboa postfixadmin
Last synced: about 1 month ago
JSON representation
A script to migrate from PostfixAdmin to Modoboa
- Host: GitHub
- URL: https://github.com/modoboa/modoboa-pfxadmin-migrate
- Owner: modoboa
- License: mit
- Created: 2015-04-15T08:39:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T09:18:07.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T11:44:23.857Z (about 1 year ago)
- Topics: email, hosting, migration, modoboa, postfixadmin
- Language: Python
- Size: 32.2 KB
- Stars: 10
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
modoboa-pfxadmin-migrate
========================|landscape|
A script to migrate from PostfixAdmin to Modoboa. It has been tested
against versions 2.3.3 and upper... note::
This script is only suitable for a new Modoboa installation.
Installation
------------Install this extension system-wide or inside a virtual environment by
running the following command::$ pip install modoboa-pfxadmin-migrate
Edit the ``settings.py`` file of your modoboa instance and add
``modoboa_pfxadmin_migrate`` inside the ``MODOBOA_APPS`` variable like this::MODOBOA_APPS = (
# End of list
'modoboa_pfxadmin_migrate',
)Then, add a new database connection named ``pfxadmin`` into the
``DATABASES`` variable corresponding to your PostfixAdmin setup::DATABASES = {
"default" : {
# default connection definition
},
"pfxadmin" : {
"ENGINE" : "",
"NAME" : "",
"USER" : "",
"PASSWORD" : "",
}
}This connection should correspond to the one defined in PostfixAdmin's
configuration file.Run the script
--------------You are now ready to start the migration so run the following commands::
$ cd
$ python manage.py migrate_from_postfixadmin -s```` must be replaced by the scheme used within
postfixadmin (``crypt`` most of the time).Depending on how many domains/mailboxes your existing setup contains,
the migration can be long. Just wait for the script's ending.The procedure is over, edit the ``settings.py`` file and:
* remove the ``pfxadmin`` database connection from the ``DATABASES``
variable
* remove ``'modoboa_pfxadmin_migrate'`` from the
``MODOBOA_APPS`` variableYou should be able to connect to Modoboa using the same credentials
you were using to connect to PostfixAdmin... |landscape| image:: https://landscape.io/github/modoboa/modoboa-pfxadmin-migrate/master/landscape.svg?style=flat
:target: https://landscape.io/github/modoboa/modoboa-pfxadmin-migrate/master
:alt: Code Health