Email Security Checker: SPF, DKIM, DMARC, MX avatar

Email Security Checker: SPF, DKIM, DMARC, MX

Pricing

$5.00 / 1,000 domains audited

Go to Apify Store
Email Security Checker: SPF, DKIM, DMARC, MX

Email Security Checker: SPF, DKIM, DMARC, MX

Audits the email setup of a list of domains from public DNS: SPF, DKIM, DMARC, MX, MTA-STS, TLS-RPT and BIMI records, the mail provider, a protection level and a plain-language list of problems. One row per domain.

Pricing

$5.00 / 1,000 domains audited

Rating

0.0

(0)

Developer

Absolute Truth

Absolute Truth

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 hours ago

Last modified

Features

Limited permissions

Share

Check how well a list of domains is protected against spoofed email. For every domain you get its SPF, DKIM and DMARC setup, the service that handles its mail, a protection level (strong, partial or none) and a short list of what is wrong, written in plain words.

This Actor only reads public DNS records. It never sends email, never contacts a mail server and never opens a connection to the domain. That makes it fast, and safe to run on domains you do not own, such as a prospect list or your suppliers.

What people use it for

  • Audit your own domains before a deliverability problem: find the missing DMARC record, the SPF record that needs too many lookups, the domain with two SPF records.
  • Qualify leads: agencies and email-security or deliverability vendors find the companies whose DMARC policy is none or missing.
  • See who a company uses for email: mail_provider (Google Workspace, Microsoft 365, Proofpoint and others) and spf_includes (the sending and marketing services listed in SPF).
  • Check suppliers and partners for domains that anyone can send mail as.

What it checks

  • MX: the mail servers, most preferred first, whether the domain accepts mail at all, and the provider behind them.
  • SPF: the record, what it says about senders that are not listed (-all, ~all, ?all, +all), how many DNS lookups it needs including its includes (the limit is 10), and the services it includes.
  • DMARC: the record, the policy that applies to the domain (none, quarantine, reject), the share of mail it covers, and whether reports go anywhere. For a subdomain without its own record, the parent domain's record is used, as receivers do.
  • DKIM: looks for keys under 47 selector names used by the large mail providers and sending services, plus any names you add. For each key found: type, size in bits, and whether it is revoked or in test mode. A domain that gives the same answer for every selector name is recognised (dkim_wildcard), so a blanket record is not mistaken for 47 keys.
  • MTA-STS, TLS-RPT and BIMI: whether the records are published.

Input

FieldTypeDefaultNotes
domainslist of stringsrequiredUp to 50,000 per run. Email addresses and web addresses are accepted: the domain is taken from them.
checkDkimbooleantrueTurn off to check SPF, DMARC and MX only.
dkimSelectorslist of strings[]Extra selector names to try, up to 20.
{ "domains": ["github.com", "wikipedia.org", "example.com"] }

Output

One row per domain in the dataset, plus a SUMMARY record with counts by status.

{
"input": "acme-example.com",
"domain": "acme-example.com",
"status": "ok",
"protection": "partial",
"issue_count": 2,
"issues": [
"DMARC policy is 'none': mail that fails the checks is reported but still delivered.",
"SPF needs 12 DNS lookups. The limit is 10, and receivers may treat the record as broken."
],
"domain_exists": true,
"accepts_mail": true,
"mx_found": true,
"null_mx": false,
"mx_hosts": ["aspmx.l.google.com", "alt1.aspmx.l.google.com"],
"mail_provider": "Google Workspace",
"spf_found": true,
"spf_record": "v=spf1 include:_spf.google.com include:servers.mcsv.net include:sendgrid.net ~all",
"spf_record_count": 1,
"spf_all": "softfail",
"spf_dns_lookups": 12,
"spf_includes": ["_spf.google.com", "servers.mcsv.net", "sendgrid.net"],
"dmarc_found": true,
"dmarc_record": "v=DMARC1; p=none; rua=mailto:dmarc@acme-example.com",
"dmarc_source_domain": "acme-example.com",
"dmarc_policy": "none",
"dmarc_subdomain_policy": null,
"dmarc_pct": 100,
"dmarc_reports": true,
"dmarc_report_addresses": ["dmarc@acme-example.com"],
"dkim_found": true,
"dkim_selectors": ["google"],
"dkim_keys": [{ "selector": "google", "key_type": "rsa", "key_bits": 2048, "revoked": false, "testing": false }],
"dkim_selectors_checked": 47,
"dkim_wildcard": false,
"mta_sts_found": false,
"mta_sts_record": null,
"tls_rpt_found": false,
"tls_rpt_record": null,
"bimi_found": false,
"bimi_record": null
}

Protection level

LevelMeaning
strongDMARC tells receivers to quarantine or reject all mail that fails the checks.
partialSPF or DMARC is published, but failing mail is still delivered (policy none, a policy that covers only part of the mail, or SPF without DMARC).
noneNothing published stops other people from sending mail as this domain.

Status

StatusMeaningCharged
okThe domain was checked in full.Yes
domain_not_foundThe domain does not exist in DNS.No
invalid_domainThe input is not a domain name.No
lookup_failedA DNS lookup failed on our side. Run it again.No

Price

You pay per domain checked in full: the domain-audited event. Domains that do not exist, input that is not a domain, duplicates and lookups that failed are returned without charge. Set a maximum charge for the run if you want a hard limit; the Actor stops when it is reached.

Limits, said plainly

  • DKIM cannot be listed from DNS. A domain may use any selector name. A key found is certain; no key found under the names tried is not proof that the domain has no DKIM. If you know the selector, add it under dkimSelectors.
  • No mailbox or server test. The Actor does not check whether the mail servers answer, which TLS versions they offer or whether an address exists.
  • The MTA-STS policy file is not fetched. Only the DNS record that announces it is read.
  • SPF macros are not expanded. A record that uses them is counted as written.
  • Records are read at the time of the run. DNS changes can take hours to reach every resolver.

Tips

  • Start with protection and issue_count to sort a long list, then read issues for the domains that matter.
  • For lead lists, filter on dmarc_policy (none or empty) and mail_provider.
  • For your own domains, run it after every change to SPF or DMARC: the lookup count changes whenever a provider you include changes its own record.

What the Actor tells its developer

At the end of a run the Actor sends its developer one short, signed usage summary: the Actor's name, how many results the run was charged for, the run's ID and whether the account is on a paid plan. Your input and your results are never sent anywhere.