# Analyze Phishing Email Headers

**Use case:** 

Sample task with a spoofed Microsoft message that fails SPF, DKIM and DMARC, showing every signal and the final score.

## Input

```json
{
  "rawHeaders": "Return-Path: <bounce@evil-mailer.top>\nReceived: from mx.corp.local (10.0.0.5) by mail.corp.local with SMTP id 1; Sun, 22 Nov 2026 09:00:00 +0000\nReceived: from smtp.evil-mailer.top (185.220.101.44) by mx.corp.local; Sun, 22 Nov 2026 08:59:30 +0000\nFrom: \"Microsoft Account Team\" <security@microsoft-verify.top>\nTo: victim@corp.local\nSubject: URGENT: verify your account immediately\nDate: Sun, 22 Nov 2026 08:58:00 +0000\nMessage-ID: <abc123@bulk-sender.xyz>\nReply-To: recover@evil-mailer.top\nAuthentication-Results: mx.corp.local; spf=fail smtp.mailfrom=evil-mailer.top; dkim=fail; dmarc=fail\nX-Originating-IP: [185.220.101.44]",
  "delimiter": "---",
  "limit": 5
}
```

## Output

```json
{
  "from": {
    "label": "From"
  },
  "fromDomain": {
    "label": "From domain"
  },
  "spf": {
    "label": "Spf"
  },
  "dkim": {
    "label": "Dkim"
  },
  "dmarc": {
    "label": "Dmarc"
  },
  "displayNameSpoof": {
    "label": "Display name spoof"
  },
  "riskScore": {
    "label": "Risk score"
  },
  "verdict": {
    "label": "Verdict"
  },
  "signals": {
    "label": "Signals"
  },
  "evidenceGrade": {
    "label": "Evidence grade"
  },
  "checkedAt": {
    "label": "Checked at"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The 📧 Phishing Email Header Analyzer (SPF/DKIM/DMARC) Actor is ready to run with the inputs already set for "Analyze Phishing Email Headers". [Sign up or log in](https://console.apify.com/create-task-from-example/yjsqF6pBqktsZBEDo) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Analyze Phishing Email Headers" task

The 📧 Phishing Email Header Analyzer (SPF/DKIM/DMARC) Actor will start running based on the input automatically. You can also change all the input fields, like raw email headers, block delimiter, and more, to match your specific use case.

### 3. Receive the "Analyze Phishing Email Headers" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as from, from domain, spf, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Analyze Phishing Email Headers" task via API](https://apify.com/unrivaled_fortress/phishing-email-header-analyzer.md).

## About this Actor

This example demonstrates how to use [📧 Phishing Email Header Analyzer (SPF/DKIM/DMARC)](https://apify.com/unrivaled_fortress/phishing-email-header-analyzer.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/unrivaled_fortress/phishing-email-header-analyzer.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/unrivaled_fortress/phishing-email-header-analyzer.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
