{"id":24300801,"url":"https://github.com/rallisf1/dmarcts-report-parser-docker","last_synced_at":"2026-04-21T07:34:03.106Z","repository":{"id":272418594,"uuid":"916208838","full_name":"rallisf1/dmarcts-report-parser-docker","owner":"rallisf1","description":"Dockerized techsneeze/dmarcts-report-parser","archived":false,"fork":false,"pushed_at":"2025-01-14T10:44:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T12:52:53.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/rallisf1.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T16:55:16.000Z","updated_at":"2025-01-14T10:44:18.000Z","dependencies_parsed_at":"2025-01-14T10:48:23.350Z","dependency_job_id":"e4b849d5-03f6-4eea-94e9-db48db90ea14","html_url":"https://github.com/rallisf1/dmarcts-report-parser-docker","commit_stats":null,"previous_names":["rallisf1/dmarcts-report-parser-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rallisf1/dmarcts-report-parser-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rallisf1%2Fdmarcts-report-parser-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rallisf1%2Fdmarcts-report-parser-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rallisf1%2Fdmarcts-report-parser-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rallisf1%2Fdmarcts-report-parser-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rallisf1","download_url":"https://codeload.github.com/rallisf1/dmarcts-report-parser-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rallisf1%2Fdmarcts-report-parser-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"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":"2025-01-16T23:17:37.722Z","updated_at":"2026-04-21T07:34:03.070Z","avatar_url":"https://github.com/rallisf1.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dmarcts-report-parser-docker\n\nDockerized [techsneeze/dmarcts-report-parser](https://github.com/techsneeze/dmarcts-report-parser)\n\nSupports both mysql and postgresql databases.\n\n## Environment Variables\n\nAll [original settings](https://github.com/techsneeze/dmarcts-report-parser/blob/master/dmarcts-report-parser.conf.sample) are configurable via environment variables:\n\n| Variable             | Default value | Required           | Description                                                              |\n|----------------------|---------------|--------------------|--------------------------------------------------------------------------|\n| DEBUG                | 0             | :x:                | Show debug information on the console                                    |\n| DELETE               | 0             | :x:                | Delete the processed reports from their source                           |\n| DB_TYPE              | mysql         | :x:                | mysql OR Pg                                                              |\n| DB_NAME              | dmarc         | :x:                | Database name                                                            |\n| DB_USER              | dmarc         | :x:                | Database username                                                        |\n| DB_PASS              |               | :white_check_mark: | Database password                                                        |\n| DB_HOST              | mysql         | :x:                | Database hostname                                                        |\n| DB_PORT              | 3306          | :x:                | Database port                                                            |\n| IMAP_HOST            |               | :white_check_mark: | IMAP server hostname                                                     |\n| IMAP_USER            |               | :white_check_mark: | IMAP server username                                                     |\n| IMAP_PASS            |               | :white_check_mark: | IMAP server password                                                     |\n| IMAP_PORT            | 993           | :x:                | Usually 143 for non-SSL, and 993 for SSL                                 |\n| IMAP_SSL             | 1             | :x:                | Use SSL to connect to IMAP                                               |\n| IMAP_TLS             | 0             | :x:                | Use StartTLS to connect to IMAP                                          |\n| TLS_VERIFY           | 0             | :x:                | Verify the SSL certificate against the IMAP hostname                     |\n| IMAP_IGNORE_ERROR    | 0             | :x:                | Ignore some IMAP errors, useful for Exchange                             |\n| IMAP_READ_FOLDER     | INBOX         | :x:                | The mailbox directory that holds the DMARC reports                       |\n| IMAP_MOVE_FOLDER     | processed     | :x:                | The mailbox directory to move the processed reports                      |\n| MAX_SIZE_XML         | 50000         | :x:                | Size in bytes over which the XML raw data won't be saved in the database |\n| COMPRESS_XML         | 0             | :x:                | Stores the raw XML data in base64 encoded gzip format                    |\n| IMAP_MOVE_FOLDER_ERR | error         | :x:                | The mailbox directory to move the erroneous emails                       |\n| DELETE_FAILED        | 0             | :x:                | Delete erroneous emails instead of moving them                           |\n\nI made IMAP credentials required, but that doesn't mean you absolutely need to use this with an IMAP account. You can always bind a volume with zip/xml reports and use this image to scan those.\n\nI also took the liberty to change the default IMAP settings to match industry standards.\n\nMade this to use it with [mailcow](https://github.com/mailcow/mailcow-dockerized) in my [custom status web app](https://github.com/rallisf1/mailcow-status-app)\n\n## Usage\n\n### Ofelia with compose (suggested)\n\n```yaml\nversion: \"3\"\nservices:\n  ofelia:\n    image: mcuadros/ofelia:latest\n    command: daemon --docker\n    volumes:\n      - /var/run/docker.sock:/var/run/docker.sock:ro\n\n  dmarc:\n    image: rallisf1/dmarcts-report-parser:latest\n    labels:\n      ofelia.enabled: \"true\"\n      ofelia.job-exec.download-dmarc.schedule: \"@every 6h\"\n      ofelia.job-exec.download-dmarc.command: \"/dmarcts-report-parser.pl -i\"\n```\n\n### Cron on host\n\n```sh\ncrontab -e\n\n0 */6 * * * docker exec -it YOUR_CONTAINER_NAME /dmarcts-report-parser.pl -i \u003e\u003e /var/logs/dmarcts-report-parser.log 2\u003e\u00261\n```\n\n__Notice: this is just an example with logging on the host. Do not use this without log rotation, only logs errors without enabling DEBUG__\n\n## License\n\nThis repo and the resulting docker image: MIT\n\nThe original [techsneeze/dmarcts-report-parser](https://github.com/techsneeze/dmarcts-report-parser) project: GPLv3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frallisf1%2Fdmarcts-report-parser-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frallisf1%2Fdmarcts-report-parser-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frallisf1%2Fdmarcts-report-parser-docker/lists"}