{"id":13557550,"url":"https://github.com/modoboa/modoboa-dmarc","last_synced_at":"2025-04-03T11:32:27.728Z","repository":{"id":1775220,"uuid":"38808796","full_name":"modoboa/modoboa-dmarc","owner":"modoboa","description":"A set of tools to use DMARC through Modoboa.","archived":true,"fork":false,"pushed_at":"2023-02-16T15:57:38.000Z","size":166,"stargazers_count":15,"open_issues_count":0,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-25T19:22:10.983Z","etag":null,"topics":["dmarc","modoboa","postfix"],"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,"governance":null}},"created_at":"2015-07-09T08:41:23.000Z","updated_at":"2024-07-18T06:32:37.000Z","dependencies_parsed_at":"2023-07-10T00:16:28.290Z","dependency_job_id":null,"html_url":"https://github.com/modoboa/modoboa-dmarc","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-dmarc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-dmarc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-dmarc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modoboa%2Fmodoboa-dmarc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modoboa","download_url":"https://codeload.github.com/modoboa/modoboa-dmarc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246993241,"owners_count":20865969,"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":["dmarc","modoboa","postfix"],"created_at":"2024-08-01T12:04:24.967Z","updated_at":"2025-04-03T11:32:22.714Z","avatar_url":"https://github.com/modoboa.png","language":"Python","funding_links":[],"categories":["Python","others"],"sub_categories":[],"readme":"modoboa-dmarc\n=============\n\n|gha| |codecov|\n\nA set of tools to use DMARC through Modoboa.\n\nThis plugin is still in BETA stage, for now it only parses XML aggregated\nreports and generate visual reports (using c3.js) on a per-domain basis.\n\nInstallation\n------------\nMake sure to install the following additional system package according to your distribution:\n\n+-----------------+\n| Debian / Ubuntu |\n+=================+\n| libmagic1       |\n+-----------------+\n\n+------------+\n| CentOS     |\n+============+\n| file-devel |\n+------------+\n\nInstall this extension system-wide or inside a virtual environment by\nrunning the following command::\n\n  $ pip install modoboa-dmarc\n\nEdit the settings.py file of your modoboa instance and add\n``modoboa_dmarc`` inside the ``MODOBOA_APPS`` variable like this::\n\n    MODOBOA_APPS = (\n      'modoboa',\n      'modoboa.core',\n      'modoboa.lib',\n      'modoboa.admin',\n      'modoboa.limits',\n      'modoboa.relaydomains',\n      'modoboa.parameters',\n      # Extensions here\n      'modoboa_dmarc',\n    )\n\nRun the following commands to setup the database tables::\n\n  $ cd \u003cmodoboa_instance_dir\u003e\n  $ python manage.py migrate modoboa_dmarc\n  $ python manage.py collectstatic\n  $ python manage.py load_initial_data\n    \nFinally, restart the python process running modoboa (uwsgi, gunicorn,\napache, whatever).\n\nIntegration with Postfix\n------------------------\n\nA management command is provided to automatically parse DMARC\naggregated reports (rua) and feed the database. The execution of this\ncommand can be automated with the definition of a postfix service and\na custom transport table.\n\nFirst, declare a new service in ``/etc/postfix/master.cf``::\n\n  dmarc-rua-parser unix  -       n       n       -       -       pipe\n    flags= user=vmail:vmail argv=\u003cpath to python\u003e \u003cpath to modoboa instance\u003e/manage.py import_aggregated_report --pipe\n\nDefine a new transport table inside ``/etc/postfix/main.cf``::\n\n  transport_maps =\n      hash:/etc/postfix/dmarc_transport\n      # other transport maps...\n\nCreate a file called ``/etc/postfix/dmarc_transport`` with the following content::\n\n  \u003cemail address your declared in your DNS record\u003e  dmarc-rua-parser:\n\nHash the file using the following command::\n\n  $ postmap /etc/postfix/dmarc_transport\n\nFinally, reload postfix::\n\n  $ service postfix reload\n\n\nSpecific Upgrade Instructions\n-----------------------------\n\n1.3.0\n~~~~~\n\nmodoboa-dmarc now requires an additional system package according to your distribution:\n\n+-----------------+\n| Debian / Ubuntu |\n+=================+\n| libmagic1       |\n+-----------------+\n\n+------------+\n| CentOS     |\n+============+\n| file-devel |\n+------------+\n\n\n.. |gha| image:: https://github.com/modoboa/modoboa-dmarc/actions/workflows/plugin.yml/badge.svg\n   :target: https://github.com/modoboa/modoboa-dmarc/actions/workflows/plugin.yml\n\n.. |codecov| image:: https://codecov.io/gh/modoboa/modoboa-dmarc/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/modoboa/modoboa-dmarc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodoboa%2Fmodoboa-dmarc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodoboa%2Fmodoboa-dmarc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodoboa%2Fmodoboa-dmarc/lists"}