<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BounceLayer Blog]]></title><description><![CDATA[BounceLayer Blog]]></description><link>https://bouncelayer.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 00:45:19 GMT</lastBuildDate><atom:link href="https://bouncelayer.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why your email verifier says "unknown": some mail servers take 10 seconds to say no]]></title><description><![CDATA[Email verification works by asking a mail server whether a mailbox exists, without sending anything. We run an email verification API, and a test showed…]]></description><link>https://bouncelayer.hashnode.dev/why-your-email-verifier-says-unknown-some-mail-servers-take-10-seconds-to-say-no</link><guid isPermaLink="true">https://bouncelayer.hashnode.dev/why-your-email-verifier-says-unknown-some-mail-servers-take-10-seconds-to-say-no</guid><category><![CDATA[email]]></category><category><![CDATA[smtp]]></category><category><![CDATA[email marketing]]></category><category><![CDATA[Python]]></category><dc:creator><![CDATA[Bounce Layer]]></dc:creator><pubDate>Fri, 27 Nov 2026 00:54:45 GMT</pubDate><content:encoded><![CDATA[<p>Email verification works by asking a mail server whether a mailbox exists, without sending anything. We run an email verification API, and a test showed our own support address as "unknown". The mailbox works; we read it every day. Here's what was going on, with timings.</p>
<h2>The check, step by step</h2>
<pre><code class="language-plaintext">connect to the domain's MX on port 25
&lt;- 220 greeting
-&gt; EHLO probe.example.com
-&gt; MAIL FROM:&lt;verify@probe.example.com&gt;
-&gt; RCPT TO:&lt;person@domain.com&gt;      # 250 = accepted, 550 = no such user
-&gt; RSET / MAIL FROM again
-&gt; RCPT TO:&lt;random@domain.com&gt;      # catch-all probe
-&gt; QUIT                             # nothing is ever sent
</code></pre>
<p>The second RCPT matters: if the server also accepts a random made-up address, the domain is catch-all and the first "250" proves nothing.</p>
<h2>The timings</h2>
<p>We timed each step against a dozen providers (Python, plain sockets, no DATA command):</p>
<table>
<thead>
<tr>
<th>Provider</th>
<th>Greeting</th>
<th>Reject unknown user</th>
</tr>
</thead>
<tbody><tr>
<td>Google Workspace, Zoho, Yandex, Outlook</td>
<td>&lt; 1 s</td>
<td>&lt; 1 s</td>
</tr>
<tr>
<td>Namecheap Private Email</td>
<td>~8 s</td>
<td>~5.5 s</td>
</tr>
<tr>
<td>Titan</td>
<td>up to 26 s</td>
<td>~5.4 s</td>
</tr>
<tr>
<td>Hostinger</td>
<td>7–12 s</td>
<td>10.3 s</td>
</tr>
</tbody></table>
<p>(Measured 27 November 2026 from one network; greetings vary by sender IP and reputation.)</p>
<p>Both delays are deliberate: a slow greeting is an anti-spam measure, and the slow rejection comes from the server asking its mailbox storage before answering.</p>
<h2>What broke</h2>
<p>Our SMTP proxy used one 3-second timeout for every step. On these hosts:</p>
<ul>
<li>the real mailbox got its 250 in 0.3 s,</li>
<li>the catch-all probe timed out before the 550 arrived,</li>
<li>so we couldn't tell whether the domain was catch-all, and correctly refused to call the address valid → <strong>unknown</strong>.</li>
</ul>
<p>Dead addresses on those hosts came back unknown too, and a slow greeting was counted as "host unreachable".</p>
<h2>The fix</h2>
<p>Per-step limits instead of one:</p>
<pre><code class="language-python">BANNER_TIMEOUT = 10.0   # greeting
RCPT_TIMEOUT = 15.0     # each RCPT, including the catch-all probe
COMMAND_TIMEOUT = 3.0   # EHLO, MAIL FROM, RSET
TOTAL_TIMEOUT = 22.0    # whole conversation, under the caller's 30 s wait
</code></pre>
<p>A limit is a maximum, so servers that answer in 0.3 s still take 0.3 s. We also stopped counting "connected, then slow" as "unreachable", so one slow host can't get marked dead.</p>
<p>After deploying, our support address came back valid (16 s the first time, then served from cache), and made-up addresses on Hostinger came back invalid.</p>
<h2>Takeaways</h2>
<ol>
<li>If your verification unknowns cluster on a few domains, suspect timeouts before data.</li>
<li>Use separate timeouts for steps that are slow by design.</li>
<li>Don't bill for unknowns: it makes your own bugs cost you, not your users.</li>
</ol>
<p>BounceLayer gives 300 free checks a month if you want to try it on your own list: <a href="https://bouncelayer.com/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=slowservers">https://bouncelayer.com/?utm_source=hashnode&amp;utm_medium=article&amp;utm_campaign=slowservers</a></p>
]]></content:encoded></item><item><title><![CDATA[How to Let Your AI Agent Verify an Email Address Before It Sends]]></title><description><![CDATA[Give Claude, Cursor or any MCP client a verify_email tool so your AI agent checks an address is real before it sends. Setup, results and FAQ.]]></description><link>https://bouncelayer.hashnode.dev/ai-agent-verify-email-address-mcp</link><guid isPermaLink="true">https://bouncelayer.hashnode.dev/ai-agent-verify-email-address-mcp</guid><category><![CDATA[mcp]]></category><category><![CDATA[email]]></category><category><![CDATA[ai agents]]></category><category><![CDATA[api]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[Bounce Layer]]></dc:creator><pubDate>Wed, 18 Nov 2026 15:25:28 GMT</pubDate><content:encoded><![CDATA[<p><strong>Short answer:</strong> connect an email verification MCP server to your AI agent. It gets a <code>verify_email</code> tool that checks whether a mailbox exists, without sending an email, and returns one of six results with a plain-English reason. The agent then sends only to <code>valid</code> addresses.</p>
<p>We build BounceLayer, an email verification service, so this guide uses our MCP server. The same steps work with any email verification MCP server, and we list the others at the end.</p>
<h2>What is an email verification MCP server?</h2>
<p>An MCP (Model Context Protocol) server gives an AI agent tools it can call. An email verification MCP server gives it a tool that checks an address before the agent uses it: syntax, the domain's mail (MX) records, whether the mailbox exists on the mail server, and whether the address is disposable, role-based (like <code>info@</code>) or on a catch-all domain. No email is sent to the address.</p>
<h2>Why does an AI agent need to verify email addresses?</h2>
<p>Agents that send email will happily send to an address that doesn't exist. Each one bounces, and enough bounces push a domain's mail into spam. A person would check the address first. An agent needs a tool for that.</p>
<h2>How do I add email verification to Claude, Cursor or another MCP client?</h2>
<p><strong>Claude Code</strong> (one command):</p>
<pre><code class="language-bash">claude mcp add --transport http bouncelayer https://api.bouncelayer.com/mcp/ \
  --header "X-API-Key: bl_live_YOUR_KEY"
</code></pre>
<p><strong>Cursor, Claude Desktop, Windsurf or any other MCP client</strong> (run the npm package):</p>
<pre><code class="language-json">{
  "mcpServers": {
    "bouncelayer": {
      "command": "npx",
      "args": ["-y", "@bouncelayer/mcp"],
      "env": { "BOUNCELAYER_API_KEY": "bl_live_YOUR_KEY" }
    }
  }
}
</code></pre>
<p><strong>Remote MCP URL:</strong> <code>https://api.bouncelayer.com/mcp/</code>, with your key in the <code>X-API-Key</code> header.</p>
<h3>No API key yet?</h3>
<p>The agent can get its own. The server has a <code>create_agent_account</code> tool that needs no key and returns one with 25 free credits. It also returns a claim link for the person the agent works for. Claiming the account gives 300 free checks a month.</p>
<h2>What results does the agent get back?</h2>
<table>
<thead>
<tr>
<th>Result</th>
<th>Meaning</th>
<th>What the agent should do</th>
</tr>
</thead>
<tbody><tr>
<td><code>valid</code></td>
<td>The mailbox exists</td>
<td>Send</td>
</tr>
<tr>
<td><code>invalid</code></td>
<td>It doesn't exist</td>
<td>Don't send</td>
</tr>
<tr>
<td><code>catch_all</code></td>
<td>The domain accepts every address, so the mailbox can't be confirmed</td>
<td>Send with care</td>
</tr>
<tr>
<td><code>disposable</code></td>
<td>A throwaway address</td>
<td>Don't send</td>
</tr>
<tr>
<td><code>do_not_mail</code></td>
<td>A risky address, such as a shared inbox</td>
<td>Leave it out</td>
</tr>
<tr>
<td><code>unknown</code></td>
<td>The mail server gave no answer</td>
<td>Try again later (not charged)</td>
</tr>
</tbody></table>
<p>Each result also has an <code>explanation</code> in plain English and a <code>did_you_mean</code> suggestion when the domain looks mistyped (for example <code>gmial.com</code> → <code>gmail.com</code>), so the agent can tell the user why and offer the fix.</p>
<h2>What prompt should I give the agent?</h2>
<blockquote>
<p>Before you send any email, call verify_email on the recipient. Only send if the result is valid. If it is catch_all, ask me first. If did_you_mean is set, show me the suggestion.</p>
</blockquote>
<h2>How do I verify a whole email list?</h2>
<p>For more than a few addresses, use <code>submit_bulk_verification</code> and then <code>get_bulk_job</code> to collect the results. Checking a list one address at a time works, but it is slower and uses more of the agent's context.</p>
<p>All tools: <code>verify_email</code>, <code>submit_bulk_verification</code>, <code>get_bulk_job</code>, <code>list_bulk_jobs</code>, <code>cancel_bulk_job</code>, <code>get_credit_balance</code>, <code>verify_email_demo</code>, <code>create_agent_account</code>, <code>get_api_discovery</code>.</p>
<h2>Which other email verification MCP servers are there?</h2>
<p>ZeroBounce, Hunter, Bouncer, Clearout, MyEmailVerifier, EmailListVerify and EmailVerify.io also publish MCP servers. If you already pay one of them, use theirs. We compared how each one connects here: <a href="https://bouncelayer.com/compare/email-verification-mcp-servers">https://bouncelayer.com/compare/email-verification-mcp-servers</a></p>
<h2>FAQ</h2>
<p><strong>Does verifying an email address send an email to it?</strong>
No. The check asks the recipient's mail server whether the mailbox exists and stops before any message is sent.</p>
<p><strong>How much does it cost?</strong>
BounceLayer gives 300 free checks a month, with no card. Bought credits never expire, and <code>unknown</code> results are not charged.</p>
<p><strong>Which AI tools can use it?</strong>
Any MCP client: Claude Code, Claude Desktop, Cursor, Windsurf, VS Code and others. It is also listed in the official MCP Registry as <code>com.bouncelayer/mcp</code>.</p>
<p><strong>What does catch_all mean?</strong>
The domain accepts mail for every address, so no check can prove a specific mailbox exists. Treat it as "maybe" and ask before sending.</p>
<p><strong>Can I use it without an AI agent?</strong>
Yes. The same checks are available as a REST API, with SDKs for Node.js, Python and Go.</p>
<h2>Links</h2>
<ul>
<li>Docs: <a href="https://bouncelayer.com/docs/mcp">https://bouncelayer.com/docs/mcp</a></li>
<li>Source (MIT): <a href="https://github.com/BounceLayer/bouncelayer-mcp">https://github.com/BounceLayer/bouncelayer-mcp</a></li>
<li>npm: <a href="https://www.npmjs.com/package/@bouncelayer/mcp">https://www.npmjs.com/package/@bouncelayer/mcp</a></li>
</ul>
]]></content:encoded></item></channel></rss>