<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Verifly Team</title>
    <description>The latest articles on DEV Community by Verifly Team (@verifly_team).</description>
    <link>https://dev.to/verifly_team</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274462%2F47d340bd-731f-4766-93a7-207c41823b0f.png</url>
      <title>DEV Community: Verifly Team</title>
      <link>https://dev.to/verifly_team</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/verifly_team"/>
    <language>en</language>
    <item>
      <title>Adding Real-Time Email Verification to AI Agents with MCP</title>
      <dc:creator>Verifly Team</dc:creator>
      <pubDate>Tue, 01 Dec 2026 21:28:54 +0000</pubDate>
      <link>https://dev.to/verifly_team/adding-real-time-email-verification-to-ai-agents-with-mcp-2gl9</link>
      <guid>https://dev.to/verifly_team/adding-real-time-email-verification-to-ai-agents-with-mcp-2gl9</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I work on the Verifly team (&lt;a href="https://verifly.email" rel="noopener noreferrer"&gt;verifly.email&lt;/a&gt;). New accounts start with 100 free credits, pricing is pay-as-you-go, and risky or unknown results do not use a credit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An AI agent that qualifies leads or onboards users often treats the first email it sees as a usable contact. The address may have come from a form, a CRM export, or a line of text the model extracted from a page. Typos, shut-down domains, and throwaway inboxes are common in those sources. If the agent stores the address or sends to it, a hard bounce can hurt the sending domain, and a disposable inbox can vanish before anyone follows up.&lt;/p&gt;

&lt;p&gt;A regex only tests the shape of the string. An MX lookup only tests whether the domain publishes mail exchangers. Neither confirms that the mailbox exists, and neither flags a disposable domain that accepts mail today and disappears tomorrow. Catch-all domains make this worse: the server accepts every local part, so a mailbox probe can look successful even when no person will read the message. Verify the address in the same turn the agent first decides to trust it, and branch on a structured verdict instead of a single boolean.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect the hosted MCP server
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://verifly.email" rel="noopener noreferrer"&gt;Verifly&lt;/a&gt; publishes a hosted MCP server at &lt;code&gt;https://verifly.email/mcp&lt;/code&gt; over Streamable HTTP. Point an MCP client at that URL and send your API key as a bearer token. No local install is required. In a Cursor or similar &lt;code&gt;mcpServers&lt;/code&gt; config (this snippet matches the live &lt;code&gt;/mcp&lt;/code&gt; page):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"verifly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://verifly.email/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer vf_your_api_key"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a local stdio process, the same site documents &lt;code&gt;npx -y verifly-mcp-server&lt;/code&gt; with &lt;code&gt;VERIFLY_API_KEY&lt;/code&gt; in the process environment. Keep the key out of prompts, logs, and tool arguments.&lt;/p&gt;

&lt;p&gt;New accounts start with 100 free credits and no card. An agent can also mint a key through the &lt;code&gt;register_account&lt;/code&gt; tool, which returns 100 usable trial credits with no inbox confirmation. Save the &lt;code&gt;vf_&lt;/code&gt; key when it is shown; it is not displayed again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Call verify_email when you first trust an address
&lt;/h2&gt;

&lt;p&gt;The tool for a single address is &lt;code&gt;verify_email&lt;/code&gt;. It takes one required argument, &lt;code&gt;email&lt;/code&gt;, and maps to &lt;code&gt;GET /api/v1/verify?email=&lt;/code&gt;. Call it the moment the agent is about to store, send to, or qualify an address.&lt;/p&gt;

&lt;p&gt;A hosted &lt;code&gt;tools/call&lt;/code&gt; looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"jsonrpc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tools/call"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"params"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"verify_email"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"lead@example.com"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result is a JSON object with &lt;code&gt;email&lt;/code&gt; (normalized), &lt;code&gt;is_valid&lt;/code&gt;, &lt;code&gt;result&lt;/code&gt;, &lt;code&gt;reason&lt;/code&gt;, &lt;code&gt;recommendation&lt;/code&gt;, a &lt;code&gt;details&lt;/code&gt; block of boolean flags, &lt;code&gt;credits_charged&lt;/code&gt;, and remaining credits. The &lt;code&gt;result&lt;/code&gt; enum is &lt;code&gt;deliverable&lt;/code&gt;, &lt;code&gt;undeliverable&lt;/code&gt;, &lt;code&gt;risky&lt;/code&gt;, or &lt;code&gt;unknown&lt;/code&gt;. The &lt;code&gt;recommendation&lt;/code&gt; enum is &lt;code&gt;safe_to_send&lt;/code&gt;, &lt;code&gt;risky&lt;/code&gt;, or &lt;code&gt;do_not_send&lt;/code&gt;. The flags you will branch on most often are &lt;code&gt;details.is_disposable&lt;/code&gt;, &lt;code&gt;details.is_catch_all&lt;/code&gt;, and &lt;code&gt;details.is_role_account&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Do not treat &lt;code&gt;is_valid&lt;/code&gt; alone as the decision. A disposable inbox and a catch-all domain can both look "valid" in a narrow sense. Use &lt;code&gt;result&lt;/code&gt; plus the flags.&lt;/p&gt;

&lt;h2&gt;
  
  
  Instruct the agent to branch on five buckets
&lt;/h2&gt;

&lt;p&gt;Give the agent an explicit policy, not a request to "check if the email is good."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Valid (deliverable, and not disposable).&lt;/strong&gt; &lt;code&gt;result&lt;/code&gt; is &lt;code&gt;deliverable&lt;/code&gt; and &lt;code&gt;details.is_disposable&lt;/code&gt; is false. This is the only bucket that should pass a "confirmed" gate. A role account such as &lt;code&gt;info@&lt;/code&gt; can still be deliverable; if the workflow needs a person, check &lt;code&gt;details.is_role_account&lt;/code&gt; and ask for a personal address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invalid (undeliverable).&lt;/strong&gt; &lt;code&gt;result&lt;/code&gt; is &lt;code&gt;undeliverable&lt;/code&gt;. Reject the signup or drop the lead, and ask the user to correct the address. &lt;code&gt;recommendation&lt;/code&gt; is &lt;code&gt;do_not_send&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disposable.&lt;/strong&gt; &lt;code&gt;details.is_disposable&lt;/code&gt; is true, even if the mailbox would accept mail right now. For signup and lead qualification, reject it and ask for a durable address. For a campaign list, strip these before you send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Catch-all.&lt;/strong&gt; &lt;code&gt;details.is_catch_all&lt;/code&gt; is true, or &lt;code&gt;result&lt;/code&gt; is &lt;code&gt;risky&lt;/code&gt; because the individual mailbox could not be confirmed. This is not invalid and not confirmed valid. Do not auto-qualify the lead. Allow the signup only if you have another reason to trust the user, or hold the address for review before you send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unknown.&lt;/strong&gt; &lt;code&gt;result&lt;/code&gt; is &lt;code&gt;unknown&lt;/code&gt;: the check could not finish cleanly (timeout, greylisting, or a provider that will not disclose mailbox existence). Do not treat this as a bounce and do not treat it as confirmed. Retry once, or ask the user to confirm the address.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Paste this into the agent prompt: "Before you store or email an address, call verify_email. Accept only deliverable addresses that are not disposable. Reject undeliverable and disposable. Quarantine catch-all and risky. Retry or ask for confirmation on unknown. Do not decide from is_valid alone."&lt;/p&gt;

&lt;p&gt;For a small list, the catalog also has a synchronous batch tool (up to 100 addresses). For a large CSV, use the async bulk tools (&lt;code&gt;submit_bulk&lt;/code&gt;, then poll the job).&lt;/p&gt;

&lt;h2&gt;
  
  
  Credits, honestly
&lt;/h2&gt;

&lt;p&gt;Only definitive outcomes use a credit: &lt;code&gt;deliverable&lt;/code&gt; and &lt;code&gt;undeliverable&lt;/code&gt;. Risky and unknown results are free, so it is safe to retry an unknown later instead of inventing a verdict. Check &lt;code&gt;credits_charged&lt;/code&gt; and the returned balance after each call. Pricing is pay-as-you-go; credits do not expire. The 100-credit trial is enough to wire the branch logic above.&lt;/p&gt;

&lt;p&gt;A verification result is a decision aid, not a guarantee of inbox placement. Passing SPF, DKIM, or DMARC on the messages you send does not replace this check.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>api</category>
      <category>email</category>
    </item>
    <item>
      <title>Handling Catch-All and Disposable Emails in Signup Forms and AI Workflows</title>
      <dc:creator>Verifly Team</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:52:19 +0000</pubDate>
      <link>https://dev.to/verifly_team/handling-catch-all-and-disposable-emails-in-signup-forms-and-ai-workflows-35i8</link>
      <guid>https://dev.to/verifly_team/handling-catch-all-and-disposable-emails-in-signup-forms-and-ai-workflows-35i8</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I work on the Verifly team (&lt;a href="https://verifly.email" rel="noopener noreferrer"&gt;verifly.email&lt;/a&gt;). New accounts start with 100 free credits, pricing is pay-as-you-go, and risky or unknown results do not use a credit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A signup form that only checks "does this look like an email?" will accept addresses that cannot be confirmed, and addresses that will disappear in a day. The same gap shows up in AI workflows that extract an email from a document and then treat it as a usable contact. Two patterns cause most of the damage: catch-all domains and disposable (throwaway) inboxes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why regex plus MX is not enough
&lt;/h2&gt;

&lt;p&gt;A regular expression can tell you the string has a local part, an &lt;code&gt;@&lt;/code&gt;, and a domain. That catches typos such as a missing &lt;code&gt;@&lt;/code&gt;. It cannot tell you whether the mailbox exists.&lt;/p&gt;

&lt;p&gt;An MX lookup goes one step further: it asks whether the domain publishes mail exchangers. If there is no MX (and no A/AAAA fallback), you can reject the address. If MX is present, you only know that &lt;em&gt;someone&lt;/em&gt; at that domain can receive mail, not whether &lt;code&gt;jordan@example.com&lt;/code&gt; is a real mailbox.&lt;/p&gt;

&lt;p&gt;That gap is exactly where catch-all and disposable addresses hide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catch-all domains&lt;/strong&gt; accept every local part. The mail server will say yes to &lt;code&gt;jordan@example.com&lt;/code&gt; and to &lt;code&gt;this-was-never-created-xyz@example.com&lt;/code&gt;. A &lt;code&gt;RCPT TO&lt;/code&gt; probe therefore looks successful even when the individual mailbox was never created. A later send may sit in a dump, bounce later, or never be seen by a person.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disposable domains&lt;/strong&gt; (temporary inboxes, often used to bypass signup forms) usually have valid syntax and valid MX. Many accept mail for a few hours or days and then vanish. A form that checks format and MX treats them as fine at signup, then you lose the user or spend sending capacity on a dead address.&lt;/p&gt;

&lt;p&gt;Timeouts and greylisting add a third failure mode: a check that does not finish is not proof that the address is bad. Treating a timeout as "invalid" will reject real users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Classify results; do not force a boolean
&lt;/h2&gt;

&lt;p&gt;In practice you want at least these buckets, plus a couple of flags:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Valid / deliverable.&lt;/strong&gt; Syntax, MX, and a mailbox check agree the address can receive mail. This is the only bucket that should pass a "confirmed" gate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Invalid / undeliverable.&lt;/strong&gt; The domain or mailbox cannot receive mail. Reject it at signup, and drop it from a list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disposable.&lt;/strong&gt; The domain is a known throwaway service. It may be deliverable right now. For signup forms, reject it and ask for a durable address. For campaign lists, strip these before you send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Catch-all.&lt;/strong&gt; The domain accepts all local parts, so the individual mailbox was not confirmed. This is not "invalid," and it is not "confirmed valid." Quarantine it: allow the signup only if you have another reason to trust the user, or hold the address for manual review before a send.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unknown.&lt;/strong&gt; The check could not finish cleanly (timeout, greylist, a provider that will not disclose mailbox existence). Do not auto-drop; retry or review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Role accounts such as &lt;code&gt;info@&lt;/code&gt; and &lt;code&gt;support@&lt;/code&gt; are a related flag: they may be deliverable and still be the wrong audience. Make that a policy, not an afterthought.&lt;/p&gt;

&lt;p&gt;A single &lt;code&gt;is_valid&lt;/code&gt; boolean is the wrong shape. A catch-all can look valid. A disposable can look valid. Branch on the verdict &lt;em&gt;and&lt;/em&gt; the flags.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short Python example
&lt;/h2&gt;

&lt;p&gt;This example calls &lt;a href="https://verifly.email" rel="noopener noreferrer"&gt;Verifly&lt;/a&gt;'s REST API with the standard &lt;code&gt;requests&lt;/code&gt; library. The same branching works with any verifier that returns a structured verdict plus disposable and catch-all flags. Keep the API key in an environment variable and run this on a server, not in the browser.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;GET https://verifly.email/api/v1/verify?email=&lt;/code&gt; returns JSON. Authentication is &lt;code&gt;Authorization: Bearer vf_...&lt;/code&gt;. Only &lt;code&gt;deliverable&lt;/code&gt; and &lt;code&gt;undeliverable&lt;/code&gt; outcomes use a credit; &lt;code&gt;risky&lt;/code&gt; and &lt;code&gt;unknown&lt;/code&gt; do not. See the &lt;a href="https://verifly.email/docs" rel="noopener noreferrer"&gt;API docs&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://verifly.email/api/v1"&lt;/span&gt;
&lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"VERIFLY_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;verify_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{API}/verify"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {KEY}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;classify_for_signup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;verify_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;details&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"details"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"is_disposable"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"reject_disposable"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"undeliverable"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"reject_invalid"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"is_catch_all"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"risky"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"quarantine_catchall"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"unknown"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"retry_or_review"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"deliverable"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"is_role_account"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"allow_with_role_policy"&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"accept"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"retry_or_review"&lt;/span&gt;

&lt;span class="n"&gt;decision&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;classify_for_signup&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"lead@example.com"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;decision&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At signup, map &lt;code&gt;reject_disposable&lt;/code&gt; and &lt;code&gt;reject_invalid&lt;/code&gt; to a form error, &lt;code&gt;quarantine_catchall&lt;/code&gt; and &lt;code&gt;retry_or_review&lt;/code&gt; to a hold or second confirmation step, and &lt;code&gt;accept&lt;/code&gt; to account creation. In a campaign cleaner, send disposable and undeliverable rows to a drop file, and catch-all or unknown rows to a review file, not your "safe to send" list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calling the same check from an AI agent
&lt;/h2&gt;

&lt;p&gt;If an agent extracts emails from text, do not trust the extracted string. Point an MCP-capable client at Verifly's hosted server, &lt;code&gt;https://verifly.email/mcp&lt;/code&gt; (Streamable HTTP), with your API key as an &lt;code&gt;Authorization: Bearer&lt;/code&gt; header, and verify before you store or send to the address. The REST example above is the same decision in code form.&lt;/p&gt;

&lt;p&gt;A verification result is a decision aid. It does not guarantee inbox placement, and it does not replace consent. What it does well is stop you from treating catch-all and disposable addresses as confirmed just because they passed a regex and an MX lookup.&lt;/p&gt;

</description>
      <category>email</category>
      <category>api</category>
      <category>python</category>
      <category>mcp</category>
    </item>
    <item>
      <title>How to verify email addresses before you send: a practical guide</title>
      <dc:creator>Verifly Team</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:25:40 +0000</pubDate>
      <link>https://dev.to/verifly_team/how-to-verify-email-addresses-before-you-send-a-practical-guide-41mb</link>
      <guid>https://dev.to/verifly_team/how-to-verify-email-addresses-before-you-send-a-practical-guide-41mb</guid>
      <description>&lt;h1&gt;
  
  
  How to verify email addresses before you send: a practical guide
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work on Verifly.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The cheapest bounce is the one that never leaves your queue. A typo, a shut-down domain, a disposable inbox, or a mailbox that vanished six months ago all look fine in a spreadsheet, and they become expensive once a provider records the bounce against your domain and IP.&lt;/p&gt;

&lt;p&gt;Email verification is the work you do &lt;em&gt;before&lt;/em&gt; you send: confirm that an address is well-formed, that the domain can receive mail, and, where possible, that the mailbox itself exists. It will not promise inbox placement. Used consistently, it keeps hard bounces in a range providers and ESPs can live with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with syntax, but do not stop there
&lt;/h2&gt;

&lt;p&gt;Many bad addresses never need a network call. A syntax check catches a missing &lt;code&gt;@&lt;/code&gt;, a missing local part or domain, spaces or stray commas, a domain without a dot, and values longer than 254 characters, the practical maximum. A practical filter is enough: full RFC 5321/5322 grammar is easy to get wrong, and you are dropping garbage, not rejecting unusual but legal local parts. Lowercase and trim first. If the import contains &lt;code&gt;"Ada Lovelace" &amp;lt;ada@example.com&amp;gt;&lt;/code&gt;, extract the address inside the angle brackets.&lt;/p&gt;

&lt;p&gt;Syntax cannot tell you whether &lt;code&gt;ada@exampel.com&lt;/code&gt; (a typo) or a dead domain will bounce. For that you need the domain, then the mailbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check that the domain can receive mail
&lt;/h2&gt;

&lt;p&gt;Does the domain exist, and does it publish MX records? MX tells other servers where to deliver mail. If there is no MX, some systems fall back to an A or AAAA record, but a domain with neither is not accepting mail. SPF and DMARC on &lt;em&gt;your&lt;/em&gt; sending domain protect your reputation; they do not prove a recipient mailbox exists. A domain with valid MX can still reject the specific address. MX is necessary, not sufficient.&lt;/p&gt;

&lt;h2&gt;
  
  
  SMTP mailbox checks, and their limits
&lt;/h2&gt;

&lt;p&gt;A mailbox check, sometimes called an SMTP probe, connects to the domain's mail server and asks, usually with &lt;code&gt;RCPT TO&lt;/code&gt;, whether that recipient is accepted. When it works, the answer is clear: the mailbox exists, or it does not ("Mailbox does not exist"). When it does not, you get a softer outcome:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Catch-all domains&lt;/strong&gt; accept every local part, so the server will say yes to an address that was never created. You cannot confirm the individual mailbox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Greylisting and tarpits&lt;/strong&gt; delay or slow probes. A timeout is not "undeliverable."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Some large providers&lt;/strong&gt; accept the recipient and bounce later, or refuse to disclose mailbox existence to strangers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Role accounts&lt;/strong&gt; such as &lt;code&gt;info@&lt;/code&gt;, &lt;code&gt;support@&lt;/code&gt;, and &lt;code&gt;admin@&lt;/code&gt; may exist and still be a poor fit for outreach: shared, high-volume, low-engagement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disposable domains&lt;/strong&gt; often accept mail for a few hours or days, then vanish.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A useful result is not a boolean. It is a verdict plus flags:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;deliverable&lt;/code&gt; — syntax, MX, and the mailbox check agree the address can receive mail&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;undeliverable&lt;/code&gt; — the mailbox or domain cannot receive mail (drop it)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;risky&lt;/code&gt; — often a catch-all, or another case where the mailbox cannot be confirmed&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;unknown&lt;/code&gt; — the check could not finish cleanly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many APIs also return a recommendation such as &lt;code&gt;safe_to_send&lt;/code&gt;, &lt;code&gt;risky&lt;/code&gt;, or &lt;code&gt;do_not_send&lt;/code&gt;, and a reason string. Branch on the verdict and the recommendation together. A lone &lt;code&gt;is_valid&lt;/code&gt; flag is not enough: a catch-all can look "valid" even though the individual mailbox was never confirmed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why you should not roll your own SMTP probing at scale
&lt;/h2&gt;

&lt;p&gt;It is tempting to resolve MX, open port 25, and issue &lt;code&gt;RCPT TO&lt;/code&gt; for every row in a list. That works as a lab experiment. It is a poor production system.&lt;/p&gt;

&lt;p&gt;If you probe from the IP space you also use to send, providers will notice a burst of connections that never deliver a message. Some will tarpit or list you, which can damage the reputation you were trying to protect.&lt;/p&gt;

&lt;p&gt;Recipient servers are not a public API. &lt;code&gt;VRFY&lt;/code&gt; is almost always disabled. Catch-alls, accept-then-bounce, greylisting, and rate limits are normal. At volume, tens of thousands of connections from a cloud subnet look like abuse, and you end up needing proxy pools, backoff, and IPs that are &lt;em&gt;not&lt;/em&gt; your marketing senders. That is an infrastructure product, not a weekend script.&lt;/p&gt;

&lt;p&gt;A wrong "valid" is worse than a timeout. Treating a catch-all as confirmed, or a greylist delay as a bounce, quietly poisons the list. Use a dedicated verification service, or a probe network you actually isolate, and keep those connections off the IPs and domains you use to send.&lt;/p&gt;

&lt;h2&gt;
  
  
  Catch-alls, disposable addresses, and role accounts
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Catch-alls.&lt;/strong&gt; The server accepts any local part. Verification can flag this — for example, a &lt;code&gt;risky&lt;/code&gt; verdict with a reason such as "Catch-all server - cannot confirm individual address." That is not "this mailbox is dead," and it is not "safe to send." Put catch-alls in a separate bucket. Send only if the lead is worth the bounce risk, or try another channel first. Do not drop them automatically, and do not mix them into the confirmed deliverable file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disposable addresses.&lt;/strong&gt; These inflate a list and go dark quickly. Reject them at registration when you can; strip them from a campaign file before you spend sending capacity on them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Role accounts.&lt;/strong&gt; &lt;code&gt;info@&lt;/code&gt;, &lt;code&gt;sales@&lt;/code&gt;, &lt;code&gt;support@&lt;/code&gt;, and &lt;code&gt;admin@&lt;/code&gt; may be deliverable and still be the wrong audience. Many teams exclude them from outbound campaigns but keep them for product or billing mail. Make that policy explicit.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short example: calling a verification API
&lt;/h2&gt;

&lt;p&gt;This example uses &lt;a href="https://verifly.email" rel="noopener noreferrer"&gt;Verifly&lt;/a&gt;'s REST API. The same pattern applies to any verifier that returns a structured verdict: send a Bearer token from a server-side environment variable, and branch on the documented fields.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;GET https://verifly.email/api/v1/verify?email=&lt;/code&gt; returns JSON. Authentication is &lt;code&gt;Authorization: Bearer vf_...&lt;/code&gt;. Only &lt;code&gt;deliverable&lt;/code&gt; and &lt;code&gt;undeliverable&lt;/code&gt; outcomes consume a credit; &lt;code&gt;risky&lt;/code&gt; and &lt;code&gt;unknown&lt;/code&gt; do not. See the &lt;a href="https://verifly.email/docs" rel="noopener noreferrer"&gt;API docs&lt;/a&gt; and &lt;a href="https://verifly.email/openapi.json" rel="noopener noreferrer"&gt;OpenAPI spec&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://verifly.email/api/v1"&lt;/span&gt;
&lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"VERIFLY_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;verify_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{API}/verify"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;address&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {KEY}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;verify_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"lead@example.com"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;details&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"details"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"recommendation"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"catch-all:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"is_catch_all"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"disposable:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"is_disposable"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"role:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"is_role_account"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"mx:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"mx_records"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Branch on result + recommendation, not is_valid alone.&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"undeliverable"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"recommendation"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"do_not_send"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"drop"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"deliverable"&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"recommendation"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"safe_to_send"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"is_disposable"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;details&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"is_role_account"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"deliverable, but apply your disposable/role policy"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"keep"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# risky (often catch-all) or unknown&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"quarantine for review:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more than a handful of addresses, do not loop the single endpoint if you can help it. Verifly accepts up to 100 addresses at &lt;code&gt;POST /api/v1/verify/batch&lt;/code&gt; (1 MiB of JSON) and larger lists at &lt;code&gt;POST /api/v1/verify/bulk&lt;/code&gt; (up to 1,000,000 emails, 25 MiB request-size limit), which you poll with &lt;code&gt;GET /api/v1/jobs/{id}&lt;/code&gt;. The rate limit is 160 requests per second. A verification result is a decision aid; it does not guarantee inbox placement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bounce-rate thresholds worth caring about
&lt;/h2&gt;

&lt;p&gt;Mailbox providers use bounce and complaint rates as a proxy for whether you belong in the inbox. There is no single official "safe" bounce number, but the working ranges most teams use are fairly stable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep hard bounces rare.&lt;/strong&gt; Many ESPs start warning or throttling around a 2% hard-bounce rate. Stay comfortably below that, ideally under 1%. A sudden spike is a list-quality problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remove hard bounces immediately, and do not retry them.&lt;/strong&gt; Sending again to a known-bad mailbox is one of the fastest ways to look like a bad actor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complaints are a tighter constraint than bounces.&lt;/strong&gt; Gmail and Yahoo's bulk-sender guidance expects a spam-complaint rate well under 0.3%, and preferably under 0.1% in Postmaster Tools. Verification will not fix a consent problem, but a dirty list also produces recipients who hit "spam."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Soft bounces are temporary&lt;/strong&gt; (a full mailbox, or downtime). Retry with a cap, then suppress.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are already over a provider's comfort zone, pause, clean the list, and only then resume at a lower volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  How often to clean
&lt;/h2&gt;

&lt;p&gt;A list is a snapshot. People change jobs, abandon inboxes, and typo their own addresses. A cadence that works for most opt-in and B2B programs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;At capture.&lt;/strong&gt; Verify on the signup or form, at least for syntax plus disposable detection, while you can still ask for a different address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Before every campaign on a stale list.&lt;/strong&gt; If the file is older than about 30 to 90 days, or it was merged from several sources, verify again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuously from your ESP.&lt;/strong&gt; Suppress unsubscribes and hard bounces the day they happen, not in a quarterly cleanup.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not buy lists.&lt;/strong&gt; Purchased files are where the worst bounce and complaint rates come from, and they usually violate your ESP's terms. Verification cannot make an unconsented list a good idea.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Re-verify when the data may have gone stale, when you are about to send at volume, and whenever bounce rates tick up.&lt;/p&gt;

</description>
      <category>email</category>
      <category>api</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
