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.
Metadata
Release files for modoboa-pfxadmin-migrate 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modoboa-pfxadmin-migrate-1.1.2.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modoboa_pfxadmin_migrate-1.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / modoboa-pfxadmin-migrate-1.1.2.tar.gz
| Download URL | modoboa-pfxadmin-migrate-1.1.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98b3950a7c81a363a6714c0c2b0985a91ee2a2368f2ee0528d473185fce2b9a6
|
|
BLAKE2b-256 checksum How to use checksums |
b841eacc99423441340501d17508f47356b44a0d313d1560c12f61eeed7752fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / modoboa_pfxadmin_migrate-1.1.2-py2.py3-none-any.whl
| Download URL | modoboa_pfxadmin_migrate-1.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0f037bcc91bc1ffe2fb2ba988d44c4914ceca8280db38b192973673794150aad
|
|
BLAKE2b-256 checksum How to use checksums |
8fcaef74a950407ec0b4c25ca899735c6e255f1f03213cedeb86a4e532a78bff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|