Skip to content

Network

Grade the email authentication of any domain

Send a domain or an email address. The API reads the SPF record and counts its DNS lookups, the DMARC policy, DKIM keys on common selectors and on the selectors you pass, BIMI, the MTA-STS record and policy file, TLS-RPT and MX. It returns a score out of 100, a grade from A to F, and the fixes in order of importance, each with the DNS record to publish when one is needed.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
gradestringA, B, C, D or F.
scoreintegerScore from 0 to 100.
mx.providerstring or nullMail provider recognized from the MX hosts.
spf.recordstring or nullSPF record of the domain.
spf.dns_lookupsintegerDNS lookups the record needs, limit 10.
dmarc.policystring or nullnone, quarantine or reject.
dkim.keysarrayDKIM keys found: selector, key type and size, testing, revoked.
bimi.recordstring or nullBIMI record at default._bimi.
mta_sts.modestring or nullenforce, testing or none, from the policy file.
tls_rpt.recordstring or nullTLS-RPT record at _smtp._tls.
fixesarrayFixes in order: code, severity, area, message and the record to publish.

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/email/auth \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"domain":"github.com"}'
Request fields
domainstring · RequiredA sending domain, or an email address whose domain is checked.
selectorsarray · OptionalUp to 10 extra DKIM selectors to check besides the common ones.
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "id": "lkp_01M8CGD47HPCSHCN5SVATD9ZRX",
  "object": "email_auth",
  "input": "github.com",
  "domain": "github.com",
  "grade": "B",
  "score": 89,
  "mx": {
    "status": "NOERROR",
    "records": [
      {
        "priority": 0,
        "exchange": "github-com.mail.protection.outlook.com"
      }
    ],
    "null_mx": false,
    "provider": "Microsoft 365"
  },
  "spf": {
    "record": "v=spf1 ip4:192.30.252.0/22 ip4:172.170.10.240/28 ip4:40.78.162.192/28 ip4:172.170.3.48/28 include:spf.protection.outlook.com include:_netblocks.google.com include:_netblocks2.google.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net include:mktomail.com include:sendgrid.net ip4:62.253.227.114 ip4:166.78.69.169 ip4:166.78.69.170 ip4:166.78.71.131 ~all",
    "records_found": 1,
    "valid": true,
    "all": "softfail",
    "mechanisms": [
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "192.30.252.0/22"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "172.170.10.240/28"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "40.78.162.192/28"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "172.170.3.48/28"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "spf.protection.outlook.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "_netblocks.google.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "_netblocks2.google.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "mail.zendesk.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "_spf.salesforce.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "servers.mcsv.net"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "mktomail.com"
      },
      {
        "qualifier": "+",
        "type": "include",
        "value": "sendgrid.net"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "62.253.227.114"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "166.78.69.169"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "166.78.69.170"
      },
      {
        "qualifier": "+",
        "type": "ip4",
        "value": "166.78.71.131"
      },
      {
        "qualifier": "~",
        "type": "all",
        "value": null
      }
    ],
    "dns_lookups": 10,
    "lookup_limit": 10,
    "issues": []
  },
  "dmarc": {
    "record": "v=DMARC1; p=quarantine; sp=reject; pct=100; rua=mailto:dmarc@github.com; ruf=mailto:dmarc@github.com; fo=1",
    "valid": true,
    "policy": "quarantine",
    "subdomain_policy": "reject",
    "pct": 100,
    "rua": [
      "mailto:dmarc@github.com"
    ],
    "ruf": [
      "mailto:dmarc@github.com"
    ],
    "adkim": "r",
    "aspf": "r",
    "issues": []
  },
  "dkim": {
    "selectors_checked": [
      "google",
      "selector1",
      "selector2",
      "k1",
      "k2",
      "k3",
      "s1",
      "s2",
      "default",
      "dkim",
      "mail",
      "smtp",
      "mandrill",
      "mxvault",
      "zmail",
      "zoho",
      "protonmail",
      "protonmail2",
      "protonmail3",
      "fm1",
      "fm2",
      "fm3",
      "sig1",
      "mailjet",
      "krs",
      "mailo",
      "cm",
      "everlytickey1"
    ],
    "keys": [
      {
        "selector": "google",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 2048,
        "testing": false,
        "revoked": false,
        "issues": []
      },
      {
        "selector": "selector1",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 1024,
        "testing": false,
        "revoked": false,
        "issues": [
          "short_key"
        ]
      },
      {
        "selector": "k1",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 1024,
        "testing": false,
        "revoked": false,
        "issues": [
          "short_key"
        ]
      },
      {
        "selector": "k2",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 2048,
        "testing": false,
        "revoked": false,
        "issues": []
      },
      {
        "selector": "k3",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 2048,
        "testing": false,
        "revoked": false,
        "issues": []
      },
      {
        "selector": "s1",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 2048,
        "testing": false,
        "revoked": false,
        "issues": []
      },
      {
        "selector": "s2",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 2048,
        "testing": false,
        "revoked": false,
        "issues": []
      },
      {
        "selector": "mailo",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 1024,
        "testing": false,
        "revoked": false,
        "issues": [
          "short_key"
        ]
      },
      {
        "selector": "cm",
        "valid": true,
        "key_type": "rsa",
        "key_bits": 1024,
        "testing": false,
        "revoked": false,
        "issues": [
          "short_key"
        ]
      }
    ]
  },
  "bimi": {
    "record": null,
    "valid": false,
    "logo_url": null,
    "authority_url": null,
    "issues": []
  },
  "mta_sts": {
    "record": null,
    "id": null,
    "policy_status": null,
    "mode": null,
    "max_age": null,
    "mx": [],
    "issues": []
  },
  "tls_rpt": {
    "record": null,
    "valid": false,
    "rua": [],
    "issues": []
  },
  "fixes": [
    {
      "code": "rotate_dkim_key",
      "severity": "info",
      "area": "dkim",
      "message": "These DKIM keys are shorter than 2048-bit RSA: selector1._domainkey.github.com (1024-bit), k1._domainkey.github.com (1024-bit), mailo._domainkey.github.com (1024-bit), cm._domainkey.github.com (1024-bit). Rotate to 2048-bit keys from your sending service.",
      "record": null
    },
    {
      "code": "add_mta_sts",
      "severity": "info",
      "area": "mta_sts",
      "message": "Without MTA-STS, a network attacker can strip TLS from mail sent to github.com. Serve https://mta-sts.github.com/.well-known/mta-sts.txt with the lines version: STSv1, mode: testing, mx: github-com.mail.protection.outlook.com, max_age: 604800, then publish this record. Switch to mode: enforce once TLS reports are clean.",
      "record": {
        "name": "_mta-sts.github.com",
        "type": "TXT",
        "value": "v=STSv1; id=202611261803"
      }
    },
    {
      "code": "add_tls_rpt",
      "severity": "info",
      "area": "tls_rpt",
      "message": "Publish a TLS-RPT record so sending servers report TLS failures when delivering to github.com.",
      "record": {
        "name": "_smtp._tls.github.com",
        "type": "TXT",
        "value": "v=TLSRPTv1; rua=mailto:<tls-reports@github.com>"
      }
    },
    {
      "code": "add_bimi",
      "severity": "info",
      "area": "bimi",
      "message": "DMARC is enforced, so github.com can show its logo next to messages with BIMI. Publish the logo as an SVG Tiny PS file over HTTPS; Gmail and Apple Mail also need a Verified Mark Certificate or Common Mark Certificate (a=).",
      "record": {
        "name": "default._bimi.github.com",
        "type": "TXT",
        "value": "v=BIMI1; l=<https://github.com/logo.svg>; a=<https://github.com/mark-certificate.pem>"
      }
    }
  ],
  "checked_at": "2026-11-26T18:03:10.448Z",
  "credits_used": 1,
  "cached": false
}

Use cases

Onboard senders

Check a customer's domain before they send through your platform, and show the records they must add.

Monitor your domains

Run every domain you own each day and alert when a grade drops, for example after an SPF include breaks the 10-lookup limit.

Qualify prospects

Find the domains with no DMARC or a p=none policy among a list of companies.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Queried live from the source at request time. Results are cached for 1 hours; send "fresh": true to query again.

Data sources

Frequently asked questions

How is the grade computed?
The score starts at 100 and each problem takes points off, for example 30 for a missing DMARC record, 25 for a missing SPF record and 15 for a DMARC policy that does not enforce. A domain without SPF and DMARC is capped at 39, without one of them at 59, and without an enforced DMARC policy at 89. A is 90 and up, B 75, C 60, D 40, F below 40.
Which DKIM selectors are checked?
Common selectors used by Google Workspace, Microsoft 365, Zoho, Proton, Fastmail, Mailjet, Mandrill and others, plus up to 10 you pass in selectors. A key published on a custom selector is only found when you pass it: no DKIM key found does not prove the domain does not sign.
What are the values in angle brackets?
Some fixes need values only the domain owner knows, such as the include of their mail provider or the address that should receive DMARC reports. They are written as placeholders in angle brackets: replace them before publishing.
Is mail actually sent?
No. Only DNS records and the MTA-STS policy file over HTTPS are read. Nothing is sent to the domain's mail servers.
What costs a credit?
1 credit per domain, cached 1 hour. An input that is not a valid domain is rejected and costs 0.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time