Skip to content

Documentation

Set up a sending domain and send mail through Comail’s HTTP API or SMTP service.

  1. Sign in to Builders with your AT Protocol handle. Your personal data server (PDS) must support Comail’s sign-in flow.
  2. Enroll the domain you want to send from. Save your API key when it appears. Comail shows it only once.
  3. Publish the DNS records Comail shows for that domain. See DNS records for manual setup, or Comail, Marque, and atproto if Marque manages the domain.
  4. Wait for DNS verification to finish, then send mail through SMTP or the HTTP API.

New domains go through a 14-day warming period that protects the shared IP pool’s reputation.

Identity and sending domains

Your handle is the name you sign in with. It resolves to a stable account ID called a decentralized identifier (DID). Your domains and settings stay with that DID when you change handles.

For example, you can sign in as person.bsky.social and send from news.example.com after you prove control of the domain. If your handle already matches the sending domain, Comail can verify it through your handle. Otherwise, add the TXT record shown during setup. See DNS records and Multiple domains.

SMTP and the HTTP API authenticate with your DID and an API key. SMTP also accepts an enrolled sending domain as the username.

Comail shows a new key once and stores only a one-way fingerprint. To replace a key, sign in to the builder console, choose API keys, create a new key, update your app, and then disable the old key. See API keys.

Multiple domains

During the alpha, standard accounts can enroll one sending domain and founding members can enroll up to three. To add another, open your account and choose “Add another domain”. See Sending limits.

Per domain

  • Publish DKIM, SPF, and DMARC records for each domain. Each new domain starts its own warming period.
  • You can forward replies to a different mailbox for each domain. See Reply forwarding.
  • If an app sends from one domain, limit its API key to that domain. An account-wide key can send from any enrolled domain. See API keys.
  • If a domain reaches the bounce or complaint threshold in a 24-hour window, the relay pauses sending for that domain. Other domains can still send.

Across your account

  • Hourly and daily account limits count messages submitted across every domain on your account. Each send uses the lower of the domain’s warming limit and your account ceiling.
  • Your suppression list, 14-day deliverability totals, public labels, and account-level safety or suspension status apply across the whole account.

Tracking message status

Check recent messages and domain status in /account after you sign in. API clients can pull per-message delivery, bounce, and complaint events from the Events API or receive them through Webhooks.

Two API-key-authenticated endpoints return account-wide JSON summaries:

  • GET https://smtp.atmos.email/member/status?did=...: total send count, configured hourly and daily limits, current account status, enrolled domains, active public labels, and the effective send gate under safety. Does not include bounce counts.
  • GET /member/deliverability?did=...: rolling 14-day send, bounce, and complaint totals, plus daily send counts. See Feedback monitoring.

Reliability

When the relay accepts a message (250 OK on SMTP or 200 on the HTTP API), it writes and syncs (fsync) the message to disk before returning the response. This lets the relay recover accepted messages after a restart.

If the recipient’s mail server (MX) returns a temporary error (4xx) or the connection fails, the relay retries automatically:

  • Default delays between attempts: 1, 5, 15, and 30 minutes
  • By default, the relay makes up to 5 attempts before it reports a bounce

During an orderly shutdown, the relay stops accepting new connections, lets active deliveries finish, and keeps queued messages on disk for the next process to reload. Recovery requires an intact spool and disk.

You’ll see these states in /account for each message:

Status Meaning
accepted Queued for delivery
deferred Recipient mail server returned 4xx; the relay will retry
sent Delivered to the recipient’s mail server
bounced Max retries exceeded or recipient returned 5xx; delivery status notification (DSN) forwarded to your domain’s forward-to mailbox if set

For HTTP, retry temporary server failures and 429 rate limits after a delay. Follow the reported retry time when available. Fix authentication, domain, and request errors before trying again. For SMTP, 4xx responses are temporary and 5xx responses are permanent rejections. The protocols use these numbers differently. See the error code table.

Browse public projects in the Comail organization. Contact the operator for access to the private Relay or website repository.