n8n-nodes-fastmail
v0.3.2
Published
This Fastmail node for n8n is designed to set parameters and execute specific operations for the Fastmail API.
Downloads
568
Readme
n8n-nodes-fastmail
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
This package provides:
Fastmailfor structured actions on messages, labels, drafts, and threads.Fastmail Triggerfor near real-time new-message events via JMAP event stream (SSE with reconnect).
Message Actions
- Add label to message
- Delete a message
- Get a message
- Get many messages
- Mark a message as read
- Mark a message as unread
- Remove label from message
- Reply to a message
- Send a message
Attachment Support
Attachments are supported as options on existing operations (not as separate actions):
- Upload from input binary properties on:
- Message
Send - Message
Reply - Draft
Create - Thread
Reply
- Message
- Download to output binary on:
- Message
Get - Message
Get Many
- Message
Label Actions
- Create a label
- Delete a label
- Get label info
- Get many labels
Draft Actions
- Create a draft
- Delete a draft
- Get a draft
- Get many drafts
Thread Actions
- Add label to thread
- Delete a thread
- Get a thread
- Get many threads
- Remove label from thread
- Reply to a message
- Trash a thread
- Untrash a thread
Live options
The node fetches available Fastmail data directly for dropdowns:
- Labels (mapped to Fastmail mailboxes)
- Identities
UI behavior
- Optional fields are hidden by default.
- Use
Compose Optionsto enable granular fields likeCc,Bcc,Reply All, and attachment binary mapping. - Use
Fetch Optionsto enable granular fields likeSearch,Read Status, body values, and attachment download settings. Mailbox Scopeand mailbox selection stay as dedicated top-level fields onGet Many(message/thread) for reliable mailbox picking.- Invalid option combinations are rejected with explicit errors (for example,
Reply Alloutside reply operations).
Credentials
Use a Fastmail API token with the required scopes for the JMAP methods you call.
OAuth2 readiness
OAuth2 support is prepared in code and can be enabled with a simple toggle.
- Toggle constant:
nodes/fastmail/Fastmail.node.ts->ENABLE_FASTMAIL_OAUTHnodes/fastmail/FastmailTrigger.node.ts->ENABLE_FASTMAIL_OAUTH
- Current default:
false(API token mode only) - Set to
trueto expose authentication switch (API Token/OAuth2) in the nodes.
Implemented OAuth2 credential:
- Credential type:
Fastmail OAuth2 API - Authorization URL:
https://www.fastmail.com/oauth/authorize - Token URL:
https://www.fastmail.com/oauth/token - Default scopes:
offline_access urn:ietf:params:jmap:core urn:ietf:params:jmap:mail urn:ietf:params:jmap:submission
Reference:
- Fastmail Developer OAuth docs: fastmail.com/dev
Compatibility
Tested with:
- n8n 2.11.0
Resources
Icon Attribution
- Node icon source:
Fastmail_icon_2019.svgfrom Wikimedia Commons. - Wikimedia marks this file as
PD-textlogo(public domain for copyright in many jurisdictions). - Fastmail name and logo may still be protected by trademark rights.
- Users are responsible for confirming trademark and branding permissions for their use case.
Local development (Docker)
Use the helper script:
./testdata/run.shThe script starts a node:22-slim container, installs dependencies, builds the node, installs n8n, and starts it on http://localhost:5678.
Local test run (simple Docker setup):
./testdata/run.shPrerequisite (once): run npm ci in the project root.
The script builds dist, prepares a clean custom package under .testdata/custom, and starts n8nio/n8n.
