All projects

Automation

n8n automations.

A mail relay that checks requests and avoids processing a message twice.

Private prototype

Mail relay · workflow diagram

  1. IMAPIncoming mail
  2. RulesCheck request
  3. RegistryCheck for duplicates
  4. SMTPForward

Already processed? The message is skipped.

The problem

A relay that receives the same email more than once can trigger duplicate sends. The workflow checks a request and records its state before forwarding it.

What it does

  • Read incoming messages, apply rules and forward only when conditions are met.
  • A request registry with a separate setup workflow.
  • A separate test version for fictional cases.

Technical decisions

Processing and registry setup live in separate workflows. A registry check distinguishes new requests from messages already handled.

Security and privacy

The diagram omits mailboxes, access details and mail settings. It contains no real email content or credentials.