# IMAP SRV Record Lookup (_imap._tcp)

> IMAP SRV Record Lookup (_imap._tcp) is a paid API for AI agents from dns.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Resolves _imap._tcp SRV DNS records for a domain via Cloudflare DoH, returning priority, weight, port, and target host for IMAP service discovery.

## Facts

- Endpoint: GET https://dns.intel.rallylive.ca/dns/srv/imap-tcp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imap-srv-record-lookup-imap-tcp-5bf953ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mkz7aTTAECN-De041fwLi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imap-srv-record-lookup-imap-tcp-5bf953ed
```

Example prompt: Look up the _imap._tcp SRV DNS record for gmail.com so I can see what host and port their IMAP service runs on.

## When to prefer this

Use this endpoint when you need to programmatically discover a domain's IMAP server configuration directly from DNS rather than guessing common hostnames like mail.domain.com or imap.domain.com. Ideal for email client auto-configuration, mail infrastructure audits, or validating that SRV records were correctly published after a mail server migration. Prefer this over MX record lookups when specifically needing IMAP (TCP port-level) service discovery per RFC 6186.

## Known failure modes

- Domain has no _imap._tcp SRV record — returns empty answer section
- Invalid or malformed domain name — DNS query fails
- Domain does not exist (NXDOMAIN) — no records returned
- Cloudflare DoH upstream timeout or error — service unavailable
- Network or payment failure — x402 payment not processed

## How this service works

IMAP service discovery (_imap._tcp.<domain>): SRV records with priority, weight, port and target host, from Cloudflare DoH. Tells a client where the domain's imap service lives without guessing hosts. $0.01 per lookup.

## Output

Returns SRV record data for _imap._tcp.<domain>, including one or more records each with priority (integer), weight (integer), port (integer), and target hostname — exactly what an email client needs to locate the domain's IMAP server without guessing common hostnames.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imap-srv-record-lookup-imap-tcp-5bf953ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dns.intel.rallylive.ca](https://www.zero.xyz/host/dns.intel.rallylive.ca/llms.txt)
