agentleFS
28672032962867203296/hermes-agent/skills/devops/email-deliverability/SKILL.md

email-deliverability

Skill0 starsChanged 3 months agoMITView on GitHub

邮件到达率:SPF/DKIM/DMARC、事务邮件、进箱率优化.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

邮件到达率

为什么邮件进垃圾箱

你发的邮件 → 收件方检查:
1. 发件IP信誉好不好?
2. SPF:允许这个IP发吗?
3. DKIM:签名验证通过吗?
4. DMARC:SPF+DKIM都过了吗?
5. 内容像垃圾邮件吗?

都没问题 → 进收件箱
任何一项有问题 → 进垃圾箱

SPF/DKIM/DMARC

SPF:声明哪些IP能发我的邮件
  DNS TXT记录: v=spf1 include:mailgun.org ~all

DKIM:对邮件签名,防篡改
  发出时用私钥签名 → 收件方用公钥验证

DMARC:告诉收件方 SPF/DKIM 失败时怎么办
  p=none (不管) / p=quarantine (垃圾箱) / p=reject (拒收)

用第三方服务(推荐)

# 不要自己搭邮件服务器!(会被标记为垃圾)
# 用专业服务:

# Resend(最简单)
import resend
resend.api_key = "re_xxx"
resend.Emails.send({
    "from": "noreply@yoursite.com",
    "to": "user@example.com",
    "subject": "验证你的邮箱",
    "html": "<p>点击链接验证</p>",
})

# SendGrid / Mailgun / AWS SES 类似

事务邮件最佳实践

1. 验证邮件(注册时)
2. 密码重置
3. 订单确认
4. 支付收据
5. 不会做的:营销群发(用专门工具)

内容优化

不要:
✗ 全图片(垃圾邮件常用)
✗ 全大写标题
✗ 过多感叹号!!!
✗ 误导性主题

要:
✓ 文本为主 + 少量图片
✓ 退订链接(法律要求)
✓ 发件人名称清晰(不要 no-reply@xxx)
✓ 纯文本版本(和HTML一起发)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.