Quick overview
This workflow receives inbound emails from EmailConnect.eu via an n8n webhook, extracts key message fields, drops spam, and routes emails to different downstream paths based on the recipient alias (for example support@ or invoices@).
How it works
- Receives a POST webhook from EmailConnect.eu containing a structured JSON payload for an inbound email.
- Extracts the sender, recipient, subject, text content, attachments, and spam flag from the payload.
- Stops processing for messages marked as spam.
- Routes non-spam emails based on whether the recipient address starts with support@, invoices@, or falls back to a catch-all path.
- Hands each route off to placeholder steps where you add your own actions, such as creating a support ticket or filing an invoice.
Setup
- Publish or activate the workflow and use the webhook Test URL (for testing) or Production URL (for live traffic) as appropriate.
- In EmailConnect.eu, create an inbound alias (catch-all) and configure it to forward incoming email to this workflow’s Webhook (Production) URL (from step 1).
- Find the
verification_token in the webhook's verification payload and enter it in EmailConnect.
- Update the routing rules to match your aliases (for example support@ and invoices@) and replace the placeholder actions with your real integrations.
- (Optional) If you enable EmailConnect webhook signing, add an HMAC-SHA256 signature verification step using your whsec_ secret and the webhook headers plus raw body.
Requirements
Additional info
This example flow checks against 'contains support@ or invoices@' to support both custom domain aliases ([email protected]) and aliases hosted on user.emailconnect.eu (e.g. [email protected]). Depending on your situation, consider switching to 'starts with support@' or 'contains +support'.