/mailprotector:allow-block-rulesfrom mailprotector
Manages Mailprotector sender allow/block rules across five hierarchy scopes (reseller to user) with listing, creation, and deletion via REST API.
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.
Allow/block rules override filtering per sender: an allow rule bypasses spam scoring for that sender; a block rule stops the sender's mail outright. Rules attach to any level of the hierarchy and inherit downward, so scope choice is the whole game.
| Concept | Detail |
|---|---|
rule_type | Send lowercase allow or block; responses may echo "Allow"/"Block" capitalized — compare case-insensitively |
value | A full address ([email protected]) or a bare domain (domain.com) — nothing else, no wildcards |
entity | The owner in responses: {id, entity_type, name} with entity_type Account (reseller or customer), Domain, UserGroup, or User |
| Inheritance | A rule applies to the entity it's attached to and everything beneath it |
mailprotector_allow_block_rules_list with scope + scope_id →
GET /{resellers|customers|domains|user_groups|users}/{id}/allow_block_rules.
The listing returns only rules attached directly to that entity — neither rules on entities beneath it nor rules inherited from above. The effective rule set for a user is the union of five listings: reseller → customer → domain → user group → user. Audit the whole chain before declaring "no rule exists for this sender".
mailprotector_allow_block_rules_create with scope, scope_id, and
{"value": "[email protected]", "rule_type": "block"}
→ POST /{scope}/{scope_id}/allow_block_rules, 201 with the rule id.
Pick the narrowest scope that solves the problem:
mailprotector_allow_block_rules_delete →
DELETE /allow_block_rules/{allow_block_rule_id} → 204. The endpoint is
flat (no scope in the path) — the id from a listing is all you need,
which also means a listing at any scope hands you enough to delete rules
you can see. Deletes are irreversible; re-creating needs the original
value/rule_type, so record them before deleting.
gmail.com at any scope is allowing all of Gmail.entity_type: "Account" is ambiguous between reseller and
customer in responses — resolve by the entity.id you queried, not
the type label.value + rule_type across scopes to see the real posture.What SKILL.md sets; muted values are Claude Code's defaults
When managing Mailprotector sender rules. Use when: allow rule, block rule, allowlist, blocklist, whitelist, blacklist, block sender, mailprotector rule_type, allow_block_rules, sender exception.
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin mailprotector5 skills in this plugin
/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.
/customers-and-domainsMailprotector Customers & DomainsCustomer lifecycle (create/edit/delete under the reseller), domain creation with the Pending → Active verification flow and verification_token, domain aliases, moving domains between customers, address discovery, and mail routing via email destinations and email sources.
/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.
Other plugins' skills for the same job