Skip to content

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:

  1. Whether Comail adds List-Unsubscribe and List-Unsubscribe-Post headers in the RFC 8058 one-click format.
  2. 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.

Use one of these categories when the recipient just asked for the message.

  • login-link: magic-link sign-in, passwordless authentication codes
  • password-reset: password reset links
  • mfa-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.

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.

If you omit category or use an unknown value, Comail treats the message as untagged:

  • No List-Unsubscribe headers are added.
  • The suppression list is enforced. An unsubscribe-only entry blocks untagged mail.
  • The category in Feedback-ID is transactional.

The Acceptable Use Policy treats untagged mail as bulk for policy purposes. Set a category for each message.

{
"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.

{
"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.

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>
DATA
From: auth@yourdomain.com
To: alice@example.com
Subject: Your sign-in link
X-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.

The Reply-To header is independent of the category. Use it to direct replies to a mailbox you monitor.

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.

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

Back to docs