Domain Lockdown is a DNS-based security feature that tells MailChannels which
accounts or sender identities may send email from your domain. MailChannels
blocks mail when the authenticated account or sender identity is not listed in
your DNS record.For each domain you send from, create a TXT record at the _mailchannels
subdomain:
v=mc1 identifies the Domain Lockdown record version. Always include this
field.
auth= allows a MailChannels account or sub-account ID to send from the domain.
senderid= allows one exact sender ID.
sidw= allows one sender ID pattern with a limited wildcard *.
You must include at least one auth, senderid, or sidw field to specify
the authorized account or sender. You may include more than one auth,
senderid, or sidw field in the same record. A message is allowed if any
field matches.
Domain Lockdown by Cloudflare Worker ID (cfid) is no longer supported as of August 31, 2024.
Your MailChannels account ID is shown in the panel footer when you log in.
Sub-account IDs are listed on the sub-accounts page.To find a sender ID, check the headers of a message sent through MailChannels:
X-MailChannels-SenderId: examplecorp|x-authsender|billing@example.comX-MailChannels-Auth-Id: examplecorpContent-Type: text/plain; charset="utf-8"Date: Mon, 22 Aug 2022 14:15:57 -0500From: billing@example.comTo: customer@example.netSubject: Your invoice is ready
Use the X-MailChannels-Auth-Id value in an auth= field. Note that messages
sent by a sub-account will show the sub-account ID here, not the parent.
Use the X-MailChannels-SenderId value in a senderid= field, or as a
reference when writing a sidw= pattern.
This is the simplest setup and works well when a small number of accounts control
all authorized sending for the domain.Use senderid when only specific sender identities should be allowed.
Messages from the same MailChannels account with any other sender ID are blocked
by this record.Use sidw to allow a controlled group of sender IDs without listing every
address individually.
This is useful for hosting providers, agencies, or platforms where multiple
customers send through the same MailChannels account and auth would be too
broad.
In the sender part of a sidw pattern, * is a wildcard. To match a literal
asterisk, write \*. To match a literal backslash, write \\.For example, this record matches
examplecorp|x-authsender|*depart\billing@example.com and
examplecorp|x-authsender|*depart\alerts@example.com:
Escaping any other character, such as \a, makes the sidw pattern invalid.Some DNS providers process backslashes before publishing the TXT record. After
creating the record, verify the value DNS returns:
After publishing the DNS record, confirm the expected TXT value is visible:Use the check-domain tool, or use the check-domain API
to verify:
#!/usr/bin/env bash# Check that a domain's DKIM, SPF, and Domain Lockdown records are configured# correctly and have propagated.set -u: "${MAILCHANNELS_API_KEY:?Set MAILCHANNELS_API_KEY before running}": "${DOMAIN:?Set DOMAIN (the sending domain, e.g. example.com)}"curl -X POST "https://api.mailchannels.net/tx/v1/check-domain" \ -H "Content-Type: application/json" \ -H "X-Api-Key: $MAILCHANNELS_API_KEY" \ -d @- <<JSON{ "domain": "$DOMAIN"}JSON
import { MailChannels } from "mailchannels-sdk";const { MAILCHANNELS_API_KEY, DOMAIN } = process.env;if (!MAILCHANNELS_API_KEY) throw new Error("Set MAILCHANNELS_API_KEY before running");if (!DOMAIN) throw new Error("Set DOMAIN (the sending domain, e.g. example.com)");const mailchannels = new MailChannels(MAILCHANNELS_API_KEY);const { data, error } = await mailchannels.domains.check(DOMAIN);if (error) { console.error("Check domain failed:", error); process.exit(1);}console.log(data);
import osimport sysimport mailchannelsif not os.environ.get("MAILCHANNELS_API_KEY"): sys.exit("Set MAILCHANNELS_API_KEY before running")domain = os.environ.get("DOMAIN")if not domain: sys.exit("Set DOMAIN (the sending domain, e.g. example.com)")# Check that DKIM, SPF, and Domain Lockdown records are configured correctly# and have propagated.response = mailchannels.CheckDomain.check(domain)print(response)
<?phprequire_once __DIR__ . '/vendor/autoload.php';use MailChannels\Client;$api_key = getenv('MAILCHANNELS_API_KEY') or exit("Error: MAILCHANNELS_API_KEY is not set\n");$domain = getenv('DOMAIN') or exit("Error: DOMAIN is not set\n");$client = new Client(apiKey: $api_key);// Check that DKIM, SPF, and Domain Lockdown records are configured correctly// and have propagated.$response = $client->checkDomain->check($domain);print_r($response->toArray());
Use this table for reference when a sidw rule is present in DNS but does
not match the sender ID you expect. Invalid sidw patterns are skipped
while MailChannels continues evaluating any other fields in the record.
Start with the narrowest rule that matches your sending model: auth for one
trusted account, senderid or sidw for shared sending environments.
Keep records simple and prefer a few clear fields over broad wildcard patterns.
Review Domain Lockdown records when you add new sending systems, customer
domains, or sender ID formats.
Remove old auth, senderid, and sidw fields when they are no longer
needed.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MailChannels","description":"MailChannels email platform documentation — Email API, Outbound Filtering, and Inbound Filtering.","colors":{"primary":"#1E3A5F","light":"#6BA3D0","dark":"#1E3A5F"},"logo":{"light":"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Light_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=edceff94929b18cb41691d3277e58baa","dark":"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Dark_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=9f8675d2f6f8fc2af622c2db79440a45"},"favicon":{"light":"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png","dark":"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png"},"api":{"examples":{"languages":["javascript","python","php","curl"],"autogenerate":true}},"appearance":{"default":"system"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#12131A"}},"navbar":{"links":[{"href":"https://status.mailchannels.net/","label":"System Status"},{"href":"https://support.mailchannels.com/hc/en-us/requests/new","label":"Support"}],"primary":{"type":"button","label":"Log in","href":"https://dash.mailchannels.com"}},"footer":{"socials":{"website":"https://mailchannels.com"},"links":[{"header":"For developers","items":[{"label":"Email API OpenAPI spec","href":"https://docs.mailchannels.com/email-api/api-reference/openapi.yaml"},{"label":"Official SDKs","href":"https://docs.mailchannels.com/email-api/official-libraries"},{"label":"Pricing and free plan","href":"https://docs.mailchannels.com/email-api/billing/pricing"}]},{"header":"For AI agents","items":[{"label":"llms.txt","href":"https://docs.mailchannels.com/llms.txt"},{"label":"llms-full.txt","href":"https://docs.mailchannels.com/llms-full.txt"}]}]},"seo":{"metatags":{"canonical":"https://docs.mailchannels.com"}},"fonts":{"heading":{"family":"Roboto","weight":600},"body":{"family":"Roboto","weight":400}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","assistant","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mailchannelscorporation","hasAudioNarration":false,"actualSubdomain":"mailchannelscorporation","customDomains":["docs.mailchannels.com"],"gitSource":{"type":"github","owner":"mailchannels","repo":"mc-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aee2ebc53bbcb625325dd19","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Email API","count":106},{"language":"default","tag":"API Reference","count":80},{"language":"default","tag":"Outbound Filtering","count":61},{"language":"default","tag":"Inbound Filtering","count":46},{"language":"default","tag":"Get Started","count":39},{"language":"default","tag":"Mail Server Setup","count":20},{"language":"default","tag":"Troubleshooting","count":15},{"language":"default","tag":"Sub-accounts","count":15},{"language":"default","tag":"Configuration","count":13},{"language":"default","tag":"Billing \u0026 Account Management","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mailchannels.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--mc-logo-width: 14rem;--mc-logo-clearspace-height: 7.375rem;--mc-navbar-tabs-height: 3rem;--mc-navbar-height: calc(var(--mc-logo-clearspace-height) + var(--mc-navbar-tabs-height))}:is(h1,h2,h3,h4,h5,h6),[data-component-part=\"card-title\"]{font-family:Roboto, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;font-weight:700;letter-spacing:0}:is(p,li,td,th),[data-component-part=\"card-content\"]{font-family:Roboto, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif}toc-item>a{position:relative;padding-left:1rem!important}toc-item[data-active-deepest]>a::before{content:\"\";position:absolute;left:0;top:50%;width:0.75rem;height:0.75rem;transform:translateY(-50%);background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;pointer-events:none}.nav-tabs-item,#sidebar li[data-active=\"true\"]>a{text-shadow:none!important}#navbar{min-height:var(--mc-navbar-height)!important}#sidebar{top:var(--mc-navbar-height)!important;height:calc(100vh - var(--mc-navbar-height))!important}#navbar>.max-w-8xl>div>.relative,#navbar .h-16{height:var(--mc-logo-clearspace-height)!important}#navbar .h-full{height:100%!important}#navbar a[href=\"/\"] img,#navbar a[href=\"/\"] svg,#sidebar a[href=\"/\"] img,#sidebar a[href=\"/\"] svg{width:var(--mc-logo-width)!important;max-width:var(--mc-logo-width)!important;height:auto!important;max-height:none!important;object-fit:contain!important}#search-bar-entry,#assistant-entry,li.navbar-link>:is(a,button){border-radius:9999px!important;height:2.25rem!important;padding:0 1rem!important}[data-component-part=\"products-selector-trigger\"]{background-color:rgb(var(--background-light));border-radius:0.75rem!important;height:2.25rem!important;padding:0 0.75rem!important;transition:background-color 0.15s ease-out, box-shadow 0.15s ease-out!important;.dark \u0026 {\n background-color: rgb(var(--background-dark));\n }}.nav-dropdown-products-selector-item-icon{background:rgb(var(--primary));color:#ffffff!important;border-radius:0.375rem!important;aspect-ratio:1;svg {\n background-color: #ffffff;\n }}[data-component-part=\"products-selector-trigger\"]{position:relative;--icon-left-offset: 0.05rem;\u0026::before{content:\"\";position:absolute;top:50%;left:calc(0.5rem - var(--icon-left-offset));transform:translateY(-50%);width:1.5rem;height:1.5rem;border-radius:0.5rem;background:rgb(var(--primary));pointer-events:none}svg:not(:last-child) {\n position: relative;\n z-index: 1;\n filter: brightness(0) invert(1);\n margin-right: 0.25rem;\n margin-left: calc(-1 * var(--icon-left-offset));\n }}#search-bar-entry,#assistant-entry{transition:opacity 0.15s ease-out;body:has(#custom-homepage-assistant-entry) \u0026 {\n opacity: 0;\n pointer-events: none;\n }}#topbar-cta-button{padding:0!important;height:auto!important;\u0026,*,>*{border-radius:9999px!important}> :is(a, button, div, span) {\n height: 2.25rem !important;\n padding: 0 1rem !important;\n display: inline-flex !important;\n align-items: center !important;\n gap: 0.375rem !important;\n overflow: hidden !important;\n transition: background-color 0.15s ease-out !important;\n }}#topbar-cta-button>:is(a,button) span{background-color:rgb(var(--primary-dark))!important;font-weight:600}.dark #topbar-cta-button>:is(a,button) span{background-color:rgb(var(--primary-light))!important}.dark #topbar-cta-button>:is(a,button) :is(span,svg,svg *){color:rgb(var(--primary))!important}.dark #topbar-cta-button>:is(a,button) svg{stroke:currentColor!important}ul:is(:has(>#topbar-cta-button),:has(>li.navbar-link)){gap:0.25rem!important;> li + li {\n margin-left: 0.125rem !important;\n }}[data-popular-search]{border-radius:0.375rem!important;font-family:Roboto, sans-serif;letter-spacing:0!important}.card{border-radius:0.5rem!important;box-shadow:none!important}[data-component-part=\"card-icon\"]{color:#36A048}[data-component-part=\"card-icon\"] svg{stroke:#36A048;background-color:#36A048;stroke-width:1;stroke-linecap:round!important;stroke-linejoin:round!important}.card [data-component-part=\"card-icon\"]{background:rgba(54, 160, 72, 0.08);border-radius:0.5rem!important;display:grid!important;place-items:center!important;width:2.25rem!important;height:2.25rem!important}code{border-radius:0.375rem!important}.columns.suggested-articles{gap:1.5rem 2rem}"}],"page":{"pagePath":"email-api/domain-lockdown","slug":"/email-api/domain-lockdown","pageMetadata":{"title":"Domain Lockdown","sidebarTitle":"Domain Lockdown","description":"Learn how to set up your DNS record for Domain Lockdown.","href":"/email-api/domain-lockdown"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to set up your DNS record for Domain Lockdown.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-is-domain-lockdown`,children:`What is Domain Lockdown?`}),`\n`,_jsx(_components.p,{children:`Domain Lockdown is a DNS-based security feature that tells MailChannels which\naccounts or sender identities may send email from your domain. MailChannels\nblocks mail when the authenticated account or sender identity is not listed in\nyour DNS record.`}),`\n`,_jsxs(_components.p,{children:[`For each domain you send from, create a `,_jsx(_components.code,{children:`TXT`}),` record at the `,_jsx(_components.code,{children:`_mailchannels`}),`\nsubdomain:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 auth=examplecorp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`This record allows the MailChannels account `,_jsx(_components.code,{children:`examplecorp`}),` to send mail from\n`,_jsx(_components.code,{children:`example.com`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`record-format`,children:`Record format`}),`\n`,_jsx(_components.p,{children:`A Domain Lockdown record is a space-separated list of fields:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 auth=examplecorp senderid=examplecorp|x-authsender|billing@example.com sidw=examplecorp|x-authsender|billing*@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`v=mc1`}),` identifies the Domain Lockdown record version. Always include this\nfield.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`auth=`}),` allows a MailChannels account or sub-account ID to send from the domain.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`senderid=`}),` allows one exact sender ID.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`sidw=`}),` allows one sender ID pattern with a limited wildcard `,_jsx(_components.code,{children:`*`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You must include at least one `,_jsx(_components.code,{children:`auth`}),`, `,_jsx(_components.code,{children:`senderid`}),`, or `,_jsx(_components.code,{children:`sidw`}),` field to specify\nthe authorized account or sender. You may include more than one `,_jsx(_components.code,{children:`auth`}),`,\n`,_jsx(_components.code,{children:`senderid`}),`, or `,_jsx(_components.code,{children:`sidw`}),` field in the same record. A message is allowed if any\nfield matches.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Domain Lockdown by Cloudflare Worker ID (cfid) is no longer supported as of August 31, 2024.`})}),`\n`,_jsx(Heading,{level:`3`,id:`finding-your-account-id-and-sender-id`,children:`Finding your account ID and sender ID`}),`\n`,_jsxs(_components.p,{children:[`Your MailChannels account ID is shown in the `,_jsx(_components.a,{href:`https://dash.mailchannels.com`,children:`panel footer`}),` when you log in.\nSub-account IDs are listed on the `,_jsx(_components.a,{href:`https://dash.mailchannels.com/sub-accounts`,children:`sub-accounts page`}),`.`]}),`\n`,_jsx(_components.p,{children:`To find a sender ID, check the headers of a message sent through MailChannels:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-MailChannels-SenderId: examplecorp|x-authsender|billing@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`X-MailChannels-Auth-Id: examplecorp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Content-Type: text/plain; charset=\"utf-8\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Date: Mon, 22 Aug 2022 14:15:57 -0500`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`From: billing@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`To: customer@example.net`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Subject: Your invoice is ready`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(_components.code,{children:`X-MailChannels-Auth-Id`}),` value in an `,_jsx(_components.code,{children:`auth=`}),` field. Note that messages\nsent by a sub-account will show the sub-account ID here, not the parent.`]}),`\n`,_jsxs(_components.li,{children:[`Use the `,_jsx(_components.code,{children:`X-MailChannels-SenderId`}),` value in a `,_jsx(_components.code,{children:`senderid=`}),` field, or as a\nreference when writing a `,_jsx(_components.code,{children:`sidw=`}),` pattern.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`choosing-a-lockdown-method`,children:`Choosing a lockdown method`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`auth`}),` when every sender under a MailChannels account should be allowed to\nsend from the domain.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 auth=examplecorp`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`To authorize a sub-account to also send from the domain:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 auth=examplecorp auth=examplecorp_sub`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This is the simplest setup and works well when a small number of accounts control\nall authorized sending for the domain.`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`senderid`}),` when only specific sender identities should be allowed.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 senderid=examplecorp|x-authsender|billing@example.com senderid=examplecorp|x-authsender|alerts@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Messages from the same MailChannels account with any other sender ID are blocked\nby this record.`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`sidw`}),` to allow a controlled group of sender IDs without listing every\naddress individually.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 sidw=examplecorp|x-authsender|*.head@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`This is useful for hosting providers, agencies, or platforms where multiple\ncustomers send through the same MailChannels account and `,_jsx(_components.code,{children:`auth`}),` would be too\nbroad.`]}),`\n`,_jsx(Heading,{level:`3`,id:`sender-id-wildcard`,children:`Sender ID wildcard`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`sidw`}),` field supports one `,_jsx(_components.code,{children:`*`}),` wildcard in the sender part of the sender ID.\nThe wildcard matches any number of characters.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 sidw=examplecorp|x-authsender|billing*@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This allows sender IDs such as:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`examplecorp|x-authsender|billing.no-reply@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`examplecorp|x-authsender|billing.alerts@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`examplecorp|x-authsender|billing@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sidw`}),` patterns must follow these rules:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Format`}),`: exactly three pipe-separated parts:\n`,_jsx(_components.code,{children:`\u003caccount>|\u003csender-type>|\u003csender>`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pipe character`}),`: `,_jsx(_components.code,{children:`|`}),` is always a separator. Do not include a literal `,_jsx(_components.code,{children:`|`}),`\nin the sender part; use `,_jsx(_components.code,{children:`*`}),` to match across that portion instead.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Constraint`}),`: edge cases such as `,_jsx(_components.code,{children:`\u003caccount>|mailer-daemon|\u003cclientip>|NOTNDR`}),` are not supported.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Wildcard`}),`: one wildcard is permitted only in the sender part. A standalone\nwildcard, such as `,_jsx(_components.code,{children:`examplecorp|x-authsender|*`}),`, is prohibited.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Invalid `,_jsx(_components.code,{children:`sidw`}),` patterns are skipped. Use `,_jsx(_components.a,{href:`#testing-your-setup`,children:`Testing Your Setup`}),`\nto confirm that your record matches the sender IDs you expect.`]})}),`\n`,_jsxs(Heading,{level:`4`,id:`escaping-in-sidw-patterns`,children:[`Escaping in `,_jsx(_components.code,{children:`sidw`}),` patterns`]}),`\n`,_jsxs(_components.p,{children:[`In the sender part of a `,_jsx(_components.code,{children:`sidw`}),` pattern, `,_jsx(_components.code,{children:`*`}),` is a wildcard. To match a literal\nasterisk, write `,_jsx(_components.code,{children:`\\\\*`}),`. To match a literal backslash, write `,_jsx(_components.code,{children:`\\\\\\\\`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`For example, this record matches\n`,_jsx(_components.code,{children:`examplecorp|x-authsender|*depart\\\\billing@example.com`}),` and\n`,_jsx(_components.code,{children:`examplecorp|x-authsender|*depart\\\\alerts@example.com`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`_mailchannels.example.com TXT v=mc1 sidw=examplecorp|x-authsender|\\\\*depart\\\\\\\\*@example.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Escaping any other character, such as `,_jsx(_components.code,{children:`\\\\a`}),`, makes the `,_jsx(_components.code,{children:`sidw`}),` pattern invalid.`]}),`\n`,_jsx(_components.p,{children:`Some DNS providers process backslashes before publishing the TXT record. After\ncreating the record, verify the value DNS returns:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`resolvectl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` query`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --type=TXT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` _mailchannels.example.com`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`MailChannels evaluates the published TXT value, so adjust your input until DNS\nreturns the intended record.`}),`\n`,_jsx(Heading,{level:`3`,id:`testing-your-setup`,children:`Testing your setup`}),`\n`,_jsx(_components.p,{children:`After publishing the DNS record, confirm the expected TXT value is visible:`}),`\n`,_jsxs(_components.p,{children:[`Use the `,_jsx(_components.a,{href:`https://dash.mailchannels.com/domain-health`,children:`check-domain tool`}),`, or use the check-domain API\nto verify:`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`#!/usr/bin/env bash`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check that a domain's DKIM, SPF, and Domain Lockdown records are configured`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# correctly and have propagated.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` before`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` running`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DOMAIN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DOMAIN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`the`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sending`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` domain`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`. `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`com`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`)}\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.mailchannels.net/tx/v1/check-domain\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Api-Key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JSON`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"domain\": \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$DOMAIN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`JSON`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`15`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MailChannels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mailchannels-sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`DOMAIN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set MAILCHANNELS_API_KEY before running\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`DOMAIN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set DOMAIN (the sending domain, e.g. example.com)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mailchannels`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MailChannels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MAILCHANNELS_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mailchannels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`domains`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`check`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`DOMAIN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Check domain failed:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`exit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sys`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mailchannels`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os.environ.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MAILCHANNELS_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sys.exit(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set MAILCHANNELS_API_KEY before running\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`domain `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os.environ.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DOMAIN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` domain:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sys.exit(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Set DOMAIN (the sending domain, e.g. example.com)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check that DKIM, SPF, and Domain Lockdown records are configured correctly`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# and have propagated.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mailchannels.CheckDomain.check(domain)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`16`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`require_once`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` __DIR__`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/vendor/autoload.php'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`use`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` MailChannels\\\\`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` getenv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'MAILCHANNELS_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`or`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` exit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error: MAILCHANNELS_API_KEY is not set`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$domain`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` getenv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'DOMAIN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`or`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` exit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error: DOMAIN is not set`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$api_key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Check that DKIM, SPF, and Domain Lockdown records are configured correctly`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// and have propagated.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`checkDomain`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`check`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$domain`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print_r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toArray`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`]})})})]}),`\n`,_jsxs(Heading,{level:`4`,id:`troubleshooting-invalid-sidw-patterns`,children:[`Troubleshooting invalid `,_jsx(_components.code,{children:`sidw`}),` patterns`]}),`\n`,_jsxs(_components.p,{children:[`Use this table for reference when a `,_jsx(_components.code,{children:`sidw`}),` rule is present in DNS but does\nnot match the sender ID you expect. Invalid `,_jsx(_components.code,{children:`sidw`}),` patterns are skipped\nwhile MailChannels continues evaluating any other fields in the record.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Invalid pattern`}),_jsx(_components.th,{children:`Why it is skipped`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(`code`,{children:`sidw=*|x-authsender|sender*@example.com`})}),_jsxs(_components.td,{children:[`Wildcard `,_jsx(_components.code,{children:`*`}),` is allowed only in the sender part.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(`code`,{children:`sidw=examplecorp|x-authsender|*`})}),_jsx(_components.td,{children:`The wildcard cannot be the entire sender part.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(`code`,{children:`sidw=examplecorp|x-authsender|*sender*@example.com`})}),_jsx(_components.td,{children:`More than one wildcard is present.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(`code`,{children:`sidw=examplecorp|x-authsender|sender|*@example.com`})}),_jsxs(_components.td,{children:[`The extra `,_jsx(`code`,{children:`|`}),` creates a fourth part. `,_jsx(_components.code,{children:`sidw`}),` must have exactly three pipe-separated parts.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(`code`,{children:`sidw=examplecorp|x-authsender|se\\\\nder*@example.com`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\\\\n`}),` is not a valid escape sequence. In the sender part, only `,_jsx(_components.code,{children:`\\\\*`}),` and `,_jsx(_components.code,{children:`\\\\\\\\`}),` are valid escapes.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`best-practices`,children:`Best practices`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Start with the narrowest rule that matches your sending model: `,_jsx(_components.code,{children:`auth`}),` for one\ntrusted account, `,_jsx(_components.code,{children:`senderid`}),` or `,_jsx(_components.code,{children:`sidw`}),` for shared sending environments.`]}),`\n`,_jsx(_components.li,{children:`Keep records simple and prefer a few clear fields over broad wildcard patterns.`}),`\n`,_jsx(_components.li,{children:`Review Domain Lockdown records when you add new sending systems, customer\ndomains, or sender ID formats.`}),`\n`,_jsxs(_components.li,{children:[`Remove old `,_jsx(_components.code,{children:`auth`}),`, `,_jsx(_components.code,{children:`senderid`}),`, and `,_jsx(_components.code,{children:`sidw`}),` fields when they are no longer\nneeded.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Domain Lockdown","sidebarTitle":"Domain Lockdown","description":"Learn how to set up your DNS record for Domain Lockdown.","href":"/email-api/domain-lockdown"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What is Domain Lockdown?","slug":"what-is-domain-lockdown","depth":2,"children":[{"title":"Record format","slug":"record-format","depth":3,"children":[]},{"title":"Finding your account ID and sender ID","slug":"finding-your-account-id-and-sender-id","depth":3,"children":[]},{"title":"Choosing a lockdown method","slug":"choosing-a-lockdown-method","depth":3,"children":[]},{"title":"Sender ID wildcard","slug":"sender-id-wildcard","depth":3,"children":[]},{"title":"Escaping in sidw patterns","slug":"escaping-in-sidw-patterns","depth":4,"children":[]},{"title":"Testing your setup","slug":"testing-your-setup","depth":3,"children":[]},{"title":"Troubleshooting invalid sidw patterns","slug":"troubleshooting-invalid-sidw-patterns","depth":4,"children":[]},{"title":"Best practices","slug":"best-practices","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mailchannelscorporation/eaffec8e65cd9c3a/search.js"],"subdomain":"mailchannelscorporation","siteName":"MailChannels","title":"Domain Lockdown - MailChannels","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-17T16:49:20.515Z","originalFileLocation":"email-api/domain-lockdown.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to set up your DNS record for Domain Lockdown.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MailChannels\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1905386c-3c6f-4c57-84d6-872e7dd5f936.png\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Domain Lockdown - MailChannels\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to set up your DNS record for Domain Lockdown.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MailChannels\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mailchannels.com/email-api/domain-lockdown\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mailchannelscorporation.mintlify.site/_mintlify/api/og/v2?division=Authentication+%26+Account+Setup\u0026amp;title=Domain+Lockdown\u0026amp;description=Learn+how+to+set+up+your+DNS+record+for+Domain+Lockdown.\u0026amp;theme=06ed90d9d16f3e705ce8c66b\u0026amp;signature=e8de42564cf26ff67a56f4969ab1433eed7d9bc507c30dc8f42875b582ca6a08\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Domain Lockdown - MailChannels\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to set up your DNS record for Domain Lockdown.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mailchannelscorporation.mintlify.site/_mintlify/api/og/v2?division=Authentication+%26+Account+Setup\u0026amp;title=Domain+Lockdown\u0026amp;description=Learn+how+to+set+up+your+DNS+record+for+Domain+Lockdown.\u0026amp;theme=06ed90d9d16f3e705ce8c66b\u0026amp;signature=e8de42564cf26ff67a56f4969ab1433eed7d9bc507c30dc8f42875b582ca6a08\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/mailchannelscorporation/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MailChannels\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1E3A5F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mailchannels.com/email-api/domain-lockdown\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/email-api/domain-lockdown.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mailchannels.com/#organization\",\"name\":\"MailChannels\",\"url\":\"https://docs.mailchannels.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mailchannelscorporation/82jCZhYczGMlrqqs/images/MC_Logo_Full_Color_Light_Background_RGB_clearspace.png?fit=max\u0026auto=format\u0026n=82jCZhYczGMlrqqs\u0026q=85\u0026s=edceff94929b18cb41691d3277e58baa\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mailchannels.com#website\",\"name\":\"MailChannels\",\"url\":\"https://docs.mailchannels.com\",\"publisher\":{\"@id\":\"https://docs.mailchannels.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mailchannels.com/email-api/domain-lockdown#webpage\",\"url\":\"https://docs.mailchannels.com/email-api/domain-lockdown\",\"name\":\"Domain Lockdown\",\"description\":\"Learn how to set up your DNS record for Domain Lockdown.\",\"dateModified\":\"2026-08-17T16:49:20.515Z\",\"isPartOf\":{\"@id\":\"https://docs.mailchannels.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mailchannels.com/email-api/domain-lockdown#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mailchannels.com/email-api/domain-lockdown#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Authentication \u0026 Account Setup\",\"item\":\"https://docs.mailchannels.com/email-api/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Domain Lockdown\",\"item\":\"https://docs.mailchannels.com/email-api/domain-lockdown\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mailchannels.com/email-api/domain-lockdown#article\",\"headline\":\"Domain Lockdown\",\"name\":\"Domain Lockdown\",\"description\":\"Learn how to set up your DNS record for Domain Lockdown.\",\"url\":\"https://docs.mailchannels.com/email-api/domain-lockdown\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mailchannels.com/email-api/domain-lockdown#webpage\"},\"dateModified\":\"2026-08-17T16:49:20.515Z\",\"publisher\":{\"@id\":\"https://docs.mailchannels.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mailchannels.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MailChannels\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MailChannels","nav":{"global":null,"tabs":[{"tab":"Email API","groups":[{"group":"Get Started","pages":[{"title":"MailChannels Email API: transactional email for platforms","sidebarTitle":"Overview","href":"/email-api/overview"},{"title":"Email API vs SMTP","sidebarTitle":"Email API vs SMTP","href":"/email-api/email-api-vs-smtp"},{"group":"Quickstart","expanded":true,"pages":[{"title":"cURL quickstart","sidebarTitle":"cURL","icon":"envelope","href":"/email-api/curl/quickstart"},{"title":"Node.js quickstart","sidebarTitle":"Node.js","icon":"envelope","href":"/email-api/javascript/quickstart"},{"title":"Python quickstart","sidebarTitle":"Python","icon":"envelope","href":"/email-api/python/quickstart"},{"title":"PHP quickstart","sidebarTitle":"PHP","icon":"envelope","href":"/email-api/php/quickstart"}]},{"group":"SDKs \u0026 libraries","pages":[{"title":"Official libraries","sidebarTitle":"Official libraries","href":"/email-api/official-libraries"},{"title":"Laravel","sidebarTitle":"Laravel","href":"/email-api/laravel"},{"title":"Symfony","sidebarTitle":"Symfony","href":"/email-api/symfony"},{"title":"Nodemailer","sidebarTitle":"Nodemailer","href":"/email-api/nodemailer"},{"title":"Nuxt community integration","sidebarTitle":"Nuxt","href":"/email-api/integrations/nuxt"}]},{"title":"Local development","sidebarTitle":"Local development","href":"/email-api/local-development"},{"title":"MailChannels Email API: pricing, plans, and limits","sidebarTitle":"Pricing and limits","href":"/email-api/billing/pricing"}]},{"group":"API Reference","expanded":false,"pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/email-api/api-reference-introduction"},{"group":"DKIM","pages":[{"title":"DKIM, SPF \u0026 Domain Lockdown Check","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /check-domain","href":"/api-reference/dkim/dkim-spf-\u0026-domain-lockdown-check"},{"title":"Retrieve DKIM Keys","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /domains/{domain}/dkim-keys","href":"/api-reference/dkim/retrieve-dkim-keys"},{"title":"Create DKIM Key Pair","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /domains/{domain}/dkim-keys","href":"/api-reference/dkim/create-dkim-key-pair"},{"title":"Update DKIM Key Status","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml patch /domains/{domain}/dkim-keys/{selector}","href":"/api-reference/dkim/update-dkim-key-status"},{"title":"Rotate DKIM Key Pair","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /domains/{domain}/dkim-keys/{selector}/rotate","href":"/api-reference/dkim/rotate-dkim-key-pair"}]},{"group":"Custom Tracking","pages":[{"title":"Retrieve Custom Tracking Domains","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /custom-tracking-domains","href":"/api-reference/custom-tracking/retrieve-custom-tracking-domains"},{"title":"Register Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /custom-tracking-domains","href":"/api-reference/custom-tracking/register-custom-tracking-domain"},{"title":"Delete Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /custom-tracking-domains/{hostname}/{scope}","href":"/api-reference/custom-tracking/delete-custom-tracking-domain"},{"title":"Update Custom Tracking Domain","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml patch /custom-tracking-domains/{hostname}/{scope}","href":"/api-reference/custom-tracking/update-custom-tracking-domain"}]},{"group":"Metrics","pages":[{"title":"Retrieve Engagement Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/engagement","href":"/api-reference/metrics/retrieve-engagement-metrics"},{"title":"Retrieve Performance Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/performance","href":"/api-reference/metrics/retrieve-performance-metrics"},{"title":"Retrieve Recipient Behaviour Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/recipient-behaviour","href":"/api-reference/metrics/retrieve-recipient-behaviour-metrics"},{"title":"Retrieve Sender Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/senders/{sender_type}","href":"/api-reference/metrics/retrieve-sender-metrics"},{"title":"Retrieve Volume Metrics","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /metrics/volume","href":"/api-reference/metrics/retrieve-volume-metrics"}]},{"group":"Send","pages":[{"title":"Send an Email","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /send","href":"/api-reference/send/send-an-email"},{"title":"Send an Email Asynchronously","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /send-async","href":"/api-reference/send/send-an-email-asynchronously"}]},{"group":"Sub-accounts","pages":[{"title":"Retrieve Sub-accounts","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account","href":"/api-reference/sub-accounts/retrieve-sub-accounts"},{"title":"Create Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account","href":"/api-reference/sub-accounts/create-sub-account"},{"title":"Delete Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}","href":"/api-reference/sub-accounts/delete-sub-account"},{"title":"Activate Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/activate","href":"/api-reference/sub-accounts/activate-sub-account"},{"title":"Retrieve Sub-account API Keys","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/api-key","href":"/api-reference/sub-accounts/retrieve-sub-account-api-keys"},{"title":"Create Sub-account API Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/api-key","href":"/api-reference/sub-accounts/create-sub-account-api-key"},{"title":"Delete Sub-account API Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/api-key/{id}","href":"/api-reference/sub-accounts/delete-sub-account-api-key"},{"title":"Retrieve Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/retrieve-sub-account-limit"},{"title":"Set Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml put /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/set-sub-account-limit"},{"title":"Delete Sub-account Limit","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/limit","href":"/api-reference/sub-accounts/delete-sub-account-limit"},{"title":"Retrieve Sub-account SMTP Passwords","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/smtp-password","href":"/api-reference/sub-accounts/retrieve-sub-account-smtp-passwords"},{"title":"Create Sub-account SMTP Password","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/smtp-password","href":"/api-reference/sub-accounts/create-sub-account-smtp-password"},{"title":"Delete Sub-account SMTP Password","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /sub-account/{handle}/smtp-password/{id}","href":"/api-reference/sub-accounts/delete-sub-account-smtp-password"},{"title":"Suspend Sub-account","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /sub-account/{handle}/suspend","href":"/api-reference/sub-accounts/suspend-sub-account"},{"title":"Retrieve Sub-account Usage Stats","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /sub-account/{handle}/usage","href":"/api-reference/sub-accounts/retrieve-sub-account-usage-stats"}]},{"group":"Suppression","pages":[{"title":"Retrieve Suppression List","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /suppression-list","href":"/api-reference/suppression/retrieve-suppression-list"},{"title":"Create Suppression Entries","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /suppression-list","href":"/api-reference/suppression/create-suppression-entries"},{"title":"Delete Suppression Entry","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /suppression-list/recipients/{recipient}","href":"/api-reference/suppression/delete-suppression-entry"}]},{"group":"Usage","pages":[{"title":"Retrieve Usage Stats","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /usage","href":"/api-reference/usage/retrieve-usage-stats"}]},{"group":"Webhooks","pages":[{"title":"Retrieve Customer Webhooks","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook","href":"/api-reference/webhooks/retrieve-customer-webhooks"},{"title":"Enroll for Webhook Notifications","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook","href":"/api-reference/webhooks/enroll-for-webhook-notifications"},{"title":"Delete Customer Webhooks","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml delete /webhook","href":"/api-reference/webhooks/delete-customer-webhooks"},{"title":"Retrieve Webhook Batches","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook-batch","href":"/api-reference/webhooks/retrieve-webhook-batches"},{"title":"Resend Events","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook-batch/{batch_id}/resend","href":"/api-reference/webhooks/resend-events"},{"title":"Retrieve Webhook Signing Key","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml get /webhook/public-key","href":"/api-reference/webhooks/retrieve-webhook-signing-key"},{"title":"Validate Enrolled Webhook","deprecated":null,"version":null,"openapi":"/email-api/api-reference/openapi.yaml post /webhook/validate","href":"/api-reference/webhooks/validate-enrolled-webhook"}]}]},{"group":"Authentication \u0026 Account Setup","pages":[{"title":"Authentication","sidebarTitle":"Authentication","href":"/email-api/authentication"},{"title":"Security","sidebarTitle":"Security","description":"Protect MailChannels Email API credentials, webhook consumers, and message data in production systems.","href":"/email-api/security"},{"title":"Domain Lockdown","sidebarTitle":"Domain Lockdown","href":"/email-api/domain-lockdown"}]},{"group":"Sending Email","pages":[{"title":"Send vs send async","sidebarTitle":"Send vs send async","description":"Learn the differences between sending emails synchronously and asynchronously.","href":"/email-api/send-vs-send-async"},{"title":"How emails are structured","sidebarTitle":"Email structure","href":"/email-api/how-emails-are-structured"},{"title":"Content types","sidebarTitle":"Content types","href":"/email-api/content-types"},{"title":"Attachments","sidebarTitle":"Attachments","href":"/email-api/attachments"},{"title":"Custom headers","sidebarTitle":"Custom headers","href":"/email-api/custom-headers"},{"title":"Templates","sidebarTitle":"Templates","href":"/email-api/templates"},{"title":"Sending via SMTP","sidebarTitle":"SMTP sending","href":"/email-api/smtp-sending"},{"title":"Custom tracking","sidebarTitle":"Custom tracking","href":"/email-api/custom-tracking"},{"title":"Inbound email and replies","sidebarTitle":"Inbound email and replies","href":"/email-api/inbound-email-replies"}]},{"group":"Email Authentication","pages":[{"title":"SPF, DKIM, and DMARC","sidebarTitle":"SPF, DKIM, and DMARC","href":"/email-api/spf-dkim-dmarc"},{"title":"DKIM signing and key management","sidebarTitle":"DKIM signing and key management","href":"/email-api/configuring-dkim"}]},{"group":"Webhooks \u0026 Delivery Events","pages":[{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/email-api/webhooks"},{"title":"Event types","sidebarTitle":"Event types","href":"/email-api/webhook-event-types"},{"title":"JSON schema for webhooks","sidebarTitle":"JSON schema","href":"/email-api/webhook-schema"},{"title":"Webhook retries and delivery behavior","sidebarTitle":"Retries and delivery behavior","href":"/email-api/webhook-retries"},{"title":"Handling hard-bounced events","sidebarTitle":"Hard-bounced events","href":"/email-api/hard-bounced-events"},{"title":"Handling soft-bounced events","sidebarTitle":"Soft-bounced events","href":"/email-api/soft-bounced-events"},{"title":"Handling complained events","sidebarTitle":"Complained events","href":"/email-api/complained-events"},{"title":"Handling unsubscribed events","sidebarTitle":"Unsubscribed events","href":"/email-api/unsubscribed-events"}]},{"group":"Platform \u0026 Multi-tenant","pages":[{"title":"Multi-tenancy overview","sidebarTitle":"Multi-tenancy","href":"/email-api/multi-tenancy"},{"title":"Creating a sub-account","sidebarTitle":"Create","href":"/email-api/sub-accounts-create"},{"title":"Authenticating a sub-account","sidebarTitle":"Authenticate","href":"/email-api/sub-accounts-authentication"},{"title":"Sub-account sending limits","sidebarTitle":"Limits","href":"/email-api/sub-accounts-limits"}]},{"group":"Reputation and Abuse Control","pages":[{"title":"Reputation and abuse control","sidebarTitle":"Overview","href":"/email-api/reputation-abuse-control"},{"title":"Sending policies and best practices","sidebarTitle":"Sending policies","href":"/email-api/sending-policies"}]},{"group":"Metrics \u0026 Monitoring","pages":[{"title":"Metrics","sidebarTitle":"Overview","href":"/email-api/metrics"},{"title":"Engagement metrics","sidebarTitle":"Engagement","href":"/email-api/metrics-engagement"},{"title":"Performance metrics","sidebarTitle":"Performance","href":"/email-api/metrics-performance"},{"title":"Volume metrics","sidebarTitle":"Volume","href":"/email-api/metrics-volume"},{"title":"Recipient behavior metrics","sidebarTitle":"Recipient behavior","href":"/email-api/metrics-recipient-behavior"},{"title":"Sender breakdown metrics","sidebarTitle":"Sender breakdown","href":"/email-api/metrics-senders"}]},{"group":"Operate in production","pages":[{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/email-api/troubleshooting"},{"title":"Errors","sidebarTitle":"Errors","href":"/email-api/errors"},{"title":"Debug a sent message","sidebarTitle":"Debug a sent message","href":"/email-api/debug-sent-message"},{"title":"Suppressions and unsubscribe handling","sidebarTitle":"Suppressions and unsubscribes","href":"/email-api/suppressions-unsubscribes"},{"title":"Managing suppressions","sidebarTitle":"Managing suppressions","href":"/email-api/suppression-api-actions"},{"title":"Unsubscribe","sidebarTitle":"Unsubscribe","href":"/email-api/unsubscribe"}]},{"group":"Migration guides","pages":[{"title":"Migration Center","sidebarTitle":"Overview","href":"/email-api/migration-center/overview"},{"title":"Migrate from SendGrid to MailChannels Email API","sidebarTitle":"SendGrid","href":"/email-api/migration-center/migrate-from-sendgrid"},{"title":"Migrate from Mailgun to MailChannels Email API","sidebarTitle":"Mailgun","href":"/email-api/migration-center/migrate-from-mailgun"},{"title":"Migrate from Mailjet to MailChannels Email API","sidebarTitle":"Mailjet","href":"/email-api/migration-center/migrate-from-mailjet"},{"title":"Migrate from Brevo to MailChannels Email API","sidebarTitle":"Brevo","href":"/email-api/migration-center/migrate-from-brevo"},{"title":"Migrate from Postmark to MailChannels Email API","sidebarTitle":"Postmark","href":"/email-api/migration-center/migrate-from-postmark"},{"title":"Migrate from Amazon SES to MailChannels Email API","sidebarTitle":"Amazon SES","href":"/email-api/migration-center/migrate-from-amazon-ses"},{"title":"Migrate from Resend to MailChannels Email API","sidebarTitle":"Resend","href":"/email-api/migration-center/migrate-from-resend"}]},{"group":"Integrations","pages":[{"title":"Send governed emails automatically with MailChannels + Zapier","sidebarTitle":"Zapier integration","href":"/email-api/integrations/zapier"}]},{"group":"For AI Agents","pages":[{"title":"Send email from OpenClaw agents using MailChannels","sidebarTitle":"OpenClaw integration","href":"/email-api/openclaw"}]}]},{"tab":"Outbound Filtering","pages":[{"title":"Outbound Filtering","href":"/outbound/overview"}]},{"tab":"Inbound Filtering","pages":[{"title":"Inbound Filtering","href":"/inbound/overview"}]},{"tab":"Plugins","pages":[{"title":"Plugins","href":"/plugins/whmcs/overview"}]}]},"basePath":"","title":"Domain Lockdown - MailChannels","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":[],"chunks":[]}