nextmail tools
Every command in this namespace, with its arguments, flags and examples.
Commands
The free tools on the Nextmail website: checks of the public mail records of any domain, which are its SPF record with every include followed, a DKIM key at a selector, its MX hosts, its DMARC policy, its BIMI logo and a deliverability report across all of them, a reader for the sign-in code in a message, and the price of every plan for a usage. They need no scope.
Every command here also takes the global flags, such as --json, --profile and --dry-run. See the global flags
nextmail tools check-dmarc
Check a domain's DMARC policy
Usage
nextmail tools check-dmarc <domain> [flags]
Reads the domain's DMARC record from public DNS, or the record of the organisational domain it inherits from, and says how strict it is and what is wrong with it, the DMARC checker on the Nextmail website. stage is missing, invalid, monitor for p=none, quarantine or reject, and issues lists the problems written to be shown to a person.
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Examples
nextmail tools check-dmarc acme.comnextmail tools check-dmarc acme.com --jsonAlso available in
nextmail tools check-bimi
Check a domain's BIMI logo
Usage
nextmail tools check-bimi <domain> [flags]
Reads the domain's BIMI record, fetches the logo it names and checks the DMARC policy beside it, since inboxes draw a logo only at p=quarantine or p=reject, the BIMI checker on the Nextmail website. status is present, partial when the record is there but something stops inboxes showing the logo, absent or invalid, and issues says why.
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Examples
nextmail tools check-bimi acme.comnextmail tools check-bimi acme.com --jsonAlso available in
- API
GET /tools/bimi- TypeScript
tools.checkBimi()- Python
tools.check_bimi()- Ruby
tools.check_bimi- PHP
tools->checkBimi- Go
Tools.CheckBimi- Java
tools().checkBimi- C#
Tools.CheckBimiAsync
nextmail tools check-deliverability
Check a domain's deliverability
Usage
nextmail tools check-deliverability <domain> [flags]
Checks the records a receiving mailbox reads before it trusts mail from the domain, the deliverability checker on the Nextmail website: MX, SPF, DKIM at the selectors its mail provider uses, DMARC and BIMI. Each check says pass, warn, fail or absent with a verdict and notes, and score weighs them into 0 to 100, graded A to F.
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Examples
nextmail tools check-deliverability acme.comnextmail tools check-deliverability acme.com --jsonAlso available in
nextmail tools check-spf
Check a domain's SPF record
Usage
nextmail tools check-spf <domain> [flags]
Reads the domain's SPF record from public DNS, as the SPF checker on the Nextmail website does, and follows every include and redirect it points to. It checks every term, counts the DNS lookups against the limit of 10 in lookups and the empty lookups against the limit of 2 in voidLookups, finds loops and includes with no record, names the sending services it recognises in senders and says in allQualifier what happens to mail from servers the record does not list. tree is the whole include tree, and findings lists everything found, errors first, each with a stable code (SPF_FINDING_CODES), a severity and a message written to be shown to a person.
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Examples
nextmail tools check-spf acme.comnextmail tools check-spf acme.com --jsonAlso available in
- API
GET /tools/spf- TypeScript
tools.checkSpf()- Python
tools.check_spf()- Ruby
tools.check_spf- PHP
tools->checkSpf- Go
Tools.CheckSpf- Java
tools().checkSpf- C#
Tools.CheckSpfAsync
nextmail tools check-dkim
Check a domain's DKIM key
Usage
nextmail tools check-dkim <domain> [flags]
Reads the DKIM key at selector._domainkey.domain, as the DKIM checker on the Nextmail website does, and checks it: every tag, the key type and the key length read from the key itself in keyBits, whether it is revoked or still in testing, and the hashes and services it allows. Without a selector it tries the selectors in common use, listed in probed, and returns every key it finds in keys, since a domain never lists its selectors. Each key has findings of its own with a stable code (DKIM_FINDING_CODES), and the report's findings are about the lookup as a whole.
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Flags
--selector <value>The selector: the part before
._domainkey, such asselector1. A full name such asselector1._domainkey.acme.comis read as its selector. Leave it out to try the selectors in common use.
Examples
nextmail tools check-dkim acme.comnextmail tools check-dkim acme.com --selector selector1nextmail tools check-dkim acme.com --jsonAlso available in
- API
GET /tools/dkim- TypeScript
tools.checkDkim()- Python
tools.check_dkim()- Ruby
tools.check_dkim- PHP
tools->checkDkim- Go
Tools.CheckDkim- Java
tools().checkDkim- C#
Tools.CheckDkimAsync
nextmail tools check-mx
Look up a domain's MX records
Usage
nextmail tools check-mx <domain> [flags]
Reads the domain's MX records in the order senders try them, as the MX lookup on the Nextmail website does, with each host's IPv4 and IPv6 addresses and their reverse DNS, and names the mail provider in provider when it recognises one. It reports a null MX in nullMx, a domain with no MX that falls back to its A record in implicit, hosts that are aliases or bare addresses, hosts that do not resolve and private addresses, each in findings with a stable code (MX_FINDING_CODES).
Arguments
<domain>RequiredThe domain to check, such as
acme.com. An email address or a URL is read as its domain, and any public domain works, not only the ones in this workspace.
Examples
nextmail tools check-mx acme.comnextmail tools check-mx acme.com --jsonAlso available in
- API
GET /tools/mx- TypeScript
tools.checkMx()- Python
tools.check_mx()- Ruby
tools.check_mx- PHP
tools->checkMx- Go
Tools.CheckMx- Java
tools().checkMx- C#
Tools.CheckMxAsync
nextmail tools read-verification-code
Read the sign-in code in a message
Usage
nextmail tools read-verification-code [flags]
Finds the sign-in or verification code in a message you pass in, with the reader that puts a code at the top of a message in Nextmail. Send the whole MIME source as raw, or the subject with html or text.
It answers only when it is sure: the message has to hold exactly one code worded as one, such as a verification code, a one-time code or a security code, in any of the common languages. Two different codes, or a number that could be an order, a booking, a meeting, a phone number or a promotion, give code: null.
It reads only what you send, so it cannot tell whether the sender is who it claims to be. The verificationCode on a message in your mailbox also requires the sender to pass authentication.
Flags
--raw <value>The whole message as MIME source, as it was received. Wins over the other fields when it is set.
--subject <value>Subject line, at most 998 characters.
--html <value>HTML body. Links are left out before the code is looked for.
--text <value>Plain text body, used when there is no
html.--data <json|@file|->The whole
bodyas JSON, inline, from a file with @path, or - for standard input. Flags override its keys.
Examples
nextmail tools read-verification-codenextmail tools read-verification-code --subject 'Your verification code' --html '<p>Your code is <b>396-696</b>. It expires in 10 minutes.</p>'Also available in
nextmail tools estimate-cost
Estimate what Nextmail costs for a usage
Usage
nextmail tools estimate-cost [flags]
For the usage you describe, prices every plan a workspace can choose for itself, as the cost calculator on the Nextmail website does: the plan itself, the extra sends, received emails, AI actions, domains, storage and API requests it would bill, the monthly total, and whether the plan fits at all. It prices the extras of each plan at that plan's own rates, which usageRates from billing.listPlans lists, and a plan priced in a contract is left out. A plan does not fit when the usage needs more people than its team access allows, or more sends, received emails, domains or storage than it includes on a plan that bills no extra for them. cheapest names the cheapest plan that fits.
Amounts are in US cents per month. With interval set to year, the plan price is the monthly equivalent of paying yearly.
Flags
--sends <n>Emails sent in a month. Defaults to 0.
--received <n>Emails received in a month. Defaults to 0.
--domains <n>Domains you send from. Defaults to 1.
--people <n>People who use the workspace. Defaults to 1.
--ai-actions <n>AI actions in a day, such as drafts, rewrites and summaries. Defaults to 0.
--storage <n>Storage the workspace keeps, in GB. Defaults to 0.
--api-requests <n>API and MCP requests in a month, priced per 1,000,000 at the rate of each plan. Defaults to 0.
--interval <value>How you pay:
monthoryear. Defaults tomonth.
Examples
nextmail tools estimate-costnextmail tools estimate-cost --sends 25000 --received 40000 --domains 2nextmail tools estimate-cost --jsonAlso available in
nextmail tools check-address
Check an email address
Usage
nextmail tools check-address <email> [flags]
Says whether an address is worth sending to, the email checker on the Nextmail website: result is valid, risky, invalid or unknown, and reasons says why. It checks the syntax, whether the domain takes mail at all, whether it is a throwaway domain or a shared address such as info@, and offers a correction in suggestion for a likely typo such as gmial.com. Run it on a sign-up form before the first message, or over a list before a broadcast.
With the emails:read scope, workspace also says what this workspace knows: whether it suppressed the address and when it last delivered to it or saw it bounce. It never shows another workspace's history, and without the scope it is null.
deep also asks whether the mailbox itself exists, in checks.mailbox. Every plan includes some deep checks each calendar month, and billing.get says how many are left in usage.addressChecks. Past those, each address is billed through pay as you go. A deep check needs the emails:send scope. Without it the check is free and checks.mailbox is null.
Arguments
<email>RequiredThe address to check, such as
[email protected].
Flags
--deepAlso ask whether the mailbox exists. Uses the deep checks the plan includes this month, then pay as you go. Defaults to false.
Defaultfalse
Examples
nextmail tools check-address [email protected]nextmail tools check-address [email protected] --jsonAlso available in
nextmail tools check-addresses
Check several email addresses
Usage
nextmail tools check-addresses --emails <a,b> [flags] nextmail tools check-addresses --data <json|@file|-> [flags]
Checks up to 100 addresses in one call, each as checkAddress does, and resolves them in the order they were sent. Use it to clean a list before importing it or sending a broadcast to it.
deep applies to every address and counts each one that reaches the mailbox check: first against the deep checks the plan includes this month, then through pay as you go. It needs the emails:send scope.
Flags
--emails <a,b>RepeatableThe addresses to check, from 1 to 100. Required, here or in
--data.--deepAlso ask whether each mailbox exists. Uses the deep checks the plan includes this month, then pay as you go. Defaults to false.
Defaultfalse--data <json|@file|->The whole
bodyas JSON, inline, from a file with @path, or - for standard input. Flags override its keys.
Examples
nextmail tools check-addresses --emails [email protected],[email protected]nextmail tools check-addresses --data @tools.json