DMARC related tools
Project description
A set of tools to use DMARC through Modoboa.
This plugin is still in BETA stage, for now it only parse XML aggregated reports and generate visual reports (using c3.js) on a per-domain basis.
Installation
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', # 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 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/master.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file modoboa-dmarc-0.1.0.tar.gz.
File metadata
- Download URL: modoboa-dmarc-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3e93c7b4d64669d1d279db0cf372d629bc45fecc97e0452863913194ab201e3
|
|
| MD5 |
ace3b9f1cc61c64c41d0312e60f71019
|
|
| BLAKE2b-256 |
48ab6515bcefaa2256c11babbb4c7b1eea3f8fc8b33d0b059c89011ecceca5d7
|