A script to migrate from PostfixAdmin to Modoboa
Project description
A script to migrate from PostfixAdmin to Modoboa. It has been tested against versions 2.3.3 and upper.
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" : "<engine>", "NAME" : "<database name>", "USER" : "<database user>", "PASSWORD" : "<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 <modoboa_instance_dir> $ python manage.py migrate_from_postfixadmin -s <password scheme>
<password scheme> 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 variable
You should be able to connect to Modoboa using the same credentials you were using to connect to PostfixAdmin.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file modoboa-pfxadmin-migrate-1.1.2.tar.gz
.
File metadata
- Download URL: modoboa-pfxadmin-migrate-1.1.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b3950a7c81a363a6714c0c2b0985a91ee2a2368f2ee0528d473185fce2b9a6 |
|
MD5 | 1593053e7ba6a0987af400b764a03ab6 |
|
BLAKE2b-256 | b841eacc99423441340501d17508f47356b44a0d313d1560c12f61eeed7752fb |
File details
Details for the file modoboa_pfxadmin_migrate-1.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: modoboa_pfxadmin_migrate-1.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f037bcc91bc1ffe2fb2ba988d44c4914ceca8280db38b192973673794150aad |
|
MD5 | c7d5b2dfaea4366a370301e4e3296948 |
|
BLAKE2b-256 | 8fcaef74a950407ec0b4c25ca899735c6e255f1f03213cedeb86a4e532a78bff |