Brevo Webhook Bounce Handling with Multiple Sender Domains
Hi everyone,
I'm using a single Brevo account for multiple websites, each with its own FluentCRM installation and sender domain. The issue is that Brevo's webhooks are account-wide. When an email for domain-a.com bounces, the webhook is sent to all my FluentCRM instances, causing incorrect contacts in domain-b.com to be marked as bounced.
Has anyone found a way to handle this correctly? Is there a FluentCRM setting to ignore bounce webhooks from other sender domains, or is the only solution a custom server-side script to filter them before they reach FluentCRM?
Any help would be greatly appreciated.
/*
* Prevent storing bounced emails in the system
*/
add_filter('fluent_crm/bounced_email_store', function($store) {
return false; // Prevent storing bounced emails
}, 20, 1);
Use this filter hook in your other websites as custom code snippet where you want to ignore bounce webhook events. You can use our 'FluentSnippets' plugin for writing custom code, which is free.
Shiam ChowdhuryΒ Hi, thanks for this!
βI have one quick question. It looks like this snippet will prevent all bounced emails from being recorded, even the correct ones for my site's own domain. Is that correct? Did you find a way to specifically ignore only the bounces from other sender domains?
βThanks again for your help!
Brevo does not include any specific flags in their event responses, such as the sender domain or similar identifiers, that we could use to distinguish events and take the appropriate actions.
So, for now, you will need to manually disable it using that snippet on the sites where no campaigns are being sent. We will conduct further R&D to explore if we can find a better solution to automate this. You are welcome.