| 1 |
.TH DMARCTS-REPORT-PARSER "8" "February 2020" "dmarcts-report-parser" "DMARC Report Parser" |
| 2 |
.SH NAME |
| 3 |
dmarcts-report-parser \- DMARC Report Parser |
| 4 |
.SH SYNOPSIS |
| 5 |
\fBdmarcts\-report\-parser\fR \fI[OPTIONS]\fR \fI[PATH]\fR |
| 6 |
.SH DESCRIPTION |
| 7 |
|
| 8 |
This script can be used to parse .xml files in DMARC reports sent by |
| 9 |
email providers and store the parsed information in an SQL database. |
| 10 |
.PP |
| 11 |
The .xml files are expected to be attachments of emails which the |
| 12 |
script can obtain from local folders, mbox files or IMAP account folders. |
| 13 |
.PP |
| 14 |
This script needs a configuration file called |
| 15 |
\fIdmarcts\-report\-parser.conf\fR in the /etc/ (or in the current working |
| 16 |
directory), which defines a database server with credentials and (if |
| 17 |
used) an IMAP server with credentials. |
| 18 |
.IP |
| 19 |
.SH OPTIONS |
| 20 |
Additionally, one of the following command line options must be provided: |
| 21 |
.PP |
| 22 |
.TP 8 |
| 23 |
\fB\-i\fR |
| 24 |
Read reports from messages on IMAP server as defined in the |
| 25 |
config file. |
| 26 |
.TP 8 |
| 27 |
\fB\-m\fR |
| 28 |
Read reports from mbox file(s) provided in PATH. |
| 29 |
.TP 8 |
| 30 |
\fB\-e\fR |
| 31 |
Read reports from MIME email file(s) provided in PATH. |
| 32 |
.TP 8 |
| 33 |
\fB\-x\fR |
| 34 |
Read reports from xml file(s) provided in PATH. |
| 35 |
.PP |
| 36 |
The following optional options are allowed: |
| 37 |
.TP 8 |
| 38 |
\fB\-d\fR |
| 39 |
Print debug info. |
| 40 |
.TP 8 |
| 41 |
\fB\-r\fR |
| 42 |
Replace existing reports rather than skipping them. |
| 43 |
.TP 8 |
| 44 |
\fB\-\-delete\fR |
| 45 |
Delete processed message files (the XML is stored in the |
| 46 |
database for later reference). |
| 47 |
.TP 8 |
| 48 |
\fB\-\-info\fR |
| 49 |
Print out number of XML files or emails processed. |
| 50 |
.PP |
| 51 |
.SH "SEE ALSO" |
| 52 |
dmarcts-report-viewer |
| 53 |
.SH AUTHOR |
| 54 |
This man page has been written by Mike Gabriel |
| 55 |
<[email protected]> for the Debian project and it may be |
| 56 |
used by others. |