CorefinityCorefinityDocs
Open the Control PanelControl Panel
Integrations · 24 of 39

corestack_email_domain_add

Add a sending domain.

Scope writeRuns as a taskNo secrets returnedCoreCluster
On this page

When to use it

Add a sending domain on a Magento 2 production row for mail From another of its domains. That mail uses the default until it verifies (corestack_email_apply_dns, corestack_email_verify).

On a row without the platform update for several sending domains (runtime v1-r14, applied in scheduled maintenance), the task fails at its key check with "This site needs a platform update before it can send from more than one domain…": nothing changes and mail keeps going through the default; retry it (corestack_operation_retry) after the update.

Each message goes out through the sending domain that matches the domain of its From address; everything else goes through the default. store_mapping in corestack_email_get shows which stores send From a domain without its own sending domain. A row holds up to five sending domains.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_email_domain_add with site_id 4211, from_domain example.org. (Add a sending domain.) Tell me what it returned.

Inputs

adoptboolean

Staff only: adopt a domain already at Mailgun.

from_domainstringRequired

One of the site's domains, or under one. Up to 253 characters.

prefixstring

Gives <prefix>.<from_domain>; mg by default. Up to 63 characters.

site_idintegerRequired

At least 1.

Example call

tools/call
{
  "name": "corestack_email_domain_add",
  "arguments": {
    "site_id": 4211,
    "from_domain": "example.org"
  }
}

If it is refused

ReasonWhat to do
unavailableSeveral sending domains are available on Magento 2 production rows only.
stateSet up the first sending domain (corestack_email_enable) before adding another.
limitThe row already has five sending domains; remove one first.
duplicateThe row already has a sending domain for that From domain, or another site uses that sending domain.
existsMailgun already has that sending domain (usually on a previous host's account); remove it there, or use another prefix.
busyAnother change is running on the row; wait for it to finish.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT