- Home
- Resources
- Integrations
- Email Trigger (IMAP)
n8n Email Trigger (IMAP) nodeConfigure Email Trigger (IMAP) in n8n.
The n8n Email Trigger (IMAP) node opens a workflow the moment a new email lands in a mailbox. It signs in to an IMAP server with an email address and a password, watches the mailbox you name, and passes the message on. Four parameters shape what it returns and what happens to the mail after.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Email Trigger (IMAP) node do?
It turns a mailbox into the starting point of an automation. IMAP is the standard protocol for reading email on a server, and this node speaks it directly: give it a user account credential, name a mailbox, and every message that matches becomes an execution. It is a trigger node, meaning it sits first in the workflow and nothing runs until it fires. The node ships with n8n and has no operations to pick from, only parameters.
The first scenario is the inbox that feeds a spreadsheet. Orders, forms and alerts arrive as mail, the node returns each one with Format set to simple, and the fields go straight into a row on Google Sheets. Set Action to read so a message never gets picked up twice.
The second is the shared mailbox nobody watches on weekends. Point Mailbox Name at Support, keep a narrow filter in Custom Email Rules, and push a short summary to Slack as soon as something lands. The team reads the channel, not four separate inboxes.
The third is the attachment pipeline. Suppliers email invoices as PDFs, Download Attachments saves each file as binary data on the item, and the rest of the workflow renames and files it. The Property Prefix Name option decides what those binary fields are called, which matters when a single mail carries several documents.
Prefer a dedicated node when one exists for the provider. For a Google mailbox, the Gmail node authenticates with OAuth and exposes labels, threads and drafts that IMAP never surfaces. This node earns its place on a provider with no n8n node at all: a hosting mailbox, a legacy domain, a ticketing address on an internal server.
Two limits are worth knowing before you build. The node reads mail and nothing else, so sending, deleting or moving a message happens elsewhere in the workflow. And an email is not a clean API payload: the body arrives as text or as a base64url encoded string depending on Format, and parsing it is your job. If that sounds like a lot of moving parts, the n8n review covers where the tool fits and where it does not.
What do you need to connect it?
- 01
Create the mailbox side first
The credential authenticates with a user account, so the mailbox has to allow IMAP access. On a personal Google account created before June 2024 you may need to enable IMAP in the mail settings, then turn on 2-Step Verification and generate an app password. Most providers publish their own IMAP instructions, and that page is where the host name and the port live.
- 02
Fill in the IMAP credential
In n8n, open Credentials and create an IMAP credential. User is the email address you are reading mail for. Password is either the mailbox password or the app password your provider told you to generate. Host is the IMAP server address, usually shaped like
imap.provider.com, andimap.gmail.comfor Gmail. - 03
Set the port and the transport
Port defaults to
993and stays there unless your provider or your mail administrator says otherwise. Turn the SSL/TLS toggle on so the connection is encrypted. Allow Self-Signed Certificates only comes into play on an internal server with its own certificate, so check with the administrator before enabling it. A credential is saved once and reused by every workflow.
How is each parameter set?
The Email Trigger (IMAP) node has 4 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Mailbox Name
mailboxWhat you see in n8n
Notes & use cases
Names the mailbox the node listens to on the IMAP server. Change it and the same credential watches a different folder, which is how one account serves several workflows.
Key parameters
- Mailbox Name: a text field holding the folder name as the server spells it,
INBOXby convention on most providers, or a name you created such asInvoices.
Action
postProcessActionWhat you see in n8n
Notes & use cases
Decides what happens to a message once n8n has received it. This is the parameter that keeps a workflow from processing the same email over and over.
Key parameters
- Action: pick
read(Mark as Read) and the message is marked as read on the server after the trigger fires. - Action set to
nothing(Nothing) leaves the mail untouched and unread, so it will be processed multiple times.
read for anything that writes somewhere, and reach for nothing only while testing, when you want to replay the same message.Format
formatWhat you see in n8n
Notes & use cases
Chooses the shape of the email handed to the next node. Pick it early.
Key parameters
- Format as
simplereturns the full email, though it will not gather inline attachments. - Format as
resolvedreturns the full email with all data resolved and attachments saved as binary data. - Format as
rawreturns the body in the raw field as a base64url encoded string, leaving the payload field unused. - Download Attachments: turn it on only when you need the files, since it adds processing.
- Property Prefix Name: the prefix for each attachment property, with an index appended, so
attachment_givesattachment_0.
resolved gives a predictable binary field to store.Options
optionsWhat you see in n8n
Notes & use cases
A collection opened with Add option. Nothing here is required, and an option you do not add keeps its default value, so the panel stays short until you need it.
Key parameters
- Custom Email Rules: custom fetching rules that decide which emails the node picks up, following the search criteria of the node-imap library.
- Fetch Only New Emails: fetches just the mail arrived since the last run, rather than everything matching the rules, which default to
["UNSEEN"]. - Force Reconnect Every Minutes: an interval in minutes that forces the connection to the server to be reopened.
Need help automating Email Trigger (IMAP) with n8n?
A person reads every message.
Questions people ask next
01Is the n8n Email Trigger (IMAP) node free to use?
02What credentials does it need?
03What are the limits of this node?
04When should you use it instead of a provider node?
05n8n or Make for watching a mailbox?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
