Skip to content
couryo

Developer guideSending

Deliverability agent

Couryo's deliverability agent checks SPF, DKIM, DMARC and return path live, domain block lists, bounces and complaints by mailbox provider, and sends the weekly "Your email health" summary.

View as Markdown

The deliverability agent watches every domain in the project and explains in plain words what is fine, what is at risk and how to fix it. In this version it only reads and warns: it does not change DNS, pause anything or touch your list.

What it checks#

Item How
SPF, DKIM, DMARC and return path live DNS lookups: both DKIM selectors (couryo1 and couryo2), the return path, DMARC (policy and duplicate records) and the main domain's SPF (two SPF records or +all raise a warning)
Domain block lists Spamhaus DBL and SURBL, over DNS. When a list refuses the query, the result shows as "no answer", never as "clean"
Bounces and complaints over the last 30 days, in total and by mailbox provider (Gmail, Microsoft, Yahoo, UOL, BOL, Terra, Locaweb and others), with a warning when one provider stands out
Reputation the sending engine's reputation recommendations for your domain (DKIM, DMARC, SPF, bounces, complaints), translated
DMARC reports the aggregate reports Gmail, Yahoo, Outlook and others send every day to reports@dmarc.couryo.com: who sent with your domain, how many messages and whether they passed SPF, DKIM and DMARC (see below)
Next DMARC step after 30 clean days, suggests moving from p=none to p=quarantine, then to p=reject, with the record ready to copy

"30 clean days" means: domain verified and on its current policy for 30 days or more, DKIM and return path right, no block list, bounces up to 2% and complaints up to 0.1% over the last 30 days, and no account pause in that period. Before moving DMARC up, make sure every service that sends from your domain (company email, billing, CRM) signs with DKIM on your own domain: the policy applies to all of them.

Each domain gets All good, Needs attention or Serious problem, with the findings from most to least serious and how to fix each one.

Where to see it#

  • Dashboard: the Deliverability screen shows the diagnosis of every domain in the project, with a Check now button; Home has the "Email health" card.
  • API: GET /v1/domains/{id}/health (read scope).
  • MCP: the domain_health tool returns the same diagnosis to your AI agent; deliverability_report puts every project domain, the rates by mailbox provider and the recommendations in a single report, and email_stats and top_bounces show the numbers and bounce reasons by period. See MCP and agents.
  • Email: every Monday morning (Brasília time), the "Your email health" summary with each domain's status and the main points. To stop it, turn off Weekly health under Settings > Notifications.

The diagnosis is kept for 15 minutes; ?refresh=1 (or Check now) runs everything again.

cURL
curl "https://api.couryo.com/v1/domains/dom_7h2kq9w4x1abcdef/health?refresh=1" \
  -H "Authorization: Bearer $COURYO_API_KEY" \
  -H "Accept-Language: en"
Response (shortened)
{
  "domain": "example.com",
  "status": "good",
  "summary": "example.com is all set: full authentication, no block list and 0.6% bounces in the last 30 days.",
  "authentication": {
    "spf": { "status": "ok", "detail": "..." },
    "dkim": { "status": "ok", "selectors": [{ "selector": "couryo1", "status": "ok" }, { "selector": "couryo2", "status": "ok" }], "detail": "..." },
    "dmarc": { "status": "warning", "policy": "none", "detail": "..." },
    "return_path": { "status": "ok", "detail": "..." }
  },
  "blocklists": [
    { "list": "spamhaus_dbl", "name": "Spamhaus DBL", "status": "clean", "detail": "Not listed." },
    { "list": "surbl", "name": "SURBL", "status": "clean", "detail": "Not listed." }
  ],
  "delivery": { "window_days": 30, "sent": 1840, "bounced": 11, "complained": 0, "bounce_rate": 0.006, "complaint_rate": 0, "by_provider": [] },
  "reputation": [],
  "dmarc_suggestion": {
    "current": "none",
    "next": "quarantine",
    "record": "v=DMARC1; p=quarantine; rua=mailto:reports@dmarc.couryo.com; adkim=r; aspf=r",
    "clean_days": 34,
    "message": "..."
  },
  "findings": []
}

New domain: warm-up#

A new domain has no reputation, and providers distrust volume from it: an email with SPF, DKIM and DMARC right can still land in spam. Couryo takes care of it on its own:

  • Sending age: for each domain we count the delivered emails and the days with sending in the last 30 days (before today, transactional and marketing together). With fewer than 7 days with sending or fewer than 500 delivered, the domain is warming up.
  • A daily cap that grows: the domain's campaigns and marketing sequences share a daily cap of 50, 100, 200, 400, 800, 1,600 and 3,200 emails, one step per day with sending; after that, no cap. When today's cap is used up, sending waits and continues at 08:00 the next day (account time zone), with nothing for you to do.
  • Transactional email does not count towards the cap: password, billing and confirmation emails go out right away and help build the history.
  • What to do: start with your most engaged contacts (people who bought or opened emails recently), send real content (never the editor's sample text) and avoid old lists. Details in Campaigns.

DMARC reports#

Each domain's DMARC sends aggregate reports to rua=mailto:reports@dmarc.couryo.com. Couryo reads every report (XML, zip or gzip) and keeps, per domain and per day, the sending sources (IP and number of messages), the SPF, DKIM and DMARC results and the alignment with your domain. Reports are kept for 90 days.

In the dashboard, open the domain and the DMARC tab. Through the API:

Terminal
curl "https://api.couryo.com/v1/domains/dom_7h2kq9w4x1abcdef/dmarc?days=30" \
  -H "Authorization: Bearer $COURYO_API_KEY"

The response carries the totals (messages, pass, fail, pass_rate), one item per day (days), the sources (sources, with IP, messages, failures, aligned DKIM and SPF and who reported) and the signals (signals):

Signal When
unauthenticated_sources someone is sending as you without authenticating: servers that sent messages with your domain and failed DMARC in the last 14 days. It may be spoofing or one of your services (company email, CRM) without DKIM on your domain
ready_for_quarantine / ready_for_reject all aligned for 30 days: at least 99% of messages passed DMARC, with no failing sources; comes with the new record ready
update_rua your DMARC sends reports to the old address (dmarc@couryo.com) or elsewhere: comes with the right record, keeping your policy
no_reports no report yet (providers send one a day, up to 48 hours after the first emails)

The same diagnosis shows in GET /v1/domains/{id}/health (findings dmarc_unauthenticated and dmarc_rua_outdated), and the suggestion to move DMARC up waits while a source is failing.

Domains added before 2026-10-08 used rua=mailto:dmarc@couryo.com. They show "Update your DMARC" in the dashboard: replace the _dmarc TXT with the value shown, which keeps your policy.

Inbox placement test#

Measures where your email lands at the providers that matter in Brazil: Gmail, Outlook/Hotmail, Yahoo, UOL, BOL, Terra and iCloud. Couryo sends one copy to each platform test mailbox, with a unique code in the subject and in the X-Couryo-Test header, and reads the mailboxes for up to 10 minutes looking for the copy in the inbox, in spam and in the Gmail Promotions tab.

The result comes per provider:

Field What it says
placement inbox, promotions (Promotions tab), spam, missing (did not arrive or was refused), pending (still looking) or error (we could not read the test mailbox)
authentication the SPF, DKIM and DMARC the provider recorded in the copy's Authentication-Results header
seconds_to_arrive how long the copy took to arrive
email_id the copy's email: its timeline shows the provider's answer when it refused or deferred it
tips what to improve, most important first, in plain language
  • Paid plans: 30 tests a month on Pro, 100 on Scale and 300 on Enterprise (calendar month), up to 10 a day and one test at a time per project. On Free the answer is inbox_test_not_available with the option to move to Pro. It spends no AI credits.
  • Each copy is a normal send: it leaves from your verified domain, with your DKIM signature, goes through the content check and counts in the plan quota (one per test mailbox). Use a live key (ck_live_).
  • Once read, the copy is deleted from the test mailbox. Senders never see the test mailbox addresses.
  • While the test mailboxes are not ready, the dashboard shows Being set up and the API answers inbox_test_unavailable.
cURL
curl https://api.couryo.com/v1/deliverability/inbox-tests \
  -H "Authorization: Bearer $COURYO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from": "Shop <orders@example.com>", "subject": "Your order is on its way", "template_id": "order-shipped", "variables": { "name": "Ana" } }'

Call GET /v1/deliverability/inbox-tests/{id} every minute until status is completed:

Answer (shortened)
{
  "id": "itest_4k2j9x1m7q8w3e5r",
  "status": "completed",
  "subject": "Your order is on its way [cy-8h3k2m9q1x7z]",
  "results": [
    { "provider": "gmail", "placement": "promotions", "folder": "INBOX (category:promotions)", "seconds_to_arrive": 6, "authentication": { "spf": "pass", "dkim": "pass", "dmarc": "pass" }, "email_id": "msg_...", "error": null },
    { "provider": "outlook", "placement": "spam", "folder": "Junk Email", "seconds_to_arrive": 11, "authentication": { "spf": "pass", "dkim": "pass", "dmarc": "pass" }, "email_id": "msg_...", "error": null }
  ],
  "summary": { "total": 7, "inbox": 5, "promotions": 1, "spam": 1, "missing": 0, "pending": 0, "error": 0 },
  "tips": ["It went to spam at Outlook/Hotmail with authentication passing: content or reputation is the cause. ..."]
}

In the dashboard the test is on the Deliverability page; over MCP, in the inbox_test and get_inbox_test tools.

Spelling in the pre-send check#

POST /v1/emails/check and the pre-send review (templates and campaigns) also check the Portuguese spelling of the text people read: the subject and the visible body, up to 2,000 words, with a pt-BR dictionary that runs inside Couryo (the text does not go to another service). It is on every plan.

  • A warning, never an error: sending is not blocked. The spelling field brings the words (issues, with suggestions) and the issue list gets the spelling item.
  • Left out: {{...}} variables, links, email addresses, numbers, capitalized proper names, acronyms and the words of the project dictionary, which you edit in the dashboard under Settings or with the "Add to dictionary" button of the review (brands, product names, terms of your business).
  • Text in another language is not corrected: spelling.status comes as not_portuguese.

Slack alerts#

Under Settings, each project can plug in a Slack incoming webhook (https://hooks.slack.com/services/...; no other address is accepted). The deliverability alerts (sending paused, limit reduced by high bounces and campaign paused by bounces) reach the channel right away, besides the email. Received emails of the chosen categories can go there too: see Receiving email. The address is stored encrypted and the dashboard only shows its start and end. It is on every plan.

What it does not do yet#

  • Act on its own (move DMARC up, pause a campaign, suppress a list): later, always with your permission.
  • Read Google Postmaster or Microsoft SNDS data: coming soon. Today the rates come from emails sent through Couryo and from the DMARC reports.
  • Alerts on WhatsApp: coming soon. The weekly summary arrives by email; the alerts can also go to Slack.