Automate Email Analysis and IP Reputation Checks
detail.loadingPreview
Effortlessly automate the analysis of incoming emails, extract critical header information, and leverage external APIs to assess the reputation of originating IP addresses. This workflow enhances your ability to detect suspicious activity and understand email origins.
About This Workflow
This n8n workflow is designed to provide a robust solution for analyzing incoming emails from Gmail. It begins by triggering on new emails, then systematically extracts and parses crucial header information. The workflow intelligently identifies and isolates originating IP addresses, excluding private network IPs. It then queries multiple external APIs, including IP Quality Score and ip-api.com, to gather detailed reputation and geographical data for each IP. Conditional logic is employed to check for the presence of key email authentication headers like 'Authentication-Results' and 'Received-SPF', allowing for deeper insights into email legitimacy and potential spoofing. This comprehensive analysis empowers users to make informed decisions about email handling and security.
Key Features
- Automated Email Triggering: Automatically initiates upon receiving new emails in your Gmail inbox.
- Advanced Header Parsing: Extracts and analyzes 'Received' headers to identify email path and originating IPs.
- IP Reputation & Geolocation: Integrates with IP Quality Score and ip-api.com for detailed IP risk assessment and location data.
- Email Authentication Header Check: Detects and analyzes 'Authentication-Results' and 'Received-SPF' headers for validation.
- Smart IP Filtering: Excludes internal/private IP addresses to focus on external origins.
How To Use
- Configure Gmail Trigger: Connect your Gmail account using OAuth2 credentials and set up the trigger to monitor incoming emails. Ensure the trigger is enabled.
- Extract Received Headers: The 'Gmail - Extract Received Headers' node processes the email's headers to find all 'Received' entries.
- Extract Original IP: The 'Gmail - Extract Original From IP' node uses a regular expression to pull the first non-private IP address from the extracted headers.
- Check for Valid IP: The 'Gmail - Original IP Found?' node determines if a valid external IP address was successfully extracted.
- Query IP APIs: If a valid IP is found, the 'Gmail - Query IP Quality Score API' and 'Gmail - Query IP API' nodes fetch reputation and location data.
- Check Authentication Headers: The 'Gmail - Authentication-Results Header?' and 'Gmail - Received-SPF Header?' nodes conditionally check for the presence of specific authentication headers.
- Process Authentication Header (Optional): If the 'Authentication-Results' header is present, the 'Gmail - Extract Authentication-Results Header' node can be used to further parse its content (requires custom JavaScript implementation).
Apps Used
Workflow JSON
{
"id": "e7bd77a9-b145-41e1-b63c-f4177e4d718e",
"name": "Automate Email Analysis and IP Reputation Checks",
"nodes": 10,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e7bd77a9-b145...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.