Logo Parse Dmarc

Parse Dmarc

Tổ chức
dmarcguardhq

DMARC aggregate report parser with a built-in dashboard. One Go binary, IMAP in, SQLite, Prometheus metrics, MCP server. Apache-2.0.

Nhà phát hànhdmarcguardhq
Kho mãparse-dmarc
Ngôn ngữGo
Bản fork
22
Sao
208
Công cụ có sẵn
0
Phương thức truyền tảistdio
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Parse Dmarc cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    208 sao và 22 bản fork từ kho mã được liên kết.

Parse DMARC

CI Release License Stars Docker pulls old Docker pulls new Image size

Read your DMARC aggregate reports in one dashboard. One Go binary, SQLite, no Elasticsearch.

Parse DMARC is built and maintained by the team behind DMARCguard, a hosted DMARC monitoring service. The two do not share code, and this repository stays Apache-2.0 in full.

Parse DMARC dashboard showing pass rate, message volume and top sending sources

What it does

When your DMARC record carries a rua= address, mail receivers such as Google, Microsoft and Yahoo send you aggregate reports: gzip or zip XML attachments, at the interval your record asks for and daily by default, listing every IP that sent mail as your domain and whether SPF and DKIM passed (RFC 7489 section 7.2, carried forward by RFC 9990). Nobody reads those by hand. Parse DMARC does:

  • Fetches reports over IMAP from any mailbox. Reports that Exchange or Outlook forward as message/rfc822 attachments are unwrapped too.
  • Parses gzip, zip and raw XML, with a 16 MB decompression cap per report.
  • Stores everything in one SQLite file. No database server, no JVM.
  • Shows pass rate, message volume and top sending sources, and opens any report down to its raw records.
  • Generates your _dmarc TXT record from a form.
  • Exposes 28 Prometheus metrics and ships a Grafana dashboard.
  • Serves an MCP server, so an AI assistant can query your reports.
  • Dark mode. One static binary. The Docker image is built FROM scratch.

It reads aggregate (RUA) reports only. Failure reports (RUF), TLS-RPT, alerting, login and multi-mailbox intake are not built; see Roadmap and contributing.

Run it

Docker, with a named volume for the database:

bash
docker run -d --name parse-dmarc -p 8080:8080 \
  -e IMAP_HOST=imap.gmail.com \
  -e IMAP_PORT=993 \
  -e IMAP_USERNAME=dmarc@example.com \
  -e IMAP_PASSWORD='your-app-password' \
  -v parse-dmarc:/data \
  dmarcguard/parse-dmarc

Homebrew on macOS or Linux:

bash
brew install dmarcguardhq/tap/parse-dmarc
parse-dmarc --gen-config          # writes a config.json template
parse-dmarc --config config.json

Nix, from our NUR-style repo:

bash
nix profile install github:dmarcguardhq/nur#parse-dmarc   # or: nix run github:dmarcguardhq/nur#parse-dmarc

Or download a release archive, parse-dmarc_<os>_<arch>.tar.gz, from the releases page.

Open http://localhost:8080. Gmail needs an App Password, not the account password. The same image is on Docker Hub as meysam81/parse-dmarc; both names track the same builds, and tags such as v1 or v1.6.0 pin a release.

Get reports flowing

Receivers only send reports if your DMARC record asks for them. Publish this TXT record at _dmarc.example.com, with your own domain and mailbox:

v=DMARC1; p=none; rua=mailto:dmarc@example.com
  • p=none asks receivers to deliver as usual and only report. Move to p=quarantine, then p=reject, once every legitimate sender in the reports passes (RFC 9989 section 5.1).
  • rua= is the mailbox Parse DMARC reads. It has to exist and accept mail before the first report arrives.
  • Check the record with dig +short TXT _dmarc.example.com. Reports typically start within 24 to 48 hours.

Cloudflare, Route 53 and every other DNS host take the same three fields: name _dmarc, type TXT, value as above. SPF and DKIM do not have to be set up first; the reports are how you find out what they are doing.

Deploy anywhere

One click on a platform, or a template for the self-hosted PaaS you already run. Every option needs the IMAP settings from Configuration.

Platform as a Service (PaaS)

ProviderDeployNotes
RailwayDeploy on RailwayRecommended for beginners
RenderDeploy to RenderFree tier available
KoyebDeploy to KoyebGlobal edge deployment. Manually mount /data as volume.
ZeaburDeploy on ZeaburAsia-Pacific optimized
NorthflankDeploy to NorthflankDeveloper-focused

Self-hosted PaaS

ProviderDeployNotes
CapRoverDeploy to CapRoverSelf-hosted PaaS
CoolifyDeploy to CoolifyOpen-source Heroku alternative
DokployDeploy to DokploySelf-hosted deployment platform
DockerDockerRun anywhere

Infrastructure

ProviderDeployNotes
DigitalOcean DropletDeploy to DigitalOceanVM with Packer image

Configuration

Every setting is an environment variable or a key in config.json. Environment is read first and the file overrides it.

SettingEnvironment variableDefault
IMAP host and portIMAP_HOST, IMAP_PORTrequired, 993
IMAP username and passwordIMAP_USERNAME, IMAP_PASSWORDrequired
Mailbox to readIMAP_MAILBOXINBOX
Implicit TLSIMAP_USE_TLStrue
STARTTLS on a plaintext portIMAP_STARTTLSfalse
Internal CA bundle, PEMIMAP_TLS_CA_FILEunset
Skip certificate verificationIMAP_TLS_SKIP_VERIFYfalse
Mark fetched mail as seenIMAP_MARK_AS_SEENtrue
Move processed mail toIMAP_PROCESSED_MAILBOXunset
Database fileDATABASE_PATH~/.parse-dmarc/db.sqlite, /data/parse-dmarc.db in Docker
HTTP listenSERVER_HOST, SERVER_PORTall interfaces, 8080
Seconds between fetchesFETCH_INTERVAL300
Log levelLOG_LEVELinfo

Providers: Gmail is imap.gmail.com on 993 with an App Password. Microsoft 365 is outlook.office365.com on 993. Anything else is port 993 with TLS unless its documentation says otherwise.

An IMAP server whose certificate comes from your own CA fails with x509: certificate signed by unknown authority. Mount the CA bundle and point IMAP_TLS_CA_FILE at it; verification stays on. IMAP_TLS_SKIP_VERIFY=true also connects and is the last resort, because the session can then be intercepted. IMAP_STARTTLS=true dials plaintext, usually port 143, and upgrades; it takes precedence over IMAP_USE_TLS. Turning TLS off entirely is plaintext IMAP, and most servers refuse LOGIN on it.

FlagWhat it does
--fetch-onceFetch, parse, store, exit. For cron.
--serve-onlyServe the dashboard without fetching.
--fetch-interval 600Seconds between fetch cycles.
--metrics=falseTurn off /metrics.
--gen-configWrite a config.json template and exit.
--mcp, --mcp-http :8081Run the MCP server over stdio or HTTP instead of the fetcher. See docs/MCP.md.

Metrics, Grafana and MCP

/metrics is on by default: 28 metrics covering fetch cycles, IMAP connections, parse and store errors, compliance rate overall and per domain, SPF and DKIM result counts, and HTTP latency. grafana/dashboard.json is a ready dashboard for them. The full list, a Prometheus Operator ServiceMonitor, alert rules and a compose stack with Prometheus and Grafana are in docs/METRICS.md.

parse-dmarc --mcp exposes the same data to an AI assistant over the Model Context Protocol: nine tools, from get_statistics to parse_dmarc_report, over stdio or HTTP with optional OAuth2. Setup and the tool list are in docs/MCP.md.

The HTTP API behind the dashboard is four GET routes: /api/statistics, /api/reports, /api/reports/{id} and /api/top-sources. None of them has authentication, so keep the port behind your reverse proxy or VPN.

Parse DMARC or DMARCguard?

Two products, one maker, separate codebases. Parse DMARC is the whole of this repository: no enterprise directory, nothing to unlock. DMARCguard is a hosted, proprietary service that reads the reports for you and tells you what to change.

Parse DMARCDMARCguard
Who runs itYou: a binary or container, a mailbox, a volumeWe do
What it readsDMARC aggregate reportsDMARC aggregate reports, TLS-RPT reports, failure reports on Pro, and DNS checks for 9 protocols: DMARC, SPF, DKIM, BIMI, MTA-STS, TLS-RPT, ARC, DANE, ARF (7 on Free)
Sending sourcesIP addresses170 named senders, Mailchimp or SendGrid rather than an IP, each with the DNS change that fixes it
AlertsPrometheus rules you writeEmail on Free; Slack, Teams, Discord and webhooks on Pro
RetentionWhatever your disk holds30 days on Free, 1 year on Pro
Access controlNone; keep it behind your proxyAccounts and 2FA; SAML SSO on Pro
SupportGitHub issuesEmail
Price$0, Apache-2.0Free for 2 domains, no credit card. Pro is $29/month including 2 domains

Run Parse DMARC when you want the data on your own disk and one mailbox to watch. Use DMARCguard when you want the reports read for you, or you have more domains than evenings.

I built Parse DMARC first, in late 2025. DMARCguard came out of what people asked for next: a sender's name instead of its IP, and the exact record to change on every alert. Paying for DMARCguard is what funds the hours that go into this repository, and it stays Apache-2.0.

Meysam

Start free on 2 domains, no credit card

Roadmap and contributing

The three most-asked additions, in the order people ask: TLS-RPT reports (#154), a Maildir or directory intake for people without IMAP (#169), and whois on sending sources (#143). ROADMAP.md has the rest. CONTRIBUTING.md covers the toolchain: just build, just dev, and docker compose up for a local Dovecot seeded with a sample report.

License

Apache-2.0, for everything in this repository. There is no ee/ directory and no feature that needs a key.


If Parse DMARC did the job, a star helps the next person find it. If you would rather have the reports read for you, DMARCguard is the hosted product from the same team.

Dùng MCP Parse Dmarc với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Parse Dmarc, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Parse Dmarc làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Parse Dmarc.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "parse-dmarc": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Parse Dmarc, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Parse Dmarc.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Parse Dmarc giúp tôi làm việc này không?
Parse Dmarc
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Parse Dmarc.

Câu hỏi thường gặp

Máy chủ MCP Parse Dmarc dùng để làm gì?

Parse Dmarc là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Parse Dmarc với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Parse Dmarc với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Parse Dmarc với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Parse Dmarc, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Parse Dmarc với TypingMind?

Parse Dmarc hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Parse Dmarc cung cấp những công cụ nào trong TypingMind?

Parse Dmarc cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Parse Dmarc không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Parse Dmarc yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇