Message categories
Comail accepts six category values. Set one with the category field in the HTTP API or the X-Atmos-Category SMTP header. If you omit the field or use an unknown value, Comail treats the message as untagged. The category controls:
- Whether Comail adds
List-UnsubscribeandList-Unsubscribe-Postheaders in the RFC 8058 one-click format. - Whether a recipient can bypass an unsubscribe-only entry in your DID’s suppression list.
Use the correct category. A recipient who unsubscribes from a bulk message is blocked from later list mail. A recognized user-initiated transactional category can bypass an unsubscribe-only block. Other suppression reasons still block the message.
The six categories
Section titled “The six categories”User-initiated transactional
Section titled “User-initiated transactional”Use one of these categories when the recipient just asked for the message.
login-link: magic-link sign-in, passwordless authentication codespassword-reset: password reset linksmfa-otp: multi-factor codes (TOTP confirmations, push-auth secondary delivery)verification: email address verification (signup, address change)
Comail leaves out List-Unsubscribe and ignores suppression entries caused
only by an unsubscribe. Other suppression reasons still block the message.
The Feedback-ID category is transactional.
Use bulk for marketing email, newsletters, product updates, and other list mail.
Comail adds the RFC 8058 one-click headers List-Unsubscribe and
List-Unsubscribe-Post unless the message already has either header. It removes
suppressed recipients before queuing. The Feedback-ID category is bulk.
Broadcast
Section titled “Broadcast”Use broadcast for a one-off announcement to your list. The unsubscribe and
suppression rules match bulk. The Feedback-ID category is broadcast so
you can distinguish these messages in feedback.
Untagged (the omit-the-field case)
Section titled “Untagged (the omit-the-field case)”If you omit category or use an unknown value, Comail treats the message as untagged:
- No
List-Unsubscribeheaders are added. - The suppression list is enforced. An unsubscribe-only entry blocks untagged mail.
- The category in
Feedback-IDistransactional.
The Acceptable Use Policy treats untagged mail as bulk for policy purposes. Set a category for each message.
Worked examples
Section titled “Worked examples”HTTP: magic-link sign-in
Section titled “HTTP: magic-link sign-in”{ "from": "auth@yourdomain.com", "to": "alice@example.com", "subject": "Your sign-in link for Acme", "text": "Click to sign in: https://acme.com/auth?token=abc123\n\nThis link expires in 10 minutes.", "category": "login-link"}Result: no unsubscribe headers are added. The message bypasses an unsubscribe-only suppression entry, but other suppression entries still block it.
HTTP: newsletter
Section titled “HTTP: newsletter”{ "from": "news@yourdomain.com", "to": "alice@example.com", "subject": "Acme this week", "html": "<p>Latest updates from Acme...</p>", "category": "bulk"}Result: List-Unsubscribe headers added. Alice can one-click out, and if she does, future bulk sends to her are dropped.
Sender-provided List-Unsubscribe headers
Section titled “Sender-provided List-Unsubscribe headers”If a bulk or broadcast message already has either List-Unsubscribe or List-Unsubscribe-Post, Comail adds neither header.
You must provide a valid RFC 8058 pair. Comail does not add a missing header when you supply only one.
Header matching is case-insensitive per RFC 5322, so LIST-UNSUBSCRIBE: and list-unsubscribe: are both recognized.
Suppression-list enforcement stays active when sender headers take precedence. Comail removes suppressed recipients before the message enters the queue.
When to use your own headers: if you operate your own unsubscribe infrastructure (a preference center, a third-party ESP’s unsubscribe URL, etc.), include both headers in your message. For a valid RFC 8058 one-click pair, List-Unsubscribe must contain an HTTPS URI (a mailto: URI may additionally be present) and List-Unsubscribe-Post must be exactly List-Unsubscribe=One-Click. Comail’s per-recipient token approach is replaced by your own system.
When to let comail handle it: if you don’t have your own unsubscribe infrastructure, tag the message bulk or broadcast and omit both headers. Comail injects a per-recipient one-click unsubscribe URL automatically.
SMTP: same thing via the X-Atmos-Category header
Section titled “SMTP: same thing via the X-Atmos-Category header”MAIL FROM:<auth@yourdomain.com>RCPT TO:<alice@example.com>DATAFrom: auth@yourdomain.comTo: alice@example.comSubject: Your sign-in linkX-Atmos-Category: login-link
Click to sign in: https://acme.com/auth?token=abc123.The relay removes X-Atmos-Category before signing. It adds a category value to Feedback-ID, which receiving systems can read.
Anti-pattern: using verification for marketing
Section titled “Anti-pattern: using verification for marketing”{ "from": "marketing@yourdomain.com", "to": "alice@example.com", "subject": "Verify your interest in our new product", "category": "verification"}Tag marketing mail as bulk or broadcast, even when its subject asks the
recipient to verify something. Under the AUP, stripping or misusing a
category can end your relay access.
What about reply-to and Reply-To header?
Section titled “What about reply-to and Reply-To header?”The Reply-To header is independent of the category. Use it to direct replies to a mailbox you monitor.
Choosing between login-link / password-reset / mfa-otp / verification
Section titled “Choosing between login-link / password-reset / mfa-otp / verification”These four categories have the same relay policy: no unsubscribe headers, a bypass for unsubscribe-only suppression entries, and a transactional Feedback-ID value. Choose the category that describes the message.
Summary table
Section titled “Summary table”| Category | List-Unsubscribe | Suppression list | Feedback-ID |
|---|---|---|---|
login-link |
not added | bypasses unsubscribe-only entries | transactional |
password-reset |
not added | bypasses unsubscribe-only entries | transactional |
mfa-otp |
not added | bypasses unsubscribe-only entries | transactional |
verification |
not added | bypasses unsubscribe-only entries | transactional |
bulk |
added (RFC 8058), unless the sender already provides either header | enforced | bulk |
broadcast |
added (RFC 8058), unless the sender already provides either header | enforced | broadcast |
| (omitted or unknown) | not added | enforced; no unsubscribe-only bypass | transactional |
Related
Section titled “Related”- HTTP Send API: the
categoryfield reference - SMTP submission:
X-Atmos-Categoryheader - Bounces + suppression: what the suppression list does and how to inspect it
- Acceptable Use Policy: what counts as bulk vs transactional under the AUP