{"id":19584130,"url":"https://github.com/modoboa/modoboa-pfxadmin-migrate","last_synced_at":"2025-09-17T21:08:51.571Z","repository":{"id":30429812,"uuid":"33982786","full_name":"modoboa/modoboa-pfxadmin-migrate","owner":"modoboa","description":"A script to migrate from PostfixAdmin to Modoboa","archived":false,"fork":false,"pushed_at":"2021-06-28T09:18:07.000Z","size":33,"stargazers_count":10,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-01T11:44:23.857Z","etag":null,"topics":["email","hosting","migration","modoboa","postfixadmin"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modoboa.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-15T08:39:22.000Z","updated_at":"2021-06-28T09:13:19.000Z","dependencies_parsed_at":"2022-09-07T12:12:04.751Z","dependency_job_id":null,"html_url":"https://github.com/modoboa/modoboa-pfxadmin-migrate","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-pfxadmin-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-pfxadmin-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-pfxadmin-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-pfxadmin-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modoboa","download_url":"https://codeload.github.com/modoboa/modoboa-pfxadmin-migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224069585,"owners_count":17250454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","hosting","migration","modoboa","postfixadmin"],"created_at":"2024-11-11T07:46:48.224Z","updated_at":"2025-09-17T21:08:46.517Z","avatar_url":"https://github.com/modoboa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"modoboa-pfxadmin-migrate\n========================\n\n|landscape|\n\nA script to migrate from PostfixAdmin to Modoboa. It has been tested\nagainst versions 2.3.3 and upper.\n\n.. note::\n\n   This script is only suitable for a new Modoboa installation.\n\nInstallation\n------------\n\nInstall this extension system-wide or inside a virtual environment by\nrunning the following command::\n\n  $ pip install modoboa-pfxadmin-migrate\n\nEdit the ``settings.py`` file of your modoboa instance and add\n``modoboa_pfxadmin_migrate`` inside the ``MODOBOA_APPS`` variable like this::\n\n    MODOBOA_APPS = (\n    \n      # End of list\n      'modoboa_pfxadmin_migrate',\n    )\n\nThen, add a new database connection named ``pfxadmin`` into the\n``DATABASES`` variable corresponding to your PostfixAdmin setup::\n\n  DATABASES = {\n      \"default\" : {\n          # default connection definition\n      },\n      \"pfxadmin\" : {\n          \"ENGINE\" : \"\u003cengine\u003e\",\n          \"NAME\" : \"\u003cdatabase name\u003e\",\n          \"USER\" : \"\u003cdatabase user\u003e\",\n          \"PASSWORD\" : \"\u003cuser password\u003e\",\n      }  \n  }\n\nThis connection should correspond to the one defined in PostfixAdmin's\nconfiguration file.\n\nRun the script\n--------------\n\nYou are now ready to start the migration so run the following commands::\n\n  $ cd \u003cmodoboa_instance_dir\u003e\n  $ python manage.py migrate_from_postfixadmin -s \u003cpassword scheme\u003e\n\n``\u003cpassword scheme\u003e`` must be replaced by the scheme used within\npostfixadmin (``crypt`` most of the time).\n\nDepending on how many domains/mailboxes your existing setup contains,\nthe migration can be long. Just wait for the script's ending.\n\nThe procedure is over, edit the ``settings.py`` file and:\n\n* remove the ``pfxadmin`` database connection from the ``DATABASES``\n  variable\n* remove ``'modoboa_pfxadmin_migrate'`` from the\n  ``MODOBOA_APPS`` variable\n\nYou should be able to connect to Modoboa using the same credentials\nyou were using to connect to PostfixAdmin.\n\n.. |landscape| image:: https://landscape.io/github/modoboa/modoboa-pfxadmin-migrate/master/landscape.svg?style=flat\n   :target: https://landscape.io/github/modoboa/modoboa-pfxadmin-migrate/master\n   :alt: Code Health\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodoboa%2Fmodoboa-pfxadmin-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodoboa%2Fmodoboa-pfxadmin-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodoboa%2Fmodoboa-pfxadmin-migrate/lists"}