SFOLN

Demos / Email Validator – MX & Disposable Check

Stop bad e-mail addresses at signup and before a campaign

A SaaS company collects addresses in two places: the signup form and files imported into the CRM after webinars and trade shows. Mistyped domains mean customers who never get their confirmation link, throw-away mailboxes inflate trial numbers, and an import with dead domains sends the bounce rate up and the sender reputation down. Here the same check runs in both places: the form answers before the confirmation e-mail goes out, and every import gets a report before anyone presses send. The people and company addresses shown are invented.

Workflow

Where the API sits

  1. Trigger

    Form submitted or file imported

    A visitor submits the signup form, or a marketer uploads a contact file to the CRM.

  2. API call

    Validate the addresses

    One call with emails: syntax, the domain's mail servers, disposable, free-mail and role lists, and a typo suggestion. No mail is sent.

    sfoln/email-validator

  3. Your logic

    Decide per verdict

    quality: bad is blocked or suppressed, a typoSuggestion is offered to the user, role goes to its own segment, status: error is retried.

  4. Result

    Clean signup, clean list

    The form shows the right message; the import report lists what will be sent, what was removed and why.

The signup backend calls the API synchronously with one address when the form is submitted. The import check is a webhook from the CRM or a Make, Zapier or n8n scenario that sends the whole file in one run, up to 100,000 addresses. An agent can use the same check over MCP before it e-mails someone.

Result

The signup form and the import report

Typo caught

SignupCreate your accountapp.example
Full nameDayo Okafor
CompanyOkafor Studio
Work e-maild.okafor@gmial.comDid you mean d.okafor@gmail.com?

What the API returned

verdict
disposable
typoSuggestion
d.okafor@gmail.com
reason
Disposable (throw-away) e-mail domain
Use d.okafor@gmail.comKeep what I typed

Disposable rejected

SignupCreate your accountapp.example
Full nameP. Hunter
Company 
Work e-mailpromo.hunter22@mailinator.comPlease use a permanent address. Throw-away mailboxes cannot be used to sign up.

What the API returned

verdict
disposable
quality
bad
reason
Disposable (throw-away) e-mail domain
Create accountBlocked

Accepted

SignupCreate your accountapp.example
Full nameElena Marchetti
CompanyCorvane Systems
Work e-mailelena.marchetti@corvane-systems.comLooks good. We sent a confirmation link.

What the API returned

verdict
ok
quality
good
mailProvider
microsoft
email
elena.marchetti@corvane-systems.com · normalized from Elena.Marchetti@corvane-systems.com
Create accountConfirmation sent

The form sends one address per call. The three states above are three records of the sample run below, shown as the form would present them. All people and company addresses are invented sample data.

CRMImport check · webinar-registrations.csvbefore the Thursday campaign

Contacts in the file

12

Cleared to send

5

42% of the file

Suppressed

4

3 would have bounced

Needs a decision

3

1 corrected, 1 shared mailbox, 1 to retry

By verdict

ok5
role1
disposable2
domain_not_found1
no_mail_server1
invalid_syntax1
unknown1

Bounce risk avoided

Certain bounces removed
3 of 12 (25%) · deliverable: no
Throw-away addresses removed
1
Typo corrected instead of lost
d.okafor@gmial.com → d.okafor@gmail.com
Not checked, not charged
1 · DNS failed, retried on the next run

Sending to the whole file would have produced a hard-bounce rate of at least 25% on this import. The check does not connect to mail servers, so an address that passes can still bounce.

webinar-registrations.csv · 12 contacts
AddressVerdictQualityReasonMail providerAction
Elena.Marchetti@corvane-systems.comokgoodPassed the local checksmicrosoftSend
h.nakagawa@gmail.comokgoodPassed the local checksgoogle free mailSend
j.whitlock@brackenfold.co.ukokgoodPassed the local checksgoogleSend
t.eklund@fjordline-analytics.comokgoodPassed the local checksotherSend
amara.diallo@outlook.comokgoodPassed the local checksmicrosoft free mailSend
info@tamsin-build.comroleriskyRole account, not a persongoogleShared-mailbox segment
d.okafor@gmial.comdisposablebadDisposable domain
Suggested: d.okafor@gmail.com
—Corrected, recheck
promo.hunter22@mailinator.comdisposablebadDisposable domainotherSuppressed
sven.aalto@nordhaven-consultng.comdomain_not_foundbadDomain does not exist—Suppressed
c.dumont@atelier-vosges.frno_mail_serverbadNull MX: accepts no mailnoneSuppressed
r.petrov@@baltic-freight.cominvalid_syntaxbadTwo @ signs—Suppressed
m.farrow@oldmill-surveyors.co.ukunknownriskyDNS lookup failed—Retry next run
11 of 12 addresses received a verdict and were charged; the one whose domain could not be looked up was free.

Highlighted values are read from the API response. The data is a sample in the API's real output shape; names and figures are illustrative.

Call

The call behind it

One request with this input produces the 12 records the screen above is drawn from. Prices are the ones on the API page; records that fail or come back empty are not charged.

Input · POST /v2/actors/sfoln~email-validator/run-sync-get-dataset-items
{
  "emails": [
    "Elena.Marchetti@corvane-systems.com",
    "h.nakagawa@gmail.com",
    "j.whitlock@brackenfold.co.uk",
    "t.eklund@fjordline-analytics.com",
    "amara.diallo@outlook.com",
    "info@tamsin-build.com",
    "d.okafor@gmial.com",
    "promo.hunter22@mailinator.com",
    "sven.aalto@nordhaven-consultng.com",
    "c.dumont@atelier-vosges.fr",
    "r.petrov@@baltic-freight.com",
    "m.farrow@oldmill-surveyors.co.uk"
  ],
  "checkSpfDmarc": false
}
Response · record 1 of 12 · sample data
{
  "input": "Elena.Marchetti@corvane-systems.com",
  "email": "elena.marchetti@corvane-systems.com",
  "verdict": "ok",
  "quality": "good",
  "reason": "Passed the local checks; only an SMTP-level check can confirm that the mailbox exists",
  "deliverable": "unknown",
  "domain": "corvane-systems.com",
  "canonicalEmail": "elena.marchetti@corvane-systems.com",
  "syntaxValid": true,
  "syntaxError": null,
  "domainExists": true,
  "mx": [
    "corvane-systems-com.mail.protection.outlook.com"
  ],
  "nullMx": false,
  "hasMailServer": true,
  "mailProvider": "microsoft",
  "disposable": false,
  "freeProvider": false,
  "role": false,
  "typoSuggestion": null,
  "domainSpf": null,
  "domainDmarc": null,
  "spfDmarcLookup": null,
  "status": "ok",
  "charged": true,
  "chargedEvent": "email",
  "source": "dns",
  "fetchedAt": "2026-11-10T09:12:40.000Z"
}
Charged eventCountPriceTotal
Checked email
email
11$0.0004$0.0044
This run$0.0044

Fields

Which output fields do the work

Output fieldUsed for
verdict quality reasonThe decision: bad is rejected at the form and suppressed in the CRM; reason is the text shown to the marketer.
typoSuggestionThe "Did you mean" prompt at signup and the corrected address in an import.
disposable role freeProviderThrow-away mailboxes are blocked; shared mailboxes get their own segment; free-mail addresses can be excluded from B2B scoring.
deliverable domainExists hasMailServer nullMxAddresses with deliverable: no are certain bounces and never reach the sending tool.
email canonicalEmailThe normalized address is what is stored; canonicalEmail finds duplicates such as Gmail addresses that differ only by dots.
mailProvider mxShown in the report; useful when a campaign is throttled per mailbox provider.
status charged errorAn address whose domain could not be looked up comes back as error, is not charged and is queued for the next run.

All output fields are listed on the API page.

Build

Build it

The signup handler validates one address before it creates the account. The import check sends the whole file in emails and applies the same function to each record.

Node.js · signup handler
async function validate(emails) {
  const res = await fetch('https://api.apify.com/v2/actors/sfoln~email-validator/run-sync-get-dataset-items', {
    method: 'POST',
    headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ emails, checkSpfDmarc: false }),
  });
  return res.json();
}

function decide(r) {
  if (r.status !== 'ok') return { action: 'retry' };                      // DNS failed: not charged
  if (r.typoSuggestion) return { action: 'suggest', email: r.typoSuggestion };
  if (r.quality === 'bad') return { action: 'reject', message: r.reason };
  if (r.verdict === 'role') return { action: 'segment', segment: 'shared-mailbox' };
  return { action: 'accept', email: r.email };
}

app.post('/signup', async (req, res) => {
  const [record] = await validate([req.body.email]);
  const d = decide(record);
  if (d.action === 'suggest') return res.status(422).json({ field: 'email', didYouMean: d.email });
  if (d.action === 'reject') return res.status(422).json({ field: 'email', message: 'Please use a permanent, working address.' });
  await accounts.create({ ...req.body, email: record.email ?? req.body.email });
  res.status(201).end();
});
  • The check never connects to a mail server, so it does not claim that a mailbox exists: deliverable is no or unknown, never yes.
  • Let the signup proceed when the call fails or times out; a validation outage should not block registrations.
  • Turn checkSpfDmarc on when you also want each domain's SPF record and DMARC policy, for example to qualify B2B leads.

Authentication, the MCP endpoint and the asynchronous variant are on the API page.

More

Other things teams build with it

  • Lead forms and newsletter signups that block throw-away addresses
  • A nightly clean of new CRM contacts before they enter any sequence
  • De-duplicating a contact base with canonicalEmail
  • A sales agent over MCP that checks an address before drafting an outreach e-mail
  • A first pass that removes dead domains before a paid mailbox-level verification

All demos · Email Validator – MX & Disposable Check: prices, input and output · /actors/email-validator.json carries this demo as demo