Deliverability Triage
Use this when "my agent's email didn't arrive." Find the branch that matches the symptom.
Sent, but bounced
- Subscribe to the
message.bouncedevent (webhook or WebSocket) — a successfulsend()call only confirms AgentMail accepted the message, not that it was delivered. - Check whether
feedback_enabledis set on the sending domain. When enabled, AgentMail routes bounce and complaint notifications to your inboxes; if it was never set, you may be missing that feedback entirely. See admin.md. - Self-monitor bounce rate with
client.metrics.query_events(event_types=["message.bounced"], ...)/client.metrics.queryEvents({ eventTypes: ["message.bounced"], ... }).
Delivered, but landing in spam
- Check the sending domain's DKIM and SPF records for the two known misconfigurations: a Route 53 DKIM TXT value with a space between its quoted halves, and a second competing SPF record instead of one merged record. See admin.md.
- Confirm the domain was actually verified —
domains.create()returns arecordsfield listing what to add at your registrar;domains.verify()must succeed afterward.
Inbound mail never arrives ("blocked" or missing)
- Check the receiving inbox's allow/block lists for
direction="receive". A block entry — or a receive-direction allow list that excludes the sender — will filter the message before it reaches you. Block always takes priority over allow. See admin.md. - If the credential has the required label permissions, subscribe to
message.received.spam/message.received.blockedto see mail AgentMail classified as spam or blocked rather than routed to plainmessage.received. See websockets.md / webhooks.md.
Domain not verified
- Custom domains need verification before they're fully usable;
@agentmail.toinboxes need none. Add the SPF/DKIM/DMARC records from therecordsfield returned bydomains.create()at your registrar, then calldomains.verify(domain_id).