# Analyze email headers for IP reputation: n8n workflow template

> Started by another system calling it, and works across Gmail. 33 steps, 5 branches: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/analyze-email-headers-for-ip-reputation-2 (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Integrations](https://millionrounds.com/workflows?category=Integrations#library)

# Analyze email headers for IP reputation

Started by another system calling it, and works across Gmail. 33 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-email-headers-for-ip-reputation-2)

**33 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Logic 28 Service 2

The steps in the order they run, from what starts it.

- 1 **Gmail Trigger** Gmail trigger *Starts it*
- 2 **Gmail - Webhook** Webhook *Starts it*
- 3 **Set Gmail Headers Here** Set *Logic*
- 4 **Set Gmail Webhook Headers Here** Set *Logic*
- 5 **Gmail - Set Headers** Set *Logic*
- 6 **Gmail - Extract Received Headers** Code *Logic*
- 7 **Gmail - Remove Extra Received Headers** Limit *Logic*
- 8 **Gmail - Extract Original From IP** Set *Logic*
- 9 **Gmail - Original IP Found?** If *Logic*
- 10 **Gmail - Query IP Quality Score API** Http Request *Service*
- 11 **Skip IP Check** No Op *Logic*
- 12 **Gmail - Query IP API** Http Request *Service*
- 13 **Gmail - Authentication-Results Header?** If *Logic*
- 14 **Gmail - Extract Authentication-Results Header** Code *Logic*
- 15 **Gmail - Received-SPF Header?** If *Logic*
- 16 **Gmail - DKIM-Signature Header?** If *Logic*
- 17 **Gmail - DMARC Header?** If *Logic*
- 18 **Gmail - Determine Auth Values** Set *Logic*
- 19 **Gmail - Extract Received-SPF Header** Code *Logic*
- 20 **Gmail - No SPF Found** Set *Logic*
- 21 **Gmail - DKIM Signature Found** Set *Logic*
- 22 **Gmail - No DKIM Signature Found** Set *Logic*
- 23 **Gmail - Extract DMARC Header** Code *Logic*
- 24 **Gmail - No DMARC Header** Set *Logic*
- 25 **Format Combined Auth Output1** Set *Logic*
- 26 **Aggregate Received-SPF Headers1** Aggregate *Logic*
- 27 **Gmail - Merge** Merge *Logic*
- 28 **Gmail - Set DMARC Value** Set *Logic*
- 29 **Gmail - Format Output** Set *Logic*
- 30 **Gmail - Set SPF Value** Set *Logic*
- 31 **Gmail - Aggregate** Aggregate *Logic*
- 32 **Gmail - Respond to Webhook** Respond To Webhook *Starts it*
- 33 **Format Individual Auth Outputs1** Set *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 33, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanalyze-email-headers-for-ip-reputation-2)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)

## Workflows like it

Also integrations, with the same services where possible, closest in size first.

- [**Employee Birthday & Work Anniversary Wishes Automation** 25 steps · Gmail, Google Drive](https://millionrounds.com/workflow/employee-birthday-and-work-anniversary-wishes-automation)
- [**Bitcoin miner health check - multiple pools, multiple miners p2** 24 steps · Gmail](https://millionrounds.com/workflow/bitcoin-miner-health-check-multiple-pools-multiple-miners-p2)
- [**Automated CVE scanning of Bug Bounty programs with Nuclei** 21 steps · Gmail](https://millionrounds.com/workflow/automated-cve-scanning-of-bug-bounty-programs-with-nuclei)
- [**Generate and email daily AI-powered HR changes digest** 19 steps · Gmail](https://millionrounds.com/workflow/generate-and-email-daily-ai-powered-hr-changes-digest)
- [**Personal email assistant with Gmail** 19 steps · Gmail](https://millionrounds.com/workflow/with-gmail)
- [**Score freelance opportunities from RSS with Gmail** 19 steps · Gmail, RSS](https://millionrounds.com/workflow/score-freelance-opportunities-from-rss-with-gmail)
