Templates / Analyze email headers for IP reputation and spoofing detection - Gmail

Analyze email headers for IP reputation and spoofing detection - Gmail

Ready for 3.0

by Angel Menendez ✓ · 27,764 views · created 2024-12-27 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 33 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Set Gmail Headers Here (Edit Fields (Set)): sets 1 field: headers
  2. Set Gmail Webhook Headers Here (Edit Fields (Set)): sets 1 field: headers
  3. Gmail - Set Headers (Edit Fields (Set)): sets or maps fields
  4. Gmail - Extract Received Headers (Code): runs custom JavaScript code
  5. Gmail - Remove Extra Received Headers (Limit): keeps the first few items
  6. Gmail - Extract Original From IP (Edit Fields (Set)): sets 1 field: extractedfromip
  7. Gmail - Original IP Found? (If): checks a condition and branches into true / false
  8. Gmail - Query IP Quality Score API (HTTP Request): calls an HTTP API
  9. Gmail - Query IP API (HTTP Request): calls an HTTP API
  10. Gmail - Authentication-Results Header? (If): checks a condition and branches into true / false

…plus 20 more steps. See the full node list below.

Services it uses

Gmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (11)

From the author

Analyze Emails for Security Insights Who is this for? This workflow is ideal for IT professionals, security analysts, and organizations looking to enhance their email security practices. It is particularly useful for those who need to analyze Gmail email…

Excerpt from Angel Menendez's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.