# How to automatically remove the leads whose emails are failed to deliver?

**URL:** <https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045>\
**Category:** Product Support\
**Created:** [February 15, 2016, 5:48am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045 "2016-02-15T05:48:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 5:48am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/1 "2016-02-15T05:48:10Z")

</div>

I have a list of emails. It was collected during the startup of my company most of the emails are valid, but at least, around 100 or more is invalid how to remove automatically those leads from the list or move them to bounced mail list.  
  
Screenshots: [https://drive.google.com/folderview?id=0B0tP7MQSvCaRd0VkcnB2ZENvWnM&usp=sharing](https://drive.google.com/folderview?id=0B0tP7MQSvCaRd0VkcnB2ZENvWnM&usp=sharing)  
  
  
  
[https://drive.google.com/file/d/0B0tP7MQSvCaRRjlYa0NqZllwMGs/view?usp=sharing](https://drive.google.com/file/d/0B0tP7MQSvCaRRjlYa0NqZllwMGs/view?usp=sharing)  
  
  
  
[https://drive.google.com/file/d/0B0tP7MQSvCaRY2lKMVRlT0ZXOVU/view?usp=sharing](https://drive.google.com/file/d/0B0tP7MQSvCaRY2lKMVRlT0ZXOVU/view?usp=sharing)  
  
  
  
If the email is failed to deliver permanently i want to remove the lead from all the list or move to bounced.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 10:16am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/2 "2016-02-15T10:16:24Z")

</div>

If you use the inbox monitoring feature, Mautic will mark bounced emails/leads as bounced. Then you can make a lead list with the bounced=yes filter. Then you can see all leads in that list and delete them.

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 10:25am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/3 "2016-02-15T10:25:59Z")

</div>

I am currently using the system you suggested but the emails that are failed to deliver are not moving to bounce list .  
Screenshot : [https://drive.google.com/file/d/0B0tP7MQSvCaRMF9uT1A1QnpqY2c/view?usp=sharing](https://drive.google.com/file/d/0B0tP7MQSvCaRMF9uT1A1QnpqY2c/view?usp=sharing)  
Still the emails are not moving to the bounced emails list I created with bounced=yes filter . Only few mails moved others are not moving there .

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 10:48am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/4 "2016-02-15T10:48:02Z")

</div>

It may take some time till all of them move there. List update is run by a cron task. If the list is filling with bounced leads, I think it’s working fine.

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 10:54am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/5 "2016-02-15T10:54:55Z")

</div>

Its been two weeks since the campaign started and there are more than 1000 bounced emails but only 100 is in the bounced list … is it normal ? will it finally form the correct bounced mail list.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 11:04am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/6 "2016-02-15T11:04:33Z")

</div>

Can you check randomly the leads which Mautic marked as bounced if they are bounced or unsubscribed? There is a bug in 1.2.4 which marks unsubscriptions as bounce. You can tell if you hover the bounce tag.

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 11:06am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/7 "2016-02-15T11:06:55Z")

</div>

I checked them they were unsubscribed … there are unsubscribed but marked as bounced … some emails which are regularly viewed by users are marked as do not contact… is that an issue too?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 11:10am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/8 "2016-02-15T11:10:20Z")

</div>

Then the bounce management does not work for you I guess. I’m not very skilled in the bounce feature. You may search for a solution. I’ve read somewhere that it does not work well with GMail for some reason. The fix is here:

[https://github.com/mautic/mautic/pull/1421](https://github.com/mautic/mautic/pull/1421)

if you’d want to modify the code before the new release. The do not contact may be there from different sources. Hard to tell.

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 11:12am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/9 "2016-02-15T11:12:36Z")

</div>

thank you so much for your support … when will be the next version released ?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 11:15am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/10 "2016-02-15T11:15:45Z")

</div>

It’s planned for the end of February, but it depends on the developers and testers when all the pull requests will be finished and tested. If you’d like to give us a hand with testing, here is how to:

[https://github.com/mautic/mautic#how-to-test-a-pull-request](https://github.com/mautic/mautic#how-to-test-a-pull-request)

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 11:16am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/11 "2016-02-15T11:16:58Z")

</div>

thank you i will test it out

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 5:48am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/12 "2016-02-15T05:48:10Z")

</div>

I have a list of emails. It was collected during the startup of my company most of the emails are valid, but at least, around 100 or more is invalid how to remove automatically those leads from the list or move them to bounced mail list.  
Screenshots: [https://drive.google.com/folderview?id=0B0tP7MQSvCaRd0VkcnB2ZENvWnM&usp=sharing](https://drive.google.com/folderview?id=0B0tP7MQSvCaRd0VkcnB2ZENvWnM&usp=sharing)

[https://drive.google.com/file/d/0B0tP7MQSvCaRRjlYa0NqZllwMGs/view?usp=sharing](https://drive.google.com/file/d/0B0tP7MQSvCaRRjlYa0NqZllwMGs/view?usp=sharing)

[https://drive.google.com/file/d/0B0tP7MQSvCaRY2lKMVRlT0ZXOVU/view?usp=sharing](https://drive.google.com/file/d/0B0tP7MQSvCaRY2lKMVRlT0ZXOVU/view?usp=sharing)

If the email is failed to deliver permanently i want to remove the lead from all the list or move to bounced.

---

<div class="post-metadata">

**Author:** ![surya.caprice](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@surya.caprice](https://forum.mautic.org/u/surya.caprice)\
**Post date:** [February 15, 2016, 7:14am UTC](https://forum.mautic.org/t/how-to-automatically-remove-the-leads-whose-emails-are-failed-to-deliver/6045/13 "2016-02-15T07:14:33Z")

</div>

i have also set the failed emails to go to “bounced” folder in gmail is it possible to remove the leads who’s emails are in the bounced folder of my gmail?
