{"id":37066540,"url":"https://github.com/jrd/mailserver-admin","last_synced_at":"2026-01-14T07:48:46.923Z","repository":{"id":57439322,"uuid":"349147579","full_name":"jrd/mailserver-admin","owner":"jrd","description":"mail server admistration","archived":false,"fork":false,"pushed_at":"2022-03-24T00:25:03.000Z","size":211,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T21:59:09.261Z","etag":null,"topics":[],"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/jrd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-03-18T16:41:01.000Z","updated_at":"2022-03-17T20:00:01.000Z","dependencies_parsed_at":"2022-09-26T17:20:27.563Z","dependency_job_id":null,"html_url":"https://github.com/jrd/mailserver-admin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jrd/mailserver-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrd%2Fmailserver-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrd%2Fmailserver-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrd%2Fmailserver-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrd%2Fmailserver-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrd","download_url":"https://codeload.github.com/jrd/mailserver-admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrd%2Fmailserver-admin/sbom","scorecard":{"id":536575,"data":{"date":"2025-08-11","repo":{"name":"github.com/jrd/mailserver-admin","commit":"0d3dc5f2648c426a2e11a3381cf7974da29cb3b4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2: pin your Docker image by updating python:3.9-alpine3.15 to python:3.9-alpine3.15@sha256:86d5546236a8f8dd6505a92c40db8a01f8c22b7425f32396b6bfe6ef4bd18230","Warn: pipCommand not pinned by hash: Dockerfile:4-18","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-190 / GHSA-2gwj-7jmv-h26r","Warn: Project is vulnerable to: PYSEC-2023-13 / GHSA-2hrw-hx67-34x6","Warn: Project is vulnerable to: PYSEC-2023-225 / GHSA-7h4p-27mh-hmrw","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2022-245 / GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: PYSEC-2023-226 / GHSA-h8gc-pgj2-vjm3","Warn: Project is vulnerable to: PYSEC-2023-100 / GHSA-jh3w-4vvf-mjgr","Warn: Project is vulnerable to: PYSEC-2022-213 / GHSA-p64x-8rxx-wf6q","Warn: Project is vulnerable to: PYSEC-2023-12 / GHSA-q2jf-h9jm-m7p4","Warn: Project is vulnerable to: PYSEC-2023-222 / GHSA-qmf9-6jqf-j8fq","Warn: Project is vulnerable to: PYSEC-2022-304 / GHSA-qrw5-5h28-6cmg","Warn: Project is vulnerable to: PYSEC-2023-61 / GHSA-r3xc-prgr-mg9p","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: PYSEC-2024-47 / GHSA-vm8q-m57g-pff3","Warn: Project is vulnerable to: PYSEC-2022-191 / GHSA-w24h-v9qh-8gxj","Warn: Project is vulnerable to: PYSEC-2024-28 / GHSA-xxj9-f6rv-m3x4","Warn: Project is vulnerable to: GHSA-3rq5-2g8h-59hc","Warn: Project is vulnerable to: GHSA-j225-cvw7-qrx7","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-2m57-hf25-phgg","Warn: Project is vulnerable to: PYSEC-2023-87 / GHSA-rrm6-wvj7-cwh2","Warn: Project is vulnerable to: GHSA-2g68-c3qc-8985","Warn: Project is vulnerable to: GHSA-f9vj-2wh5-fj8j","Warn: Project is vulnerable to: PYSEC-2023-221 / GHSA-hrfv-mqp8-q5rw","Warn: Project is vulnerable to: PYSEC-2023-57 / GHSA-px8h-6qxv-m22q","Warn: Project is vulnerable to: GHSA-q34m-jh98-gwm2","Warn: Project is vulnerable to: PYSEC-2023-58 / GHSA-xg9f-g7g7-2323","Warn: Project is vulnerable to: PYSEC-2022-203"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:09:06.165Z","repository_id":57439322,"created_at":"2025-08-20T07:09:06.165Z","updated_at":"2025-08-20T07:09:06.165Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-14T07:48:46.265Z","updated_at":"2026-01-14T07:48:46.907Z","avatar_url":"https://github.com/jrd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"mailserver-admin\n================\n\nThis application manages *domains*, *users* and *aliases* of a mail server.\n\nThis has been tested with **dovecot**, using either mysql or postgresql database.\n\nThe main goal was to enhance/replace [Jeffrey Boehm’s PHP mailserver-admin application](https://github.com/jeboehm/mailserver-admin) because I didn’t want to have a mail server administration application in PHP and I wanted to have administration account per domain.\n\nEnvironment variables\n---------------------\n\nRequired:\n\n- `DJANGO_SECRET_KEY`: at least 40 characters. Should be specified for production.\n- `DJANGO_DB_TYPE`: `postgres` or `mysql`, default to `mysql`.\n- `DJANGO_DB_HOST`: database hostname, default to `db` (for use in docker-compose).\n- `DJANGO_DB_PORT`: database port, default to empty (default port).\n- `DJANGO_DB_NAME`: database name, default to `mailserver`.\n- `DJANGO_DB_USER`: database user, default to `mailserver`.\n- `DJANGO_DB_PASSWORD`: database password, default to `changeme`.\n\nOptional:\n- `DJANGO_DEBUG`: default `False`. Set to `True` to enable debug toolbar, more logs and static files served.\n- `DJANGO_LOG_LEVEL`: default to `WARNING` (`INFO` if `DJANGO_DEBUG`).\n- `DJANGO_RUNSERVER_LOG_LEVEL`: default to `INFO` (`DEBUG` if `DJANGO_DEBUG`). Used only when run with `runserver` or `runserver_plus`.\n- `DJANGO_TZ`: timezone, defaut to `UTC`.\n- `DJANGO_DKIM_PATH`: directory path to store dkim private key and selectors. To be used by `rspamd-dkim`. Default to `/etc/dkim`.\n- `DJANGO_WEBMAIL_URL`: webmail url to show in the footer, default to no link.\n- `DJANGO_VENDOR_NAME`: any vendor name you want to appear on the footer, default to *Sources*.\n- `DJANGO_VENDOR_URL`: any url you want to be linked to your vendor name, default to this repository url. Set to empty to disable the link.\n- `DJANGO_HIDE_VERSION`: default `False` if `DJANGO_DEBUG` else `True`. Set to `True` to hide the `mailserver-admin` version.\n\nInstall from Docker Hub\n-----------------------\n\nUsing `docker` directly:\n```sh\ndocker run --name msa \\\n    -p 80:80 \\\n    -e DJANGO_SECRET_KEY=12345678901234567890abcdefghijklmnopqrstuvwxyz \\\n    -e DJANGO_DB_TYPE=mysql \\\n    -e DJANGO_DB_PASSWORD=pwd \\\n    --link yourmariadb:db \\\n    jrdasm/mailserver-admin:\u003cversion\u003e\ndocker exec -ti msa pipenv run ./manage.py createsuperuser\n```\n\nOf course this is simple using `docker-compose`:\n```yaml\n...\nservices:\n    db:\n        image: mariadb\n        environment:\n            - \"MYSQL_RANDOM_ROOT_PASSWORD=yes\"\n            - \"MYSQL_DATABASE=mailserver\"\n            - \"MYSQL_USER=mailserver\"\n            - \"MYSQL_PASSWORD=pwd\"\n    ...\n    msa:\n        image: jrdasm/mailserver-admin:\u003cversion\u003e\n        environment:\n            - \"DJANGO_SECRET_KEY=12345678901234567890abcdefghijklmnopqrstuvwxyz\"\n            - \"DJANGO_DB_TYPE=mysql\"\n            - \"DJANGO_DB_NAME=mailserver\"\n            - \"DJANGO_DB_USER=mailserver\"\n            - \"DJANGO_DB_PASSWORD=pwd\"\n        ports:\n            - \"80:80\"\n...\n```\n\n```sh\ndocker-compose exec msa pipenv run ./manage.py createsuperuser\n```\n\nInstall from PyPi\n-----------------\n\n### VirtualEnv and Dependencies\n\nMinium python version is **3.9**.\n\nUse:\n\n```sh\npipenv install mailserver-admin\n```\n\nto install it without any database backend.\n\nIf you want to install the `mysql` or `postgresql` database backend alongside, use for instance:\n\n```sh\npipenv install mailserver-admin[mysql]\n```\n\n### Configuration\n\nDefine the required environment variables then:\n\n```sh\nexport DJANGO_SETTINGS_MODULE=mailserveradmin.config.settings\npipenv run django migrate\npipenv run django createsuperuser\n```\n\nYou can use `pipenv run django migrate --fake-initial` if you already have a mysql or postgresql database with existing schema/data.\n\nYou can now server the application using any **WSGI** server pointing to `$(VISUAL='readlink -f' pipenv open mailserveradmin|tail -n1)/config/wsgi.py`.\n\nDon’t forget to also serve static ressources located at `$(VISUAL='readlink -f' pipenv open mailserveradmin|tail -n1)/to_serve` folder.\n\nYou can of course make symlinks to those locations to simplify configuration.\n\nInstall from sources\n--------------------\n\n### VirtualEnv and Dependencies\n\nUse:\n\n```sh\npipenv sync -d\n```\n\nto install dependencies. Default python version is **3.9**.\n\n### Installation\n\nYou should also install a database driver, either `mysqlclient` or `psycopg2-binary`:\n\n```sh\npipenv run pip install mysqlclient\n```\n\n### Configuration\n\nDefine the required environment variables then:\n\n```sh\npipenv run ./manage.py migrate\npipenv run ./manage.py createsuperuser\npipenv run ./manage.py collectstatic\n```\n\nYou can now server the application using any **WSGI** server pointing to the `config/wsgi.py` file.\n\nDon’t forget to also serve the `static/` folder.\n\nAlternatively, you can test the application with `pipenv run ./manage.py runserver_plus` but this should only be used for testing/development.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrd%2Fmailserver-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrd%2Fmailserver-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrd%2Fmailserver-admin/lists"}