Business email validation: require work emails without losing paying users
Blocking Gmail is one line of code. Knowing what it costs you is the hard part, because some of the people on free mailboxes are the ones who pay.
Business email validation means classifying each signup address as a work mailbox or a free one before you create the account. Sortance returns that class as email_type: business, free, role, relay, disposable or unknown. You gate on it with a policy rule, and you replay the rule over your recent signups before it turns anyone away.
The cheapest way to read it is the free domain check:
const r = await fetch("https://api.sortance.com/v1/check", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SORTANCE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ email }),
}).then((r) => r.json())
if (r.email_type === "free") {
// ask for a work address; don't fail the form yet
}/v1/check costs nothing and has no quota. It tells you what kind of address this is. It does not tell you whether the person is real, which is what /v1/verify and Decide are for.
How does business email validation decide what counts?
An address is business when its domain’s mail is hosted on Google Workspace, Microsoft 365 or the organisation’s own servers. We read that from the MX records, not from a list of company names. free is the consumer class: a list of consumer domains plus consumer MX fingerprints, so a smaller provider that is not on the list still lands there if its mail runs on a platform we recognise.
When more than one type fits, the first in this order wins: disposable, relay, role, free, business, unknown. So info@acme.com is role, not business. That ordering is the thing most homegrown “work email only” checks get wrong.
| email_type | Example | What it means | A work-email-only policy usually |
|---|---|---|---|
business | mia@acme.com | Google Workspace, Microsoft 365 or the domain's own mail server | Allow |
free | jane@gmail.com | A consumer provider: Gmail, Outlook, Yahoo, Apple and the rest | Review, or ask for a work address |
role | info@acme.com | A shared inbox, on any domain. info@gmail.com is role too | Review |
relay | an alias on duck.com | A forwarding alias. The inbox behind it could be anything | Challenge with an email code |
disposable | test@mailinator.com | A throwaway inbox | Deny |
unknown | a domain whose DNS lookup failed | Nothing to classify, or the lookup could not run | Leave it to the recommendation |
More on the shared-inbox case in role-based email addresses, and on throwaways in blocking disposable emails.
Should you block Gmail at signup?
Sometimes. It depends on who actually pays you, and the address alone cannot tell you that.
A lot of free-mail signups on a B2B product are low intent: students, competitors having a look, people who will never come back. But the same bucket holds founders who have not set up Workspace yet, contractors who use one inbox for every client, and the engineer who wants to try your API before dragging IT into it. Block all of them and you lose the second group silently. Nobody emails you to say they went elsewhere.
So treat “block Gmail” as a hypothesis about your funnel, and test it like one.
How do you write the rule?
You write it in English or as JSON, and it runs inside /v1/decide. The compiler turns “don’t allow gmail, yahoo social emails” into a deny rule on email_type eq "free". Here it is with the action softened to review:
{ "id": "r_type_free", "label": "Free email providers",
"when": { "field": "verification.email_type", "op": "eq", "value": "free" },
"then": { "action": "review" }, "on_unknown": "skip" }Two choices matter more than the wording.
eq "free"orneq "business". “Block all non business emails” compiles to the second. It also catches role addresses, relay aliases andunknown, andunknownincludes a real company domain on a day its DNS lookup failed. If you mean “no Gmail”, writeeq "free".- The action. Policies support
allow,allow_with_flow,review,challengeanddeny. For free mail,reviewor a flow that asks for a work address keeps the person.denyloses them. Start soft and harden it once you have numbers.
The first matching rule wins and the default action is allow. On the dashboard the same rule is one switch on the Email types card. Details are in policies.
How do you see what the rule would have cost?
Replay it over the signups you have already decided. Replay runs a candidate rule set against your stored decisions, the last 500 by default and up to 2,000, and saves nothing.
curl -X POST https://api.sortance.com/v1/policies/replay \
-H "Authorization: Bearer $SORTANCE_KEY" \
-H "Content-Type: application/json" \
-d '{"candidate": {"default_action": "allow", "rules": [ /* r_type_free */ ]},
"window": {"last_n": 500}}'You get the decision mix under the candidate, the transitions it would cause (allow_to_review, allow_to_deny), and up to 20 sample rows with the address masked to •••@domain. That answers “how many”. To answer “how much money”, you need outcomes:
- Route signups through
/v1/decidewith a policy that allows everyone. Nothing changes for users; every decision is stored. - Send
subscribedevents to/v1/eventswhen people start paying, with thetrace_idfrom the decision. - Read
GET /v1/segments. It reports paid conversion bymailbox_type, so consumer and corporate signups sit side by side with a 90% interval. A segment needs 30 exposures before it gets a rate. - Run the rule in shadow mode as an experiment. Every signup records what the rule would have done while your current policy keeps answering.
The replay, events, segments and experiment endpoints are live in the API. The dashboard screens for experiments are not routed yet, so for now you read the reports over the API. Payment events from a Stripe connection are built but not usable in production yet, so send subscribed yourself. See events.
What a work-email gate will not do
- Prove employment. A
businessaddress means the domain has its own mail. Registering a domain and setting up Workspace takes an afternoon. - Prove the mailbox exists. No mailbox provider is connected in production today, so
mailbox_checkedis always false. A made-up name at a real company domain can readsendunless the AI check or the placeholder pattern flags it. Send a confirmation code before you activate the account. - Stop bots on its own. Bots need throwaway inboxes, and we close that door. Pair it with Turnstile or hCaptcha for the rest. More in fake signups and free trial abuse.
A hard deny only ever comes from a rule you wrote. If you want the verification side in more detail, read how the risk score works and the PLG page for the wider signup picture.
Questions people ask
How do I only allow business email addresses at signup?
Classify the address before you create the account, then act on the class. Sortance returns email_type on every /v1/check and /v1/verify call. A policy rule such as verification.email_type eq "free" with the action review or deny then applies it inside /v1/decide. Replay the rule over your recent signups before you activate it, so you can see who it would have turned away.
Should I block Gmail addresses on a B2B signup form?
Only if your own numbers say free-mail signups rarely pay. Founders before they set up Google Workspace, consultants and people trying a tool before involving IT all sign up with Gmail. Send your subscribed events to Sortance and compare paid conversion for consumer and corporate mailboxes first. If the gap is small, ask for a work address instead of refusing the signup.
Does a business email prove someone works at that company?
No. A business email_type means the domain runs its own mail, Google Workspace or Microsoft 365. Anyone can register a domain and set up Workspace in an afternoon. It also does not prove the mailbox exists: Sortance has no mailbox provider connected today, so a made-up name at a real company domain can still read send. An emailed confirmation code closes that gap.
Is info@company.com a business email?
Not in Sortance's classification. Shared inboxes like info@, sales@ and support@ are typed role on any domain, because role sits above free and business in the precedence order. That matters when you write the rule. A rule on email_type neq "business" catches role addresses, relay aliases and unknowns too, while a rule on eq "free" catches only consumer mailboxes.
Can I block free email domains without an API call?
You can keep your own list of consumer domains, but it goes stale and misses providers you have not heard of. Sortance also recognises consumer mail by its MX hosts, not only by domain name. The /v1/check endpoint is free and has no quota, so calling it from your signup handler costs nothing beyond the request time. Call it from your server, because the request carries your secret key.