Message tracking

From wyre-technology/msp-claude-plugins · View interactive version

Message tracking is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Mimecast message tracing: searching by sender, recipient, or subject; message states and message IDs; retrieving message metadata and headers; and holding or releasing messages.

How to use this skill

Skill file

Mimecast Message Tracking

Overview

Message tracking is the primary diagnostic tool in Mimecast for investigating email delivery issues, tracing suspicious messages, and managing held email. The Mimecast MCP server provides tools to search messages across the full delivery pipeline, retrieve detailed per-message metadata, and control message disposition (hold or release). This is the first tool to reach for when investigating reported phishing emails, delivery failures, or missing messages.

Anti-triggers

backlogged messages are a delivery condition, not a hold, and they are

not searchable here until they land in a final state. Use

Mimecast Queue Management.

attachment, and impersonation verdicts live in TTP; use

Mimecast Threat Intelligence.

equivalent is the hold queue, and these message IDs address only it.

Use SpamTitan Quarantine, Proofpoint Quarantine, or

Checkpoint Avanan Quarantine.

attack** — Mimecast decides at the perimeter; behavioural detection

after delivery is Abnormal Security Threats.

Key Concepts

Message States

| State | Description |

|-------|-------------|

| delivered | Message successfully delivered to recipient mailbox |

| held | Message blocked pending review (policy or manual) |

| rejected | Message rejected at SMTP gateway |

| bounced | Message accepted but returned by recipient server |

| processing | Message in transit through the Mimecast pipeline |

Held Messages

Messages can be held by Mimecast policy (spam threshold, attachment policy, URL scanning) or placed on hold manually via the API. Held messages require an administrator action — either release them for delivery or permanently delete them.

Message IDs

Each message in Mimecast has:

When searching, you typically use sender/recipient/subject to find messages, then use the Mimecast ID for subsequent operations (get info, hold, release).

API Patterns

Search Messages

mimecast_find_message

Parameters:

Example call:

{
  "from": "phishing@external-domain.com",
  "to": "user@client.com",
  "start": "2026-03-01T00:00:00Z",
  "end": "2026-03-02T23:59:59Z",
  "status": "delivered"
}

Example response:

{
  "meta": {
    "status": 200,
    "pagination": {
      "pageSize": 25,
      "totalCount": 3,
      "next": null
    }
  },
  "data": [
    {
      "id": "eNqrVkpJLU...",
      "messageId": "<abc123@external-domain.com>",
      "from": "phishing@external-domain.com",
      "to": ["user@client.com"],
      "subject": "Your account needs attention",
      "status": "delivered",
      "received": "2026-03-01T14:22:15Z",
      "size": 48293,
      "direction": "inbound"
    }
  ]
}

Get Message Details

mimecast_get_message_info

Parameters:

Example response:

{
  "meta": { "status": 200 },
  "data": [
    {
      "id": "eNqrVkpJLU...",
      "messageId": "<abc123@external-domain.com>",
      "from": "phishing@external-domain.com",
      "to": ["user@client.com"],
      "subject": "Your account needs attention",
      "status": "delivered",
      "received": "2026-03-01T14:22:15Z",
      "direction": "inbound",
      "senderIP": "192.0.2.45",
      "spamScore": 8,
      "detectionLevel": "relaxed",
      "attachments": [
        {
          "filename": "invoice.pdf",
          "size": 42100,
          "mimeType": "application/pdf"
        }
      ],
      "headers": {
        "X-Originating-IP": "192.0.2.45",
        "Return-Path": "bounce@external-domain.com",
        "Authentication-Results": "spf=fail; dkim=fail; dmarc=fail"
      },
      "route": [
        {
          "action": "smtp_receive",
          "timestamp": "2026-03-01T14:22:14Z",
          "host": "mail.mimecast.com"
        },
        {
          "action": "deliver",
          "timestamp": "2026-03-01T14:22:15Z",
          "host": "mail.client.com"
        }
      ]
    }
  ]
}

Key fields to examine:

Hold a Message

mimecast_hold_message

Places a message on hold to prevent delivery or further routing.

Parameters:

Example response:

{
  "meta": { "status": 200 },
  "data": [
    {
      "id": "eNqrVkpJLU...",
      "status": "held",
      "heldAt": "2026-03-02T09:15:00Z"
    }
  ]
}

Note: You can only hold messages that are currently in a state that allows it (e.g. processing or delivered to held-queue). Already delivered messages may not be recallable depending on your Mimecast subscription.

Release a Message

mimecast_release_message

Releases a held message for delivery.

Parameters:

Example response:

{
  "meta": { "status": 200 },
  "data": [
    {
      "id": "eNqrVkpJLU...",
      "status": "released",
      "releasedAt": "2026-03-02T09:20:00Z"
    }
  ]
}

Common Workflows

Investigate a Reported Phishing Email

  1. Get sender and approximate send time from the user report
  2. Call mimecast_find_message with from, to, and a narrow time range
  3. Retrieve the Mimecast message ID from the results
  4. Call mimecast_get_message_info to examine:
  1. If message was delivered and is malicious, escalate to threat remediation
  2. If message is still in flight, call mimecast_hold_message to stop delivery

Investigate a Missing Email

  1. Call mimecast_find_message with sender, recipient, and broad time range
  2. If found with held status — message is blocked by policy
  3. If found with rejected status — check headers for rejection reason
  4. If found with bounced status — the recipient server rejected delivery
  5. If not found — the message may not have reached Mimecast (check SPF records)

Release Held Legitimate Email

  1. Call mimecast_find_message with status=held to find held messages for a user
  2. Call mimecast_get_message_info to verify the message is legitimate
  3. Call mimecast_release_message with the message ID
  4. Confirm delivery by re-checking status

Domain-Wide Phishing Sweep

  1. Call mimecast_find_message with from=*@suspicious-domain.com
  2. Use a broad time range (e.g. past 30 days)
  3. Identify all recipients who received mail from that domain
  4. Cross-reference with TTP logs using mimecast_get_ttp_logs to find URL clicks
  5. Notify affected users and escalate to incident response

Error Handling

Message Not Found

Cause: The message ID is invalid, already purged from logs, or outside the retention window.

Solution: Mimecast retains message tracking data for 30 days by default. Use mimecast_find_message to search by sender/recipient rather than by ID.

Cannot Hold Message

Cause: Message is already delivered past the hold window, or your subscription does not include message recall.

Solution: Use threat remediation tools or advise the user to delete the message manually.

Date Range Too Broad

Cause: Queries without date filters or with very wide date ranges may be rejected or heavily paginated.

Solution: Always specify start and end within a reasonable window (7 days or less for efficient queries).

SPF/DKIM Authentication Failure in Headers

Cause: Authentication-Results: spf=fail; dkim=fail indicates the sender is spoofed or the domain is misconfigured.

Action: This is a strong phishing indicator. Investigate further and consider blocking the sending domain.

Best Practices

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.