/mailprotector:customers-and-domainsfrom mailprotector
Manages Mailprotector customer lifecycle, domain creation with Pending→Active verification, domain aliases, moving domains between customers, address discovery, and mail routing via email destinations and sources.
Ships in mailprotector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Customers are the client organizations under the MSP's reseller; domains hang off customers and carry the actual mail routing. Onboarding a client is: create the customer, create the domain, verify it, then point mail flow at it (destinations for inbound delivery, sources for outbound authorization).
| Concept | Detail |
|---|---|
| Customer | {id, name, provider, reseller, created_at, updated_at} — created with just name and contact email |
| Domain status | domain_status: {id: 1, name: "Pending"} or {id: 2, name: "Active"} |
verification_token | Returned on domain create while Pending; null once Active |
| Domain alias | A domain with parent set to the primary domain; goes through its own Pending/verification |
address_discovery_enabled | Domain flag; auto-discovers addresses from mail flow (defaults on for new domains) |
| Email destination | Where filtered inbound mail is delivered — domain, hostname, or IP, with priority ordering |
| Email source | An IP authorized to relay outbound mail through Mailprotector |
POST /resellers/{reseller_id}/customers with
{"name": "...", "email": "contact@..."} → 201 with the new id
(tool: mailprotector_customers_create).mailprotector_customers_list (from the bound reseller) and
mailprotector_customers_get.PUT /customers/{customer_id} with name/email (via
mailprotector_execute_tool).DELETE /customers/{customer_id} — removes all domains and
users under the customer. Irreversible; confirm explicitly.POST /customers/{customer_id}/domains with {"name": "domain.com"}
(tool: mailprotector_domains_create).domain_status Pending and a
verification_token. Mail is not filtered for a Pending domain.verification_token to the operator — ownership is
proven with it before Mailprotector activates the domain. Re-fetch
the domain (mailprotector_domains_get) to watch for
domain_status id 2 (Active) / verification_token: null.POST /domains/{domain_id}/aliases with {"name": "domain-alias.com"}.
The alias appears in GET /domains/{domain_id}/aliases with parent
set to the primary domain and its own Pending status + token. Every user
under the primary domain automatically accepts mail at the alias domain
(user email_addresses extend to each alias), so create aliases before
bulk-creating users when you want alias addresses generated.
POST /domains/{domain_id}/move with {"customer_id": 16998} — only
within the same reseller. User groups, users, and rules travel with
the domain. Use this to fix a domain created under the wrong customer
instead of delete + recreate (which would destroy users).
GET/POST /domains/{domain_id}/email_destinations
with {"address": "mail.domain.com"} — address may be a domain,
hostname, or IP. priority is assigned in creation order (0 first);
lower priority is tried first.GET/POST /domains/{domain_id}/email_sources with
{"address": "192.0.2.1"} — the IPs allowed to relay outbound./user_groups/{id}/email_destinations and _sources) for groups
that deliver somewhere other than the domain default — the MCP tool
takes scope: domain|user_group.domain_status is Pending.PUT /domains/{domain_id} is for flags like
address_discovery_enabled — you cannot rename a domain; create the
correct one and move users.POST /customers/{customer_id}/managers)
create console logins, but roles cannot be assigned via the API —
a new manager has an empty roles array until someone assigns the
role in the console. Listing customer managers excludes
reseller-level managers.GET /resellers/{id}/statements,
GET /customers/{id}/statements) are billing history
(amount, currency, statement_status, billing/due dates) — read
them for reconciliation, not for provisioning state.What SKILL.md sets; muted values are Claude Code's defaults
When creating or managing Mailprotector customers, domains, domain aliases, or mail routing. Use when: mailprotector customer, mailprotector domain, domain verification, verification token, domain alias, move domain, email destination, email source, mailprotector onboarding.
5 skills in this plugin
/allow-block-rulesMailprotector Allow/Block RulesSender allow/block rules at all five scopes: downward inheritance (reseller rules apply to everything beneath), the listing that returns only directly-attached rules, create with `rule_type: allow|block` and address-or-domain values, and the flat delete endpoint.
/api-patternsMailprotector API PatternsMailprotector MCP fundamentals: gateway header authentication (`X-Mailprotector-Api-Key` / `X-Mailprotector-Reseller-Id`) and its translation to the upstream Bearer token, the Provider → Reseller → Customer → Domain → User Group → User entity hierarchy, the router-pattern tool surface with `mailprotector_execute_tool` for the long tail, scope/scope_id consolidation, field-based list filtering, `page` pagination (max 50 on messages), and error handling.
/quarantine-and-messagesMailprotector Quarantine & MessagesQuarantine triage across all five scopes (reseller/customer/domain/ user_group/user): message fields (`quarantine_type`, `decision`, `score`, scoring `results`), releasing a single message via `/deliver`, bulk release via `/deliver_many` with its silent scope-mismatch skip and the `all_selected` release-everything switch, and the release permission flags in configuration.
/users-and-groupsMailprotector Users & GroupsUser groups as the service container (services get/update with its deactivate-what-you-omit semantics), user CRUD including create_many and find_by_address, user aliases, password resets, and user syncs — LDAP/AD source creation, Entra/Google console-only sources, sync schedules, and comparison-type filters.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin mailprotectorOther plugins' skills for the same job