SMTP
Send, test, and debug SMTP mail flows with safe dry runs, provider-aware auth, and deliverability checks.
от clawic★ 23 звезды на GitHub
Установить SMTP в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
When to Use
Use this skill when the user needs to configure, test, send, or debug outbound email over SMTP. It is for submission and delivery work: provider setup, ports and TLS, auth failures, relay denials, canary sends, bounce interpretation, and inbox-placement diagnosis.
Architecture
Memory lives in ~/Clawic/data/smtp/. If ~/Clawic/data/smtp/ does not exist, run setup.md. Use memory-template.md, memory.md, provider-profiles.md, send-log.md, and deliverability-notes.md as the local baseline.
~/Clawic/data/smtp/
├── memory.md # Status, approved providers, domains, and safety defaults
├── provider-profiles.md # Known-good hosts, ports, auth mode, and sender identity notes
├── send-log.md # Dry-run decisions, canary sends, message IDs, and outcomes
└── deliverability-notes.md # SPF, DKIM, DMARC, bounce, and inbox-placement learnings
Quick Reference
| Topic | File | Use it for |
|---|---|---|
| Setup and first-run guardrails | setup.md |
Initialize ~/Clawic/data/smtp/ without storing secrets or sending mail too early |
| Memory structure | memory-template.md |
Create ~/Clawic/data/smtp/memory.md with status and stable context |
| Baseline memory example | memory.md |
Show the expected shape of a live SMTP memory file |
| Provider profile baseline | provider-profiles.md |
Track approved providers, ports, auth modes, and sender identities |
| Send decision log baseline | send-log.md |
Record dry runs, canaries, queue IDs, and verification evidence |
| Deliverability notes baseline | deliverability-notes.md |
Capture DNS auth status, spam-folder evidence, and bounce patterns |
| Safe execution workflow | send-flow.md |
Run draft -> preflight -> canary -> verify -> scale |
| Fault isolation guide | diagnostic-playbook.md |
Separate DNS, TLS, auth, relay, and placement failures |
| Deliverability rules | deliverability.md |
Check SPF, DKIM, DMARC, alignment, and inbox placement |
| CLI probe patterns | swaks-recipes.md |
Use deterministic SMTP tests with placeholder-only examples |
Requirements
- SMTP host access only when the user wants real network testing or live sending.
- Credentials must come from a user-approved secret source at runtime, never from files under
~/Clawic/data/smtp/. - Recommended tools:
swaksfor SMTP probes,opensslfor TLS inspection, anddigornslookupfor DNS checks. - Explicit confirmation before any live send, external-recipient test, or multi-recipient action.
Core Rules
1. Separate Draft, Probe, and Live Send
- Decide which mode the task is in before touching the network: draft-only, connectivity probe, auth probe, canary send, or live send.
- Draft and explain first. Do not jump from "help me configure SMTP" to "message sent."
2. Match Port, TLS, and Auth Exactly
- Port 465 means implicit TLS. Port 587 usually means STARTTLS. Port 25 is relay transport and is often blocked or policy-limited.
- Treat host, port, TLS mode, and auth mechanism as one contract. A single mismatch can look like a generic timeout or auth error.
3. Debug One Layer at a Time
- Validate in order: DNS and hostname, TCP reachability, TLS handshake, EHLO capabilities, auth, submission response, then mailbox placement.
- Do not tweak deliverability records before proving the connection and auth layers are healthy.
4. Keep Sender Identity Aligned
- Check whether the authenticated account, envelope sender, visible From address, DKIM domain, and return-path domain actually belong together.
- Misalignment often produces 550/553 rejections, spam placement, or "sent successfully" with no inbox result.
5. Canary Before Scale
- The first live test should target one approved canary recipient, ideally on the same org or a controlled inbox.
- Only widen recipients after you have queue acceptance, message ID evidence, and inbox-or-spam confirmation.
6. Handle Credentials and Logs Safely
- Never write raw SMTP passwords, API tokens, or full secrets into
~/Clawic/data/smtp/. - Redact logs and screenshots before storing or sharing them. Keep only the smallest evidence needed to debug.
7. Acceptance Is Not Delivery
- A
250 queuedor similar server response means the SMTP server accepted the message, not that the recipient inbox accepted it. - Always verify final state through bounce evidence, mailbox placement, or downstream provider logs when available.
Common Traps
| Trap | Why It Fails | Better Move |
|---|---|---|
| Treating port 465 and 587 as interchangeable | TLS handshake breaks or auth never starts | Match implicit TLS vs STARTTLS explicitly |
| Changing SPF before fixing auth | Wrong layer, no effect on login failure | Prove DNS, TLS, and auth separately |
Assuming 250 means inbox success |
Queue acceptance is not mailbox placement | Check spam, bounces, and final recipient evidence |
| Using external recipients as the |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- deliverability-notes.md
- deliverability.md
- diagnostic-playbook.md
- memory-template.md
- memory.md
- provider-profiles.md
- send-flow.md
- send-log.md
- setup.md
- swaks-recipes.md
FAQ
Что делает скилл SMTP?
Send, test, and debug SMTP mail flows with safe dry runs, provider-aware auth, and deliverability checks.
Как установить скилл SMTP?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл SMTP запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…