# Migrated forum with many invalid (bouncing) emails

**URL:** https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756
**Category:** Support
**Created:** [23 ביולי,‏ 2019,‏ 5:40pm UTC](https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756 "2019-07-23T17:40:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mr.X\_Mr.X](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mr.x_mr.x/32/126610_2.png) [@Mr.X\_Mr.X](https://meta.discourse.org/u/Mr.X_Mr.X)
#### Post date: [23 ביולי,‏ 2019,‏ 5:40pm UTC](https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756/1 "2019-07-23T17:40:58Z")

</div>

After migrating an older forum turns out 20% of the users have invalid emails (detected using neverbounce). This causes horrible bounce reports that mess up my email delivery (get listed in spam filters fast), I’m using sendgrid and SES. I want to:

- stop discourse or sendgrid/SES from trying to send mails to these invalid mails
- keep the user accounts active because some of this users are active and know their username and password.

I could introduce the invalid mails into the sendgrid/SES spam emails but that would not stop discourse from trying to email them and also i can’t manually introduce 20k mails in the sendgrid’s spam section.

How can I solve this?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [23 ביולי,‏ 2019,‏ 10:09pm UTC](https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756/2 "2019-07-23T22:09:16Z")

</div>

I typically deactivate all users after an import and make people reset their password to reactivate their account. If you don’t want to do that, then you could try doing something like deactivating only users who have visited the site in the past X months. Or deactivate all users who haven’t logged in to the new site.

See also [Configure VERP to handle bouncing e-mails](https://meta.discourse.org/t/handling-bouncing-e-mails/45343).

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [21 בינואר,‏ 2023,‏ 2:10am UTC](https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756/3 "2023-01-21T02:10:26Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [21 בינואר,‏ 2023,‏ 2:33am UTC](https://meta.discourse.org/t/migrated-forum-with-many-invalid-bouncing-emails/123756/4 "2023-01-21T02:33:00Z")

</div>


