modoboa-dmarc
A set of tools to use DMARC through Modoboa.
This plugin is still in BETA stage, for now it only parses XML aggregated reports and generate visual reports (using c3.js) on a per-domain basis.
Installation
Make sure to install the following additional system package according to your distribution:
Debian / Ubuntu |
|---|
libmagic1 |
CentOS |
|---|
file-devel |
Install this extension system-wide or inside a virtual environment by running the following command:
$ pip install modoboa-dmarc
Edit the settings.py file of your modoboa instance and add modoboa_dmarc inside the MODOBOA_APPS variable like this:
MODOBOA_APPS = ( 'modoboa', 'modoboa.core', 'modoboa.lib', 'modoboa.admin', 'modoboa.limits', 'modoboa.relaydomains', 'modoboa.parameters', # Extensions here 'modoboa_dmarc', )
Run the following commands to setup the database tables:
$ cd <modoboa_instance_dir> $ python manage.py migrate modoboa_dmarc $ python manage.py collectstatic $ python manage.py load_initial_data
Finally, restart the python process running modoboa (uwsgi, gunicorn, apache, whatever).
Integration with Postfix
A management command is provided to automatically parse DMARC aggregated reports (rua) and feed the database. The execution of this command can be automated with the definition of a postfix service and a custom transport table.
First, declare a new service in /etc/postfix/master.cf:
dmarc-rua-parser unix - n n - - pipe flags= user=vmail:vmail argv=<path to python> <path to modoboa instance>/manage.py import_aggregated_report --pipe
Define a new transport table inside /etc/postfix/main.cf:
transport_maps =
hash:/etc/postfix/dmarc_transport
# other transport maps...
Create a file called /etc/postfix/dmarc_transport with the following content:
<email address your declared in your DNS record> dmarc-rua-parser:
Hash the file using the following command:
$ postmap /etc/postfix/dmarc_transport
Finally, reload postfix:
$ service postfix reload
Specific Upgrade Instructions
1.3.0
modoboa-dmarc now requires an additional system package according to your distribution:
Debian / Ubuntu |
|---|
libmagic1 |
CentOS |
|---|
file-devel |
Metadata
Release files for modoboa-dmarc 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modoboa-dmarc-1.3.0.tar.gz | 58.9 kB | Without provenance | Details for modoboa-dmarc-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modoboa_dmarc-1.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for modoboa_dmarc-1.3.0-py2.py3-none-any.whl |
Total release size: 141.5 kB
Release files / modoboa-dmarc-1.3.0.tar.gz
| Download URL | modoboa-dmarc-1.3.0.tar.gz |
|---|---|
| Size | 58.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a7e1cbcd9866b5c8d57f0b792544e01b27dc3cc89f31f2edea19e095658939e
|
|
BLAKE2b-256 checksum How to use checksums |
131feb42631e2a3907f35b04b1137f2386fae6d30ada4cb29d9ba3652c294b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / modoboa_dmarc-1.3.0-py2.py3-none-any.whl
| Download URL | modoboa_dmarc-1.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 82.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c799b73f198612df8c822754595d73f71f0392d46cbb683eb5b89dcc07ece6cc
|
|
BLAKE2b-256 checksum How to use checksums |
10ad5402e6d2206bff87cfa2fa6cc887e9f7c12d2cbd6d470e4795aedcebd8a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for modoboa-dmarc 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.