mailtrap-setting-up-sending-domain – skill Khác cho agent AI
Thêm hoặc xác minh sending domain của Mailtrap, khắc phục lỗi lan truyền DNS, thiết lập bản ghi SPF/DKIM/DMARC và hoàn tất tuân thủ.
Cài skill mailtrap-setting-up-sending-domain bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/mailtrap-setting-up-sending-domain-51b92.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /mailtrap-setting-up-sending-domain – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/mailtrap-setting-up-sending-domain-51b92.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $mailtrap-setting-up-sending-domain – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/mailtrap-setting-up-sending-domain-51b92.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /mailtrap-setting-up-sending-domain – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/mailtrap-setting-up-sending-domain-51b92.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /mailtrap-setting-up-sending-domain – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Setting up a Mailtrap sending domain
Overview
You must add and verify a domain you control before live sending. Mailtrap shows every DNS record required for that domain in the UI: add the complete set as given (do not cherry-pick). After DNS verifies, complete the compliance step if requested.
Subdomain vs root: add the exact hostname you will use in the From address. If you send from notifications.mycompany.com, add that subdomain as the sending domain—not only mycompany.com, unless you truly send from the root domain.
For step-by-step clicks at common hosts, open the matching guide on [Sending domain setup](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain.md) (Cloudflare, Route 53, etc.) and follow it alongside the live UI values.
Related skills: mailtrap-sending-emails (after domain is ready).
When to use
- New Sending Domains setup, stuck verification, or compliance questions
- DNS at Cloudflare, AWS, Google, Namecheap, GoDaddy, DigitalOcean, etc.
When not to use
- Sandbox-only testing without a custom domain (see
mailtrap-testing-with-sandbox)
Authorization
The Sending Domains API calls below need Authorization: Bearer $MAILTRAP_API_TOKEN and an $MAILTRAP_ACCOUNT_ID in the path. Resolve $MAILTRAP_ACCOUNT_ID from GET https://mailtrap.io/api/accounts, and store tokens in environment variables or a secrets manager.
Automating setup (API and DNS providers)
Prefer this path when building scripts or AI-assisted automation:
1. DNS records and status via API — Use the Sending Domains API:
GET https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/sending_domains— lists domainsGET https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/sending_domains/{sending_domain_id}— returnsdns_records(each withtype,name,value, and verificationstatus) anddns_verified. Poll after you publish DNS.
2. Create domain via API —
POST https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/sending_domainswithdomain_namewhen your flow provisions domains programmatically.
3. Publish DNS programmatically —
- Create the returned records at your DNS host using their API (e.g., [Cloudflare API](https://developers.cloudflare.com/api/), AWS Route 53, Google Cloud DNS) or IaC. Align record names and values exactly with the API response.
Human fallback: Sending Domains > Add domain > copy values into the registrar UI > Verify when API automation is not available.
Workflow (summary)
1. Sending Domains > Add domain and enter the domain name.
2. Obtain required records from the UI or Sending Domains API; create all listed records at your DNS host exactly as shown (names, types, values).
3. Wait for DNS propagation. If verification stays pending, use dig, nslookup, or an online DNS lookup to confirm each record is visible publicly before clicking Verify again.
4. Complete the compliance flow when prompted.
Product walkthrough: [Sending domain setup](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain.md).
DNS provider guides (documentation)
Mailtrap publishes click-path guides for common providers. Open the page that matches the user's DNS host and follow it together with the live UI records:
- [Cloudflare](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/cloudflare.md)
- [AWS Route 53](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/aws-route-53.md)
- [Google Cloud DNS](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/google-cloud-dns.md)
- [Squarespace](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/squarespace.md) (includes former Google Domains transition notes where applicable)
- [GoDaddy](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/godaddy.md)
- [Namecheap](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/namecheap.md)
- [DigitalOcean](https://docs.mailtrap.io/email-api-smtp/setup/sending-domain/digitalocean.md)
If the user's provider is not listed, the same rule applies: copy every record from Mailtrap into the DNS zone that serves the From domain.
Before editing DNS, inspect existing records and zone ownership. Do not create a second SPF TXT policy at the same name or overwrite an existing DMARC policy blindly; reconcile provider-required changes with current mail senders, TTLs and policy owners. Preserve a preimage/rollback and verify authoritative DNS plus Mailtrap status. DNS verification is not permission to send mail or claim deliverability/compliance completed.
Important DNS caveat (proxied DNS)
If your DNS provider proxies records (orange-cloud on Cloudflare, similar CDN/proxy modes elsewhere), verification-related records must be DNS-only (grey cloud / non-proxied) unless Mailtrap documentation explicitly allows proxying—proxied CNAMEs and similar often break SPF/DKIM verification. The same constraint applies to any host that fronts DNS with a proxy.
Example
User request:
> Add or verify a Mailtrap sending domain, troubleshoot DNS propagation, publish SPF/DKIM/DMARC records, and complete compliance.
Limitations
- DNS and compliance screens can change; always copy the exact current records from Mailtrap before publishing DNS.
Skill liên quan
- makepad-basics – QUAN TRỌNG: Dùng cho bước đầu với Makepad và cấu trúc ứng dụng. Kích hoạt khi gặp…
- makepad-dsl – CRITICAL: Dùng cho cú pháp DSL và kế thừa của Makepad. Kích hoạt khi: makepad dsl…
- makepad-font – CRITICAL: Dùng cho font và hiển thị văn bản trong Makepad. Kích hoạt khi: makepad font…
- makepad-layout – CRITICAL: Dùng cho hệ thống bố cục (layout) của Makepad. Kích hoạt khi: makepad layout…
- makepad-reference – Hướng dẫn chẩn đoán lỗi build, widget, redraw và layout của Makepad theo đúng revision…
- makepad-shaders – CRITICAL: Dùng cho hệ thống shader của Makepad. Kích hoạt khi: makepad shader, makepad…
- makepad-splash – CRITICAL: Dùng cho ngôn ngữ kịch bản Makepad Splash. Kích hoạt khi: splash language…
- markstream-angular – Tích hợp renderer markstream-angular (alpha) vào ứng dụng Angular 20+ với standalone…