# Bounce Management???

**URL:** <https://forum.mautic.org/t/bounce-management/3311>\
**Category:** Product Support\
**Created:** [January 26, 2016, 4:01am UTC](https://forum.mautic.org/t/bounce-management/3311 "2016-01-26T04:01:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZellaTech](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@ZellaTech](https://forum.mautic.org/u/ZellaTech)\
**Post date:** [January 26, 2016, 4:01am UTC](https://forum.mautic.org/t/bounce-management/3311/1 "2016-01-26T04:01:08Z")

</div>

Hi,  
  
  
  
Can someone please tell me how I can get the bounce management working?!?!  
  
  
  
My emails are sending from my postfix server that was created just for Mautic. The Return-Path is set by mautic just as it likes. I have the bounce mailbox setup and it’s being monitored by Mautic. When the fetch email cron runs, it sees the bounced email and states that the cron has processed 1 message.  
  
  
  
However, nothing every happens… the lead list I have setup for bounce emails still shows 0 users, and the report shows the email is ignored, but not failed.  
  
  
  
I double checked the email header and the bounce email is to [info+bounce\_56a6eceb2a987@marketing.mydomain.com](mailto:info+bounce_56a6eceb2a987@marketing.mydomain.com)  
  
  
  
I cannot seem to figure out what is going on with bounce management.  
  
  
  
Any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![ZellaTech](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@ZellaTech](https://forum.mautic.org/u/ZellaTech)\
**Post date:** [January 26, 2016, 4:01am UTC](https://forum.mautic.org/t/bounce-management/3311/2 "2016-01-26T04:01:09Z")

</div>

Hi,

Can someone please tell me how I can get the bounce management working?!?!

My emails are sending from my postfix server that was created just for Mautic. The Return-Path is set by mautic just as it likes. I have the bounce mailbox setup and it’s being monitored by Mautic. When the fetch email cron runs, it sees the bounced email and states that the cron has processed 1 message.

However, nothing every happens… the lead list I have setup for bounce emails still shows 0 users, and the report shows the email is ignored, but not failed.

I double checked the email header and the bounce email is to [info+bounce\_56a6eceb2a987@marketing.mydomain.com](mailto:info+bounce_56a6eceb2a987@marketing.mydomain.com)

I cannot seem to figure out what is going on with bounce management.

Any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 26, 2016, 4:40am UTC](https://forum.mautic.org/t/bounce-management/3311/3 "2016-01-26T04:40:12Z")

</div>

If you view the lead, does it show them with a bounce label on the right? And is it a soft or hard bounce?

Are you running the list building from job?

Thanks!  
Alan

---

<div class="post-metadata">

**Author:** ![ZellaTech](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@ZellaTech](https://forum.mautic.org/u/ZellaTech)\
**Post date:** [January 26, 2016, 4:02pm UTC](https://forum.mautic.org/t/bounce-management/3311/4 "2016-01-26T16:02:11Z")

</div>

Alan,

Thanks for the reply!

When viewing the lead, it does not show a bounce label. I have a lead list setup called Bounced Emails with a filter set for bounced email equals yes, and the lead does not move into that list either.

I have the following job running every 5 min to rebuild the list php /var/www/html/app/console mautic:leadlists:update --env=prod

The test email that we are sending to is [bounce-test@service.socketlabs.com](mailto:bounce-test@service.socketlabs.com)

Here are the header and message contents from the return message.

Mail headers View basic headers | View raw message  
From line From [3e8.10.info+bounce\_56a6eceb2a987=marketing.MyDomain.com@advanced-email.com](mailto:3e8.10.info+bounce_56a6eceb2a987=marketing.MyDomain.com@advanced-email.com) Mon Jan 25 21:52:31 2016  
Return-Path:   
X-Original-To: [info+bounce\_56a6eceb2a987@marketing.MyDomain.com](mailto:info+bounce_56a6eceb2a987@marketing.MyDomain.com)  
Delivered-To: [info+bounce\_56a6eceb2a987@marketing.MyDomain.com](mailto:info+bounce_56a6eceb2a987@marketing.MyDomain.com)  
Received: from [mail1.quiksoft.com](http://mail1.quiksoft.com) ([mail1.quiksoft.com](http://mail1.quiksoft.com) [74.81.197.41]) by [marketing.MyDomain.com](http://marketing.MyDomain.com) (Postfix) with ESMTP id 346A410636 for ; Tue, 26 Jan 2016 03:52:31 +0000 (UTC)  
X-FBL: M2U4LjEyLjE0ZjAwMDAwMDAwMDA2Mi5pbmZvK2JvdW5jZV81NmE2ZWNlYjJhOTg3PW1hcmtldGluZy56ZWxsYXRlY2guY29t  
From: MAILER-DAEMON  
To: [info+bounce\_56a6eceb2a987@marketing.MyDomain.com](mailto:info+bounce_56a6eceb2a987@marketing.MyDomain.com)  
Message-ID:   
Subject: Message delivery failed…  
MIME-Version: 1.0  
Content-Type: multipart/mixed; boundary="----33D00BEF02924490820158550AD524A1"

Message contents   
This is the mail system at host [service.socketlabs.com](http://service.socketlabs.com).

I’m sorry to have to inform you that your message could not  
be delivered to one or more recipients.

[bounce-test@service.socketlabs.com](mailto:bounce-test@service.socketlabs.com) :host [service.socketlabs.com](http://service.socketlabs.com) said: 550 No such  
recipient

Failed delivery status  
Reason for failure 550 No such recipient  
Reporting mail server [service.socketlabs.com](http://service.socketlabs.com)

---

<div class="post-metadata">

**Author:** ![ZellaTech](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@ZellaTech](https://forum.mautic.org/u/ZellaTech)\
**Post date:** [January 27, 2016, 5:02am UTC](https://forum.mautic.org/t/bounce-management/3311/5 "2016-01-27T05:02:28Z")

</div>

Allen,

Were you able to review?

---

<div class="post-metadata">

**Author:** ![ZellaTech](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@ZellaTech](https://forum.mautic.org/u/ZellaTech)\
**Post date:** [January 27, 2016, 9:17pm UTC](https://forum.mautic.org/t/bounce-management/3311/6 "2016-01-27T21:17:40Z")

</div>

Can someone please help me with this issue?

---

<div class="post-metadata">

**Author:** ![raymondkent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/raymondkent/32/412_2.png) [@raymondkent](https://forum.mautic.org/u/raymondkent)\
**Post date:** [February 9, 2016, 10:17am UTC](https://forum.mautic.org/t/bounce-management/3311/7 "2016-02-09T10:17:48Z")

</div>

Zalla,

I have the same issue.

I am getting bounces in the designated bounced email inbox, but mautic is not pulling them back into the system, and i have setup as per the guide, tested the server connection from the email config and all says success.

It seems mautic is not executing the email fetch correctly.

Sorry I cant be of any more help.

---

<div class="post-metadata">

**Author:** ![amagdy](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@amagdy](https://forum.mautic.org/u/amagdy)\
**Post date:** [September 17, 2016, 4:29pm UTC](https://forum.mautic.org/t/bounce-management/3311/8 "2016-09-17T16:29:26Z")

</div>

I’m still experiencing the same issue and tried every solution to no avails. I’m searching for a tool to export the bounced addresses and re-import them to mautic while marking them to “do not contact” to avoid sending further emails to bounced contacts. We just left sendy for mautic and it used to handle this issue with no problems.

---

<div class="post-metadata">

**Author:** ![yasserb](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yasserb](https://forum.mautic.org/u/yasserb)\
**Post date:** [February 26, 2016, 9:09am UTC](https://forum.mautic.org/t/bounce-management/3311/9 "2016-02-26T09:09:59Z")

</div>

Zella,

I also have the same issue (check [here](https://www.mautic.org/community/index.php/conversation/post/6268)).

This help me to solve part of my problems:

[quote=6253:@smitione]You probably don’t have enabled de IMAP extention at php.  
I was facing the same problem and it was fixed whe i enabled it.  
Also, try using port 993 with SSL novalidate cert.  
Hope that it helps[/quote]

However, although using port 993 helped on fetching the bounced emails properly, still the bounced smart list (created in mautic) do not update when the list:update cron job runs.

Btw, if you haven’t set it up yet. Try adding the following cron job (app/console mautic:list:update). It may work for you.

Haven’t heard from the mautic team for more than 6 weeks on this issue ☹

---

<div class="post-metadata">

**Author:** ![michaelvanburen](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@michaelvanburen](https://forum.mautic.org/u/michaelvanburen)\
**Post date:** [October 4, 2016, 8:28am UTC](https://forum.mautic.org/t/bounce-management/3311/10 "2016-10-04T08:28:35Z")

</div>

Running also into the issue with +. It seems when received (I am using a mailserver) a new separate folder is created because of the [Bouncemail+bounce238238@xxxxx.com](mailto:Bouncemail+bounce238238@xxxxx.com). Mautic wil not see it, i suspect.

I have not found a way to solve this. Maybe it is unrelated but other experienced this?

---

<div class="post-metadata">

**Author:** ![swip](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@swip](https://forum.mautic.org/u/swip)\
**Post date:** [October 10, 2016, 3:39pm UTC](https://forum.mautic.org/t/bounce-management/3311/11 "2016-10-10T15:39:32Z")

</div>

IF you do not have the means to setup a catchall:  
In app/bundles/EmailBundle/Helper/MailHelper.php:

Change:

[code]public function generateBounceEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'bounces')) {
        // Append the bounce notation
        list($email, $domain) = explode('@', $settings['address']);
        $email .= '+bounce';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
        $monitoredEmail = $email.'@'.$domain;
    }

    return $monitoredEmail;
}[/code]

```

to:

[code] public function generateBounceEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'bounces')) {
        // Append the bounce notation
      /* list($email, $domain) = explode('@', $settings['address']);
        $email .= '+bounce';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
	  */
        $monitoredEmail = $settings['address'];
    }

    return $monitoredEmail;
}[/code]

```

This behavior also occurs with unsubscribe headers, so change:

[code]public function generateUnsubscribeEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'unsubscribes')) {
        // Append the bounce notation
        list($email, $domain) = explode('@', $settings['address']);
        $email .= '+unsubscribe';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
        $monitoredEmail = $email.'@'.$domain;
    }

    return $monitoredEmail;
}[/code]

```

to:

[code] public function generateUnsubscribeEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'unsubscribes')) {
        // Append the bounce notation
     /* list($email, $domain) = explode('@', $settings['address']);
        $email .= '+unsubscribe';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }*/
        $monitoredEmail = $settings['address'];
    }

    return $monitoredEmail;
}[/code]

```

After some testing, I understand the hashing lessens the processing of bounce/unsub mail – the documentation fails to specify that this method ONLY works if you enable a catchall mailbox.  
(And your server does not ‘create’ folders for nonexistent addresses)

This method of processing DOES NOT work if you use something like @yahoo.com out of the box.  
Removing the hash as mentioned above, processes them appropriately, as an alternative.

---

<div class="post-metadata">

**Author:** ![ilearnbydoing](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@ilearnbydoing](https://forum.mautic.org/u/ilearnbydoing)\
**Post date:** [April 15, 2017, 8:12am UTC](https://forum.mautic.org/t/bounce-management/3311/12 "2017-04-15T08:12:20Z")

</div>

despite catch all setting same issue.  
email is landing in different folder.

---

<div class="post-metadata">

**Author:** ![ilearnbydoing](https://avatars.discourse-cdn.com/v4/letter/i/dfb087/32.png) [@ilearnbydoing](https://forum.mautic.org/u/ilearnbydoing)\
**Post date:** [April 15, 2017, 8:34am UTC](https://forum.mautic.org/t/bounce-management/3311/13 "2017-04-15T08:34:05Z")

</div>

the catch domain email id will work fine if you use it without any + sign i.e. bouncebounce\_45646bbf04c47@domain.tld it will store email in inbox folder.  
if you use + sign i.e. bounce+bounce\_45646bbf04c47@domain.tld it is creating new folder like inbox and store email there.

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [April 20, 2017, 7:29pm UTC](https://forum.mautic.org/t/bounce-management/3311/14 "2017-04-20T19:29:33Z")

</div>

Hi guys,

We have the same issue:

In Mautic we are sending out email to series of contacts. When emails are bounced, we do receive emails in the bounce email inbox, but not all of these bounces that are coming in are registered in Mautic for some reason. Some are, but some are not.

This seems like a fairly important feature to get fixed right? Does anyone have a working solution?

Cheers,

Karan

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [April 21, 2017, 9:02am UTC](https://forum.mautic.org/t/bounce-management/3311/15 "2017-04-21T09:02:32Z")

</div>

Hi MxyzptlkFishStix,

Yeah apologies. We are not sending locally, but we are using Amazon SES as a service.

When we send out the emails using a campaign, we do not get any bounces in the report:

[http://mail2.supplychainradio.com/asset/1:email-reportjpg](http://mail2.supplychainradio.com/asset/1:email-reportjpg)

But when I create a segement list (email equeals bounced) for that specific campaign, I do get some contact that are bounced, but not all of them. I do get all of them in my email inbox.

Hopefully you guys have a solutions to get ALL the bounces in the system. Not having this increased the chance that our email address will get a bad reputation which is not preferable at all.

Cheers,

Karan

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [April 21, 2017, 11:56am UTC](https://forum.mautic.org/t/bounce-management/3311/16 "2017-04-21T11:56:02Z")

</div>

Hi MxyzptlkFishStix,

Yes, according to our developer, he followed the documentation provided to the teeth. Is there a way to check if the setup is correct?

Thanks!

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [April 25, 2017, 1:05pm UTC](https://forum.mautic.org/t/bounce-management/3311/17 "2017-04-25T13:05:07Z")

</div>

Hi MxyzptlkFishStix,

Im sorry for the late reply. I will contact our developer and provide the screenshots. Thanks!

Karan

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [April 26, 2017, 1:29pm UTC](https://forum.mautic.org/t/bounce-management/3311/18 "2017-04-26T13:29:25Z")

</div>

Hi MxyzptlkFishStix,

Please see the screenshots provided by the developer:

“/s/config/edit#emailconfig” = [http://mail2.supplychainradio.com/asset/3:mautic-email-setting3png](http://mail2.supplychainradio.com/asset/3:mautic-email-setting3png)

Amazon AWS SES Info = [http://mail2.supplychainradio.com/asset/2:aws-sespng](http://mail2.supplychainradio.com/asset/2:aws-sespng)

Is this helpful?

Happy to hear from you!

Karan

---

<div class="post-metadata">

**Author:** ![Karan\_Soekhram](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/karan_soekhram/32/4306_2.png) [@Karan\_Soekhram](https://forum.mautic.org/u/Karan_Soekhram)\
**Post date:** [May 5, 2017, 12:22pm UTC](https://forum.mautic.org/t/bounce-management/3311/19 "2017-05-05T12:22:18Z")

</div>

Hi MxyzptlkFishStix,

We are going to do some testing coming week with your suggested setup. Curious to see if it works and hopefully I can donate to your tea fund ;-).

Cheers,

Karan

---

<div class="post-metadata">

**Author:** ![itvietnam](https://avatars.discourse-cdn.com/v4/letter/i/54ee81/32.png) [@itvietnam](https://forum.mautic.org/u/itvietnam)\
**Post date:** [June 20, 2017, 3:24pm UTC](https://forum.mautic.org/t/bounce-management/3311/20 "2017-06-20T15:24:55Z")

</div>

[quote=16365:@swip]IF you do not have the means to setup a catchall:  
In app/bundles/EmailBundle/Helper/MailHelper.php:

Change:

[code]public function generateBounceEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'bounces')) {
        // Append the bounce notation
        list($email, $domain) = explode('@', $settings['address']);
        $email .= '+bounce';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
        $monitoredEmail = $email.'@'.$domain;
    }

    return $monitoredEmail;
}[/code]

```

to:

[code] public function generateBounceEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'bounces')) {
        // Append the bounce notation
      /* list($email, $domain) = explode('@', $settings['address']);
        $email .= '+bounce';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
	  */
        $monitoredEmail = $settings['address'];
    }

    return $monitoredEmail;
}[/code]

```

This behavior also occurs with unsubscribe headers, so change:

[code]public function generateUnsubscribeEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'unsubscribes')) {
        // Append the bounce notation
        list($email, $domain) = explode('@', $settings['address']);
        $email .= '+unsubscribe';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }
        $monitoredEmail = $email.'@'.$domain;
    }

    return $monitoredEmail;
}[/code]

```

to:

[code] public function generateUnsubscribeEmail($idHash = null)  
{  
$monitoredEmail = false;

```
    if ($settings = $this-&gt;isMontoringEnabled('EmailBundle', 'unsubscribes')) {
        // Append the bounce notation
     /* list($email, $domain) = explode('@', $settings['address']);
        $email .= '+unsubscribe';
        if ($idHash) {
            $email .= '_'.$this-&gt;idHash;
        }*/
        $monitoredEmail = $settings['address'];
    }

    return $monitoredEmail;
}[/code]

```

After some testing, I understand the hashing lessens the processing of bounce/unsub mail – the documentation fails to specify that this method ONLY works if you enable a catchall mailbox.  
(And your server does not ‘create’ folders for nonexistent addresses)

This method of processing DOES NOT work if you use something like @yahoo.com out of the box.  
Removing the hash as mentioned above, processes them appropriately, as an alternative.[/quote]

This is useful to whom is using IMAP bounce processing.

Do you know how bounced email processing? is it process on email subject or email body?

[Next page](https://forum.mautic.org/t/bounce-management/3311.md?page=2)
