Analyze email headers in real-time using this powerful n8n workflow. Detect spoofing, check sender IP reputation, and verify SPF, DKIM, and DMARC compliance.
Download this n8n workflow template and start using it instantly.
This advanced n8n workflow template provides a crucial layer of defense against email spoofing and phishing attacks. It automates the complex task of dissecting email headers to identify the true origin and security posture of an incoming message. By leveraging external IP reputation APIs and meticulously checking SPF, DKIM, and DMARC compliance, this n8n automation provides a comprehensive security report. This flexible n8n workflow can be triggered either directly by new Gmail messages or via a dedicated webhook, making it suitable for both personal security monitoring and large-scale application integration. Using this robust n8n node configuration saves countless hours of manual header analysis.
Gmail Trigger n8n node for testing) or upon receiving an external JSON payload via the active Gmail - Webhook n8n node.IP Quality Score API to determine the sender's fraud score and IP API for geolocation and organization details.Authentication-Results header using an If n8n node. If present, a subsequent Set n8n node (Gmail - Determine Auth Values) parses the single header string to extract separate SPF, DKIM, and DMARC pass/fail statuses.Received-SPF, DKIM-Signature, and DMARC headers separately.Gmail - Merge, Gmail - Aggregate) combine all gathered data—IP reputation, geographic info, and all authentication results—into one unified security report.Gmail - Respond to Webhook n8n node sends the complete analysis back to the calling application, completing the n8n automation.Gmail Trigger n8n node for testing, ensure you set up the required OAuth2 credentials.Gmail - Query IP Quality Score API) requires an API key. You must replace the placeholder key (Mlg6aZdzI1mVehUD3Z5Ak5Vl4yNN7P8v) hardcoded in the URL with your actual IP Quality Score API key for the reputation checks to function within this n8n workflow.Gmail Trigger n8n node is disabled by default. If you intend to run this as a real-time service via a third party, activate the entire n8n workflow and use the URL provided by the Gmail - Webhook n8n node.Authentication-Results header is present. This powerful n8n node parses the string using JavaScript expressions to quickly extract separate spfvalue, dkimvalue, and dmarcvalue statuses (pass/fail/unknown).initialIP, organization, ipSenderReputation, and authentication results, ready for external consumption via the webhook.Use this powerful n8n workflow to analyze local documents (PDF, MD, JSON) and web content (URLs) using GPT-4o. Get structured, accurate answers instantly. Essential n8n templates for knowledge management.

Use this specialized n8n workflow and n8n template to deploy an AI Agent powered by CoinMarketCap DEXScan API. Retrieve real-time DEX liquidity, trading volume, and historical OHLCV data using the n8n node framework.

Use this robust n8n workflow to automatically analyze customer survey responses using AI. Group feedback by sentiment and generate executive reports for Google Sheets and Slack using specialized n8n templates.

Use this powerful n8n workflow to analyze Outlook or webhook-received email headers. It extracts originating IP addresses, queries IP reputation services, and validates SPF, DKIM, and DMARC authentication status to detect potential spoofing and phishing attempts.

Implement continuous email optimization using this strategic n8n workflow. Automatically analyze SendGrid metrics with OpenAI (GPT-4) and log actionable testing hypotheses in Airtable.


Angel Menendez is a Staff Developer Advocate at n8n.io, specializing in low-code tools for cybersecurity workflows. From Puerto Rico, Angel's tech journey began by helping his father translate technical books. He later started a web development business and transitioned from a career as a flight attendant to cybersecurity engineering. His workflows have saved companies significant time. Outside work, Angel enjoys time with his two sons, riding electric bikes, reading, and exploring new places.







































