惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
腾讯CDC
T
Tailwind CSS Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
The Cloudflare Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
B
Blog
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
博客园 - 司徒正美
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Protecting Sender Reputation When Agents Send Email
Qasim Muhammad · 2026-06-15 · via DEV Community

Qasim Muhammad

How many angry recipients does it take to stop an AI agent from sending email? Fewer than you'd guess: on Agent Accounts, a complaint rate of 0.5% pauses sending outright, and 0.1% — one spam report per thousand messages — is enough to put the account under review. An autonomous sender can cross either line in an afternoon, so reputation deserves a place in your architecture, not just your deliverability checklist.

The thresholds that pause you

Agent Accounts (currently in beta) are Nylas-hosted mailboxes, and the platform tracks rolling bounce and complaint rates per account. The send limits page publishes the exact lines:

Bounce rate State
Under 2% Healthy
5% or above Under review
10% or above Sending paused
Complaint rate State
Under 0.1% Healthy
0.1% or above Under review
0.5% or above Sending paused

Some detail keeps these fair. Only hard bounces — sends to addresses that don't exist — count toward the bounce rate; soft bounces from full mailboxes or greylisting don't. Complaints are counted when a recipient clicks Mark this email as spam or drags your mail to junk, and only recipient domains that send complaint feedback to senders contribute. And the denominator is your recent representative send volume rather than a fixed time window, so the math stays meaningful at a hundred messages a day or a million.

Do the arithmetic for a small sender and the margin gets uncomfortable. An agent that sends 2,000 messages across a window needs just two spam reports to hit the 0.1% review line, and ten to hit the 0.5% pause. Low volume doesn't mean low risk — it means each unhappy recipient carries more weight.

The part that surprises teams: pauses don't clear on a timer. Once sending is paused, resuming requires contacting support with the bounce or complaint source identified and the fix applied. There's no quiet period you can wait out, which means prevention is the entire game.

What enforcement looks like in code

"Under review" is silent to your application — sends keep succeeding while the clock runs. Enforcement and its neighbors surface as error responses on the send call, and they're worth distinguishing because the right reaction differs for each:

Status Body What it means What to do
400 Text mentioning an account-level suspension or paused sending Reputation enforcement paused the account Stop sending, find the bounce/complaint source, contact support
400 "domain is not verified" The from domain hasn't finished DNS verification Fix the MX/TXT records — no amount of retrying helps
429 "rate limit exceeded" A per-account or per-domain rate limit was hit Back off and retry, or raise quotas through a policy

Your agent's send wrapper should treat these as three different branches: a 429 is retryable with backoff, the verification 400 is a configuration bug, and the pause 400 should trip a hard stop on the whole outbound loop.

Watch the rates before the platform does

The only real-time window into the underlying rates is the transactional deliverability webhook family: message.transactional.delivered, message.transactional.bounced, message.transactional.complaint, and message.transactional.rejected — the same events the rate calculation is built from.

Wire those four into your own telemetry and add a circuit breaker: if bounces or complaints start climbing, pause your agent's outbound loop yourself. You'll see the problem before the platform acts on it, and a self-imposed pause needs no support ticket to lift. Subscription works like any other webhook:

curl --request POST \
  --url "https://api.us.nylas.com/v3/webhooks" \
  --header "Authorization: Bearer $NYLAS_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "trigger_types": [
      "message.transactional.bounced",
      "message.transactional.complaint",
      "message.transactional.rejected"
    ],
    "callback_url": "https://yourapp.example.com/webhooks/deliverability"
  }'

Isolate domains so one tenant can't sink the rest

Reputation accrues to domains, which makes domain layout a blast-radius decision. The provisioning guide recommends a dedicated subdomain for production — agents.yourcompany.com — so agent traffic can't drag down your primary marketing domain. From there, two patterns scale the idea:

  • Reputation sharding. Split high-volume outbound across sales-a.yourcompany.com, sales-b.yourcompany.com, and so on, so trouble on one domain doesn't contaminate the others.
  • Per-customer domains. In multi-tenant apps, provision each customer's agents on that customer's own verified domain. One tenant's sloppy list hygiene then burns only their reputation — a single application can manage accounts across any number of registered domains, so this costs you nothing architecturally.
  • Environment separation. Keep agents.staging.yourcompany.com and agents.yourcompany.com in the same application, so load tests and integration suites never spend the production domain's reputation.

Domain authentication is part of the same story: missing or misconfigured SPF, DKIM, or DMARC shows up as a higher bounce rate from recipient servers that refuse the mail outright. The TXT records you publish during domain registration carry that configuration, so verify before you scale up volume.

The other block: abuse restrictions

Separate from reputation math, an abuse restriction can be applied when the operations team identifies out-of-policy use. Matching sends fail immediately with 403 Forbidden and the body send blocked by abuse restriction. There's no threshold to manage here — and the scoping deserves attention: a restriction can target a sender address, a domain including its subdomains, a grant, an application, or an entire organization. At the application level it stops every Agent Account under that app, not just the misbehaving one. Recovery is through support with your application ID, grant ID, and an example error; once cleared, sends succeed on the next attempt.

The hygiene that keeps you healthy

The boring practices work: validate recipient addresses before sending and skip anything that has hard-bounced before; honor unsubscribes immediately; use double opt-in for lists you care about. For an agent, encode these as code-level rules around the send call — an LLM won't independently decide that a recipient bounced last Tuesday.

Two questions that come up often:

Do these thresholds apply to connected Gmail or Microsoft accounts? No — they're specific to Agent Account grants (provider: "nylas"), where Nylas owns the SMTP path. Deliverability for connected grants is governed by the upstream provider's own rules.

How does this interact with the daily send quota? They're independent ceilings. The free plan caps volume at 200 messages per account per day (paid plans have no daily cap by default, and a policy can set a stricter quota), while bounce and complaint rates judge quality at any volume. You can be paused well under quota, and you can hit quota with a spotless reputation.

A worthwhile exercise before your agent's volume grows: sketch what happens to your product if its sending paused today, and how long until you'd notice. If the answers are "everything stops" and "when a customer complains," start with the webhook subscription above — it's one API call and it turns both answers around.