plugins/lobbi-m365-automator/skills/exchange-rules/SKILL.md
Design Exchange Online mail flow rules and shared mailbox configurations for insurance and financial services email routing and compliance.
npx skillsauth add markus41/claude plugins/lobbi-m365-automator/skills/exchange-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce a complete Exchange Online configuration specification covering mail flow rules, shared mailboxes, distribution lists, retention policies, and security settings. Output must be actionable by an Exchange administrator using the Exchange admin center or Exchange Online PowerShell.
Design each rule as a complete specification. Rules are evaluated in priority order — lower number runs first.
Rule specification template:
Rule Name: [Descriptive name using verb-noun format]
Priority: [Number, 1 = highest]
Mode: Enforce (not Audit-only, unless testing)
Conditions (ALL must match unless noted):
- [Condition type]: [Value]
- [Condition type]: [Value]
Actions (applied when conditions match):
- [Action type]: [Value]
Exceptions (rule does NOT apply when):
- [Exception type]: [Value]
Comments: [Business rationale for this rule]
Standard rules for insurance and financial services:
Inbound disclaimer rule (required for compliance):
Rule Name: Add-Confidentiality-Disclaimer-Inbound
Priority: 10
Conditions:
- Message direction: Inbound
- Recipient domain is: [firm domain]
Actions:
- Append disclaimer: [Standard confidentiality notice text]
- Fallback action: Wrap (if disclaimer cannot be appended)
PII content routing rule:
Rule Name: Route-PII-To-Compliance-Review
Priority: 5
Conditions:
- Message contains sensitive information type: U.S. Social Security Number
- OR: Message contains sensitive information type: Credit Card Number
- Sender is external
Actions:
- Send copy (BCC) to: compliance@[firm].com
- Apply message classification: Confidential
Exceptions:
- Sender domain is in: [approved-carrier-domains.txt — list approved carriers]
External email warning rule:
Rule Name: Warn-On-External-Sender
Priority: 20
Conditions:
- Sender is external
- Recipient is internal
Actions:
- Prepend subject with: [EXTERNAL]
- Apply HTML disclaimer at top of body: "This email originated from outside the organization."
Exceptions:
- Sender domain is in approved external partner list
Block dangerous attachment types:
Rule Name: Block-Dangerous-Attachments
Priority: 1
Conditions:
- Attachment file extension matches: .exe, .bat, .cmd, .ps1, .vbs, .js, .msi, .com
Actions:
- Reject message and notify sender with: "This file type is blocked by policy."
- Notify: security@[firm].com
Rule table summary (output this for the specification document):
| Priority | Rule Name | Conditions | Actions | Exceptions | |----------|-----------|------------|---------|------------| | 1 | Block-Dangerous-Attachments | Attachment type match | Reject | — | | 5 | Route-PII-To-Compliance-Review | PII content type | BCC compliance | Approved carriers | | 10 | Add-Confidentiality-Disclaimer-Inbound | Inbound | Append disclaimer | — | | 20 | Warn-On-External-Sender | External sender | Prepend [EXTERNAL] | Partner domains |
For each shared mailbox, produce:
Mailbox identity:
Claims Intake, Renewals Team, New Business)[function]@[firm].com (e.g., [email protected])[email protected] → delivered to [email protected])Access permissions:
| User/Group | Permission Type | Use Case | |------------|----------------|----------| | Claims Team DL | Full Access | Read and manage all messages | | Claims Manager | Full Access + Send As | Can respond as the shared mailbox | | Admin team | Full Access | IT administration only |
Auto-reply configuration:
Folder structure (configure via Outlook after mailbox creation):
| Folder | Purpose | |--------|---------| | New — Unassigned | Incoming, not yet picked up by a team member | | In Progress — [Staff Name] | Moved when a staff member begins working it | | Pending Client Response | Waiting for client reply | | Escalated | Needs manager attention | | Closed | Completed, archived monthly |
Retention policy: Apply the same retention label used on related SharePoint libraries (e.g., FINRA-7yr for broker-dealer operations).
Litigation hold: Enable if this mailbox receives communications that may be subject to regulatory examination or legal discovery.
For each distribution group:
| List Name | Email Address | Membership | Moderation | External Senders | |-----------|--------------|------------|------------|-----------------| | Claims Team | [email protected] | Claims staff (by AD group) | None | Blocked | | Agency Principals | [email protected] | Owner/principals | Manager approval | Blocked | | All Staff | [email protected] | All employees | IT moderated | Blocked | | Carrier Partners | [email protected] | Internal + approved carriers | None | Specific domains only |
Moderation: Enable for all-staff lists and any list where uncontrolled sends could cause noise. Specify who the moderator is.
External sender policy: Block external senders from distribution lists by default. Explicitly allow external senders only for carrier partner lists and only from approved domains.
Apply Microsoft Purview retention labels to Exchange mailboxes:
| Policy Name | Applies To | Retention Period | Action at End | |-------------|-----------|------------------|---------------| | FINRA-Broker-7yr | Broker-dealer staff mailboxes | 7 years | Delete | | State-Insurance-5yr | Insurance agency staff | 5 years | Delete | | General-Staff-3yr | All other staff | 3 years | Delete | | Compliance-Indefinite | Compliance mailbox | Indefinite (litigation hold) | Review |
Litigation hold: Enable on the mailbox itself via Set-Mailbox -LitigationHoldEnabled $true. Do not rely on retention policies alone for legal hold — they can be removed by admins.
In-place archive: Enable for staff with mailboxes exceeding 10 GB or in regulated roles. Auto-archive items older than 2 years to the online archive.
Safe senders list (tenant-level, not per-user): Add approved carrier and partner domains. Managed via Exchange admin center > Threat Policies > Anti-spam > Allowed sender domains.
Blocked senders: List any domains that have been sources of phishing or spam specific to the firm.
Quarantine policy:
Email encryption:
Confidential sensitivity label to emails containing PII. Label triggers Office Message Encryption.Deliver as:
tools
Managing project and task state in .claude/projects/{id}/ with atomic writes and session continuity
tools
Deep research before task execution using 4-source protocol: codebase→Perplexity→Context7→Firecrawl
tools
Validating task completion against acceptance criteria with per-type automated checks
tools
Using and creating project templates for webapp, API, ML pipeline, mobile, and infrastructure projects