Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Allow Block Rules

ASecurity

Sender 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.

48 stars
0 votes
0 copies
0 views
Added 10/2/2026
ai-agentsgogitapi

Works with

api

Security Analysis

A100/100

Scanned 10/2/2026

$npx -y skills add wyre-technology/msp-claude-plugins --skill allow-block-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Allow Block Rules?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Allow Block Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wyre-technology-allow-block-rules/badge)](https://www.skillsdirectory.com/skills/wyre-technology-allow-block-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: "Mailprotector Allow/Block Rules"
description: >
  Sender 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.
when_to_use: >-
  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.
---

# Mailprotector Allow/Block Rules

## Overview

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.

## Key Concepts

| Concept | Detail |
|---------|--------|
| `rule_type` | Send lowercase `allow` or `block`; responses may echo `"Allow"`/`"Block"` capitalized — compare case-insensitively |
| `value` | A full address (`user@domain.com`) 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 |

## Common Workflows

### Listing rules at a scope

`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".

### Creating a rule

`mailprotector_allow_block_rules_create` with `scope`, `scope_id`, and

```json
{"value": "user@domain.com", "rule_type": "block"}
```

→ `POST /{scope}/{scope_id}/allow_block_rules`, 201 with the rule `id`.

Pick the narrowest scope that solves the problem:

- One user's newsletter complaint → user scope.
- A customer-wide vendor false positive → customer scope.
- A reseller-scope rule applies to **every customer, domain, group, and
  user** under the MSP — reserve it for universally-true decisions
  (e.g. blocking a known-abusive domain fleet-wide), and say the blast
  radius out loud before creating one.

### Deleting a rule

`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.

## Gotchas

- **Allow rules are a durable filtering hole.** Spam scoring is bypassed
  for the matched sender, and spoofed mail claiming that sender inherits
  the exemption. Prefer address values over whole domains, and prefer
  narrow scopes over wide ones.
- **A domain value matches every address at that domain** — allowing
  `gmail.com` at any scope is allowing all of Gmail.
- **Block rules fail silent.** The sender's mail simply stops arriving —
  no bounce the recipient sees. A block on a shared sending service
  (e.g. a marketing platform's domain) takes out every legitimate
  customer of that service under the rule's scope.
- **`entity_type: "Account"` is ambiguous** between reseller and
  customer in responses — resolve by the `entity.id` you queried, not
  the type label.
- **Duplicate-looking rules at different scopes are normal** after
  years of per-user self-service; when auditing, collapse by
  `value` + `rule_type` across scopes to see the real posture.

## Related Skills

- [quarantine-and-messages](../quarantine-and-messages/SKILL.md) — where the false-positive evidence comes from
- [api-patterns](../api-patterns/SKILL.md) — scope/scope_id fundamentals

Attribution

WYRE-AIWYRE-AI
View sourceSee grades on GitHubMore from wyre-technology →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →