# Bounce management not working correctly

**URL:** <https://forum.mautic.org/t/bounce-management-not-working-correctly/8295>\
**Category:** Product Support\
**Created:** [April 24, 2017, 6:34am UTC](https://forum.mautic.org/t/bounce-management-not-working-correctly/8295 "2017-04-24T06:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jono](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jono](https://forum.mautic.org/u/jono)\
**Post date:** [April 24, 2017, 6:34am UTC](https://forum.mautic.org/t/bounce-management-not-working-correctly/8295/1 "2017-04-24T06:34:33Z")

</div>

The bounce management is not working correctly.  
  
  
  
**Example A:** Domain does not exist, [john@fakedomain.com](mailto:john@fakedomain.com) = Contact is NOT tagged as bounced ![:(]( ":(")  
  
**Example B:** Domain exists, however the email does NOT exist, [john@realdomain.com](mailto:john@realdomain.com) = contact is Tagged as bounced ![:)]( ":)")  
  
  
  
I’m trying to get the bounce Tag to work for emails that do NOT exists (bounces), because it hurts your email reputation resulting in your emails going to spam.  
  
  
  
  
  
  
  
**My settings:**

- self hosted mautic  
  
  
- VPS, WHM/Cpanel, workpress site with mautic tacking pixel  
  
  
- set up all cronjobs here: [https://mautic.org/docs/en/setup/cron\_jobs.html](https://mautic.org/docs/en/setup/cron_jobs.html) (except the Cleanup Old Data cron).  
  
I don’t know how to test cronjobs but for some reason php and php-cli did not seem to work. However after changing it to /usr/local/cpanel/3rdparty/bin/php it started working. I have no idea what the difference is (I just copied one of [Adam Preiser videos](https://www.youtube.com/watch?v=Eo2Zp-Lce1I) on youtube).  
  
Not sure if this is important so I thought I’d mention it.  
  
  
- I’m using sparkpost as SMTP and also the sending domain is verified.  
  
  
- Followed the instructions here (for sparkpost): [https://mautic.org/docs/en/emails/bounce\_management.html](https://mautic.org/docs/en/emails/bounce_management.html) including adding the webhook [https://domain.com/mautic/mailer/sparkpost/callback](https://domain.com/mautic/mailer/sparkpost/callback) to sparkpost  
  
  
  
I have the configuration \> Monitored Inbox Settings [bounce@domain.com](mailto:bounce@domain.com) and folder to monitor “inbox” set up.  
  
  
  
  
  
  
  
**Solutions:**  
  
  
  
1.) I do not have any webhooks set up in the Mautic \> setting \> webhooks. Do I need to set this up?  
  
if so which webhook events do I need to select and what is a Webhook POST Url?  
  
  
  
2.) If the Domain does not exist (like in Example A above) should mautic be able to tag it as bounced?  
  
  
  
  
  
  
  
**Let me know If you have any ideas on how to fix the bounce tagging**

---

<div class="post-metadata">

**Author:** ![jono](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jono](https://forum.mautic.org/u/jono)\
**Post date:** [April 24, 2017, 6:34am UTC](https://forum.mautic.org/t/bounce-management-not-working-correctly/8295/2 "2017-04-24T06:34:33Z")

</div>

The bounce management is not working correctly.

Example A: Domain does not exist, [john@fakedomain.com](mailto:john@fakedomain.com) = Contact is NOT tagged as bounced ☹  
Example B: Domain exists, however the email does NOT exist, [john@realdomain.com](mailto:john@realdomain.com) = contact is Tagged as bounced 🙂

I’m trying to get the bounce Tag to work for emails that do NOT exists (bounces), because it hurts your email reputation resulting in your emails going to spam.

My settings:

- self hosted mautic

- VPS, WHM/Cpanel, workpress site with mautic tacking pixel

- set up all cronjobs here: [https://mautic.org/docs/en/setup/cron\_jobs.html](https://mautic.org/docs/en/setup/cron_jobs.html) (except the Cleanup Old Data cron).  
I don’t know how to test cronjobs but for some reason php and php-cli did not seem to work. However after changing it to /usr/local/cpanel/3rdparty/bin/php it started working. I have no idea what the difference is (I just copied one of [Adam Preiser videos](https://www.youtube.com/watch?v=Eo2Zp-Lce1I) on youtube).  
Not sure if this is important so I thought I’d mention it.

- I’m using sparkpost as SMTP and also the sending domain is verified.

- Followed the instructions here (for sparkpost): [https://mautic.org/docs/en/emails/bounce\_management.html](https://mautic.org/docs/en/emails/bounce_management.html) including adding the webhook [https://domain.com/mautic/mailer/sparkpost/callback](https://domain.com/mautic/mailer/sparkpost/callback) to sparkpost

I have the configuration \> Monitored Inbox Settings [bounce@domain.com](mailto:bounce@domain.com) and folder to monitor “inbox” set up.

Solutions:

1.) I do not have any webhooks set up in the Mautic \> setting \> webhooks. Do I need to set this up?  
if so which webhook events do I need to select and what is a Webhook POST Url?

2.) If the Domain does not exist (like in Example A above) should mautic be able to tag it as bounced?

Let me know If you have any ideas on how to fix the bounce tagging

---

<div class="post-metadata">

**Author:** ![jono](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jono](https://forum.mautic.org/u/jono)\
**Post date:** [April 24, 2017, 2:53pm UTC](https://forum.mautic.org/t/bounce-management-not-working-correctly/8295/3 "2017-04-24T14:53:23Z")

</div>

Yes, I’ve done the sparkpost setup.

Thanks you for letting me know about not needing a monitored inbox.

I’ve done the 1 - 8 steps (including verifying my sending domain).

The problem is that it does not work when using a fake domain like [thisisfake@thisisfaketoo.com](mailto:thisisfake@thisisfaketoo.com) (it does however work with a real domain like [thisisfake@realdomain.com](mailto:thisisfake@realdomain.com))

I’m using a self hosted mautic, but I signed up to the cloud version of mautic just to test this out and the cloud mautic has the same problem.

Thanks for your help MxyzptlkFishStix

Any more ideas on how to fix this?

---

<div class="post-metadata">

**Author:** ![jono](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jono](https://forum.mautic.org/u/jono)\
**Post date:** [April 25, 2017, 2:16am UTC](https://forum.mautic.org/t/bounce-management-not-working-correctly/8295/4 "2017-04-25T02:16:42Z")

</div>

OK thanks MxyzptlkFishStix
