# Prevent creation of staged user for emails with auto-xyz header

**URL:** <https://meta.discourse.org/t/prevent-creation-of-staged-user-for-emails-with-auto-xyz-header/63960>\
**Category:** Bug\
**Created:** [5 Junio, 2017 14:10 UTC](https://meta.discourse.org/t/prevent-creation-of-staged-user-for-emails-with-auto-xyz-header/63960 "2017-06-05T14:10:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [5 Junio, 2017 14:10 UTC](https://meta.discourse.org/t/prevent-creation-of-staged-user-for-emails-with-auto-xyz-header/63960/1 "2017-06-05T14:10:58Z")

</div>

Continuing the discussion from [Google "no-reply" user pending approval](https://meta.discourse.org/t/google-no-reply-user-pending-approval/40961/10):

I am using Gmail for my incoming emails (following [this guide](https://meta.discourse.org/t/set-up-reply-via-email-support-e-mail/14003)). When I recently signed into that Gmail account from a new device, Google sent me one of those security warning emails: “got a new device? Review sign-in from Samsung Galaxy S7”. Discourse correctly rejected this email with an `Email::Receiver::AutoGeneratedEmailError` but it nevertheless created a staged user for [no-reply@accounts.google.com](mailto:no-reply@accounts.google.com). Can/should this not be avoided, given that discourse correctly noticed that

> the ‘precedence’ header is set to: list, junk, bulk or auto\_reply, or when any other header contains: auto-submitted, auto-replied or auto-generated.

---

_[View the full topic](https://meta.discourse.org/t/prevent-creation-of-staged-user-for-emails-with-auto-xyz-header/63960)._
