setting-up-an-email-domain
Set up a custom sending domain for PostHog Workflows email end to end: create the email sender, get its DNS records, publish them through Domain Connect or…
от PostHog★ 81 звезда на GitHub
Установить setting-up-an-email-domain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setting up an email domain
Workflows sends email from the customer's own domain.
A sender ([email protected]) cannot send until its domain is verified, and verification needs DNS records the customer publishes at their DNS host.
Your job is to get from "I want to send email" to a verified sender with as little work for the person as possible.
Tools
The update and both Domain Connect tools exist only when the project has the email from code feature enabled.
Without them, publish the records by hand, and tell the person to rename the sender or change its MAIL FROM in PostHog.
If integrations-email-create or integrations-email-status-retrieve is missing, stop and tell the person the tools are not available to them yet.
Do not fall back to integrations-create or other integration tools.
| Step | Tool |
|---|---|
| Find existing senders | integrations-list with kind=email |
| Create the sender | integrations-email-create |
| Get records, poll them | integrations-email-status-retrieve |
| Mark the sender verified | integrations-email-verify-create |
| One-click DNS support? | integrations-domain-connect-check-retrieve |
| One-click DNS URL | integrations-domain-connect-apply-url-create |
| Rename, change MAIL FROM | integrations-email-partial-update |
Listing, reading the status, checking and creating need project membership. Verifying, updating and the Domain Connect URL need project admin access, so a member can create a sender but not verify it. A 403 with "You don't have sufficient permissions in the project" means the person must ask a project admin; do not retry. A 403 with "This action is not available to API keys or OAuth tokens in this project" means the feature is off for this project: do not retry, publish the records by hand, and tell the person they can finish the step in PostHog.
Workflow
1. Pick the domain and the sender
Ask which domain to send from if the person has not said.
Recommend the mail. subdomain, for example mail.example.com, or send.example.com if mail. is taken: it keeps marketing reputation and DMARC changes away from the root domain the company uses for everyday mail.
Accept the root domain if they prefer it.
If they only give a domain, default the sender to hello@<domain> with the company name as the display name.
Tell them the display name can change later, but the address cannot: a different address needs a new sender.
Free mailbox domains such as gmail.com are rejected, and so is a domain another PostHog organization has already verified; relay that error and suggest contacting support for the second case.
If another organization has only started setting up the domain, the records of your sender include an organization TXT record that proves your organization owns the domain.
Check integrations-list with kind=email first; each sender's display_name is its address.
If a sender with the exact requested address exists, skip to step 3 with its id.
Never create it again: creating a sender for an address that already has one fails.
2. Create the sender
Call integrations-email-create with config.email and config.name.
The provider defaults to ses.
The MAIL FROM subdomain belongs to the whole domain, not to one sender: creating a sender sets it for every sender on that domain.
- When the domain already has a sender, the new sender keeps the domain's MAIL FROM subdomain whatever you pass, and the response carries the value that applies. Leave
mail_from_subdomainout. - On a new domain, leave
mail_from_subdomainat its defaultfeedback. Pick another label such asbounceonly iffeedback.<domain>already has an MX record that does not point atamazonses.com, for example from another email tool.
Pass the returned id as id to the status, verify and update tools, and as integration_id to integrations-domain-connect-apply-url-create.
3. Get the records
Call integrations-email-status-retrieve with refresh=true.
It returns the overall status, the setup steps and records; each record has a kind, a fully qualified hostname, a type, a value, an MX priority and its own status.
A record with status found or verified is already in place. Publish every record that is still pending.
If status is not_started, the email provider has no setup for this domain yet and records is empty.
Polling does not change that, so call integrations-email-verify-create once to start the setup, then call integrations-email-status-retrieve with refresh=true again to get the records.
If verifying returns the project admin permission error, ask a project admin to verify the sender.
4. Publish the records
Pick the first path that works:
- **Domain Connect (t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/publishing-records.md
FAQ
Что делает скилл setting-up-an-email-domain?
Set up a custom sending domain for PostHog Workflows email end to end: create the email sender, get its DNS records, publish them through Domain Connect or your own DNS tools, and verify until the domain can send. Use when asked to set up, connect, verify, or fix an email sender or sending domain for workflows, broadcasts, or campaigns, or when DNS records for SPF, DKIM, DMARC, or MAIL FROM are missing.
Как установить скилл setting-up-an-email-domain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setting-up-an-email-domain запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…