mcpField
D
deliverability-checker

deliverability-checker

github.com/guia-matthieu云与 DevOps150257 次安装4 周前更新
代码仓库

关于 deliverability-checker

deliverability-checker 是用于诊断邮件投递配置问题的技能,可通过命令行检查域名的 SPF、DKIM、DMARC 和 MX 记录,并生成审计结果。适合排查邮件进入垃圾邮件、配置新域名或迁移后核验。

主要功能

  1. 01审计 SPF、DKIM、DMARC 和 MX
  2. 02分别检查各类 DNS 记录
  3. 03生成 HTML 审计报告
  4. 04提供常见服务商记录参考

适用场景

  1. 01排查邮件进入垃圾邮件的问题
  2. 02核验新域名的邮件认证配置
  3. 03审查域名迁移后的邮件设置
  4. 04检查客户域名的邮件健康状况

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/guia-matthieu/clawfu-skills --skill deliverability-checker

安装后在 Claude Code 中输入/deliverability-checker确认已加载。

附带文件scripts/main.pyscripts/requirements.txt

详细介绍

电子邮件送达能力检查器

通过检查 SPF、DKIM、DMARC 和其他 DNS 记录,诊断电子邮件送达问题,找出邮件被归入垃圾邮件的原因并加以解决。

何时使用此技能

  • 送达问题排查 - 邮件被归入垃圾邮件
  • 新域名设置 - 配置电子邮件身份验证
  • 迁移审计 - 域名变更后验证电子邮件配置
  • 客户端入门 - 检查客户端的电子邮件健康状况
  • 合规检查 - 确保身份验证配置正确

Claude 负责什么,您决定什么

Claude 负责您决定
构建分析框架指标定义
识别数据模式业务解读
创建可视化模板仪表板设计
建议优化方向行动优先级
计算统计指标决策阈值

依赖项

pip install dnspython click

命令

完整审计
python scripts/main.py audit example.com
python scripts/main.py audit example.com --output report.html
检查 SPF
python scripts/main.py spf example.com
检查 DKIM
python scripts/main.py dkim example.com --selector google
python scripts/main.py dkim example.com --selector default
检查 DMARC
python scripts/main.py dmarc example.com
检查 MX 记录
python scripts/main.py mx example.com

示例

示例 1:完整电子邮件审计
python scripts/main.py audit acme-corp.com

# Output:
# Email Deliverability Audit: acme-corp.com
# ──────────────────────────────────────────
# MX Records:      ✓ Found (Google Workspace)
# SPF:             ✓ Valid
# DKIM (google):   ✓ Valid
# DMARC:           ✗ Missing (CRITICAL)
#
# Score: 75/100
#
# Issues Found:
# 1. [CRITICAL] No DMARC record found
#    Fix: Add TXT record for _dmarc.acme-corp.com
#    Value: v=DMARC1; p=none; rua=mailto:[email protected]
示例 2:诊断 SPF 问题
python scripts/main.py spf newsletter-sender.com

# Output:
# SPF Analysis: newsletter-sender.com
# ────────────────────────────────────
# Record: v=spf1 include:_spf.google.com include:sendgrid.net ~all
#
# Status: ✓ Valid
#
# Authorized Senders:
# - Google Workspace (include:_spf.google.com)
# - SendGrid (include:sendgrid.net)
#
# Policy: ~all (soft fail)
# Warning: Consider changing to -all (hard fail) for better security

电子邮件身份验证记录

记录用途位置
SPF授权发送服务器根域名上的 TXT
DKIM加密签名selector._domainkey 上的 TXT
DMARC策略与报告_dmarc 子域上的 TXT
MX邮件投递服务器根域名上的 MX

常见 SPF 包含项

提供商SPF 包含项
Google Workspaceinclude:_spf.google.com
Microsoft 365include:spf.protection.outlook.com
SendGridinclude:sendgrid.net
Mailchimpinclude:servers.mcsv.net
Amazon SESinclude:amazonses.com

各提供商的 DKIM 选择器

提供商常见选择器
Google Workspacegoogle
Microsoft 365selector1、selector2
SendGrids1、s2
Mailchimpk1

送达能力评分因素

因素权重影响
有效的 MX20%无法接收回复
有效的 SPF25%服务器授权
有效的 DKIM25%消息完整性
有效的 DMARC30%策略执行

技能边界

此技能擅长的事项
  • 构建数据分析框架
  • 识别模式和趋势
  • 创建可视化框架
  • 计算统计指标
此技能无法完成的事项
  • 访问您的实际数据
  • 取代统计专业知识
  • 做出业务决策
  • 保证预测准确性

相关技能

技能元数据

  • 模式:centaur
category: email-tools
subcategory: deliverability
dependencies: [dnspython]
difficulty: beginner
time_saved: 2+ hours/week

评论

支持 Markdown