Skip to content
FunnelGuard

Fix guide by FunnelsGuard

ESP bounce webhook not processed: how to find and fix it

DLV-070Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

When an email cannot be delivered, the receiving server rejects it. This is a bounce. Your ESP records it and can send an HTTP request (a webhook) to a URL you choose, with the event details: the address, the type of bounce and the reason.

This issue means that request is not being handled. The URL may be wrong, return an error, time out, fail signature checks, or the code may receive the data and do nothing with it. The ESP shows the bounce in its own dashboard, but your CRM, mailing list or database never learns about it.

Why it costs you leads or sales

The direct damage is usually modest, which is why the impact is low. The risk builds over time:

What goes wrong when bounces are ignored
  • You keep emailing invalid addresses, which raises your bounce rate and can trigger an ESP review.
  • Sender reputation drops, so real order confirmations and lead replies land in spam more often.
  • Sales staff chase leads whose email was never valid, with no sign that the address is dead.
  • Retries to a failing webhook can pile up, and some ESPs disable endpoints that fail repeatedly.
Where the bounce data stops
  1. Email sentYour site sends a confirmation to a lead
  2. Bounce at recipientMailbox does not exist
  3. ESP webhook callYour endpoint errors or times out
  4. Address marked badNever happens
  5. Sending stopsEmails keep going to the dead address

The break is between the ESP and your system, so nothing downstream learns about the bad address.

How to check if your site has it

Check the webhook end to end
  1. Open the ESP's webhook log

    SendGrid: Settings > Mail Settings > Event Webhook. Mailgun: Sending > Webhooks. Postmark: your server > Webhooks. SES: check the SNS topic subscription status and delivery logs. Look for non-2xx responses or a pending subscription.

  2. Confirm the URL is correct

    Check for a staging domain, an old path, http instead of https, or a URL behind a login or firewall.

  3. Send a test event

    Most ESPs have a Test Your Integration or Send test button. Note the HTTP status your server returns.

  4. Check your server logs

    Search for the webhook path. A 401 or 403 points to blocked requests or failed signature checks. A 404 means the route is gone. A 500 or timeout means the handler is crashing or too slow.

  5. Compare with the database

    Take an address that the ESP shows as bounced and check whether your CRM or list marks it as invalid or suppressed.

Common response codes and what they usually mean
Status your endpoint returnsLikely cause
404Route removed after a redeploy, plugin change or URL rewrite
401 / 403Firewall, security plugin or auth rule blocking the ESP, or a wrong signature secret
301 / 302Redirect from http to https or www to non-www; many ESPs do not follow redirects
500Handler code error, often on an unexpected payload
TimeoutHandler does slow work before replying

How to fix it

The right fix depends on how your site receives the webhook. Start with the general steps, then use the platform notes.

Fix the webhook handler
  1. Use the final HTTPS URL

    Enter the exact URL that returns 200 without redirects, and make sure the certificate is valid.

  2. Allow the ESP through security rules

    If a firewall, CDN or security plugin blocks the path, add a rule for the webhook route only. Do not turn protection off for the whole site.

  3. Verify the signature properly

    Use the signing key or secret from the ESP, and read the raw request body for the check. Parsing and re-encoding the JSON first often breaks verification.

  4. Reply fast, work later

    Return a 2xx status right away and process the events in a queue or background job.

  5. Act on hard bounces and complaints

    Mark the address as suppressed so no further mail is sent. Treat soft bounces (such as a full mailbox) as temporary and only suppress after repeated failures.

  6. Make it safe to repeat

    ESPs retry failed calls, so the same event can arrive twice. Use the event ID to skip duplicates.

Platform notes
  1. Check the REST route

    If a plugin registers the webhook URL, open Settings > Permalinks and click Save to refresh routes. Then retest the URL.

  2. Check security plugins and caching

    Allow the webhook path in your firewall plugin and exclude it from page caching.

  3. Use the ESP plugin's own settings

    If your SMTP or ESP plugin offers bounce handling, copy the webhook URL it shows rather than typing your own.

Example Express handler for bounce events (adapt to your ESP's payload and signature scheme)javascript
const express = require('express');
const app = express();

// Keep the raw body so a signature check can use it
app.post('/webhooks/esp', express.raw({ type: '*/*' }), async (req, res) => {
  // TODO: verify the signature with your ESP's signing secret using req.body (raw)
  let events;
  try {
    events = JSON.parse(req.body.toString('utf8'));
  } catch (e) {
    return res.sendStatus(400);
  }
  // Reply fast, then process
  res.sendStatus(200);
  for (const ev of Array.isArray(events) ? events : [events]) {
    // Field names differ by ESP; check its docs
    if (ev.event === 'bounce' || ev.event === 'dropped') {
      await markAddressSuppressed(ev.email, ev.reason); // your function
    }
  }
});

app.listen(3000);
Before and after

Webhook failing

  • ESP log shows 403 or 500 responses
  • Bounced addresses stay active in your CRM
  • Bounce rate keeps climbing

Webhook working

  • ESP log shows 200 responses
  • Hard bounces are suppressed within minutes
  • Sending stays clean and reputation holds

How to confirm it's fixed

Confirmation checks
  • The ESP's test event gets a 200 response.
  • The ESP webhook log shows recent deliveries with no failures.
  • Send a test message to a known invalid address on a domain you control and confirm it is marked as bounced in your system.
  • The same event sent twice does not create duplicate records.
  • For SES, the SNS subscription shows Confirmed.

How to prevent it happening again

Habits that keep it working
  • Set up alerts in the ESP for webhook failures if it offers them.
  • Run a test event after any redeploy, domain change, firewall change or plugin update.
  • Keep the webhook route in your deployment notes so it is not removed as unused.
  • Review suppression and bounce counts monthly and compare them to the ESP dashboard.
  • Rotate signing secrets on both sides at the same time.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys as a robot visitor and checks the steps, tracking hits and whether test leads reach your inbox and CRM. A bounce webhook is a server-to-server call between your email provider and your backend, which a visitor journey does not exercise.

Questions people ask

Why is my bounce webhook not working?

The most common causes are a wrong or redirected URL, a firewall blocking the ESP, a failed signature check, or a handler that crashes or times out. Check the ESP's webhook log for the response status, then match it to your server logs.

What does a bounce webhook do?

It sends an HTTP request from your email provider to your site each time an email bounces. Your code can then mark the address as invalid so you stop sending to it.

How do I test a SendGrid, Mailgun or Postmark webhook?

Use the test or sample event button in the provider's webhook settings. It posts a sample payload to your URL, and you can check the response status and whether your system recorded it.

Why is my Amazon SES bounce notification not arriving?

SES sends bounces through an SNS topic. If your HTTPS endpoint never confirmed the subscription, it stays Pending confirmation and no events are delivered. Confirm the subscription and check the topic is attached to your SES identity.

What happens if I ignore email bounces?

You keep sending to dead addresses, which raises your bounce rate and harms sender reputation. Your provider may review or suspend the account, and real emails are more likely to land in spam.

Should I suppress soft bounces?

Not right away. Soft bounces, such as a full mailbox, are often temporary. Suppress an address after repeated soft bounces, and suppress hard bounces and spam complaints immediately.

Can FunnelGuard monitor my bounce webhook?

No. Bounce webhooks are outside what FunnelGuard checks. Use your ESP's webhook logs and server-side error or log monitoring for that.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.