Parse Dmarc 标志

Parse Dmarc

组织
dmarcguardhq

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

发布者dmarcguardhq
代码仓库parse-dmarc
语言Go
复刻数
22
星标数
208
可用工具
0
传输类型stdio
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    Parse Dmarc 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 208 个 Star 和 22 个 Fork。

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.

将 Parse Dmarc MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Parse Dmarc 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Parse Dmarc 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Parse Dmarc MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "parse-dmarc": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Parse Dmarc MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Parse Dmarc MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Parse Dmarc 帮我完成这项任务吗?
Parse Dmarc
当然。我已阅读。
以下是我使用 Parse Dmarc 得到的结果。

常见问题

Parse Dmarc MCP 服务器有什么用途?

Parse Dmarc 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Parse Dmarc MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Parse Dmarc,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Parse Dmarc MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Parse Dmarc 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Parse Dmarc MCP 连接到 TypingMind?

Parse Dmarc 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Parse Dmarc MCP 在 TypingMind 中提供哪些工具?

Parse Dmarc 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Parse Dmarc MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Parse Dmarc 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇