SMTP and IMAP
Send deliberately and read mailbox headers without implying OAuth or exactly-once delivery.
Mail utilities use the installed Python 3 runtime and provider-supported password/app-password authentication. They do not implement a general OAuth mail client, a mailbox synchronization service or durable event ingestion automatically.
SMTP setup#
Configure the provider host, TLS mode, username and passwordSecret name where authorization is required. The secret value stays in protected storage. Enable allowSend deliberately and retain runtime $retries:0. Plain SMTP is allowed only for loopback fixtures; real transport uses verified TLS.
Build a synthetic message first and inspect sender, recipients, subject, body and a stable Message-ID. Do not send a real message merely to test that Python or a credential field exists. Use an account's appropriate test/sandbox facility when an authorized delivery test is needed.
Delivery and replay#
SMTP has no universal exactly-once guarantee. Partial recipient refusal is reported explicitly; some recipients may have accepted the same message. A timeout or lost response can occur after acceptance. Reconcile using Message-ID, recipient status and provider/mailbox observations before repeating.
A workflow retry repeats the send. A fresh Message-ID can defeat your own deduplication. Persist the business event and delivery observations if an upstream event can recur or the graph may resume later.
IMAP header reads#
IMAP Read Headers uses verified TLS, read-only mailbox selection and BODY.PEEK header retrieval. It does not mark messages read, delete messages or download bodies. The operation returns bounded headers under its actual selected schema.
Message UID is scoped to mailbox UIDVALIDITY. Store both when using a UID as application progress, and handle UIDVALIDITY changes as a new identity epoch rather than assuming old UIDs still mean the same messages. The adapter is not advertised as a durable deduplicating trigger.
Runtime and troubleshooting#
The normal ONF host account must be able to locate Python 3. A successful interactive terminal command under a different account does not establish the host worker's runtime environment. Separate runtime discovery failures from TLS/authentication failures and provider quota/policy errors.
Provider support for passwords/app-passwords and account restrictions is external. If a provider requires an unsupported OAuth mechanism, use a suitable supported integration instead of copying a bearer token into a password field or disabling TLS checks.
Read exact inputs/configuration in the catalog. Source tests use mocked SMTP/IMAP modules and synthetic messages; they do not prove a real mailbox, permission or delivered message.
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
../OpenNodeFlow-Library/work/core/SETUP.md../OpenNodeFlow-Library/docs/INTEGRATIONS.mddocs/LIBRARY-UTILITIES.md