# Admin/email/smtp\_should\_reject endpoint not permitted by email.receive emails scope

**URL:** https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483
**Category:** Bug
**Created:** [June 9, 2022, 8:32am UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483 "2022-06-09T08:32:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [June 9, 2022, 8:32am UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483/1 "2022-06-09T08:32:57Z")

</div>

We’re using scoped API keys for direct email delivery and are currently implementing the fast rejection interface.

However, it turns out that the `admin/email#smtp_should_reject` route is not included in the `email.receive emails` API scope.

Is this on purpose or is this an oversight?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 15, 2022, 7:34am UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483/2 "2022-06-15T07:34:00Z")

</div>

> [@RGJ](#):
>
> Is this on purpose or is this an oversight?

I thinks it is a minor oversight? @Roman ? I think you added this scope.

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [June 15, 2022, 6:50pm UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483/3 "2022-06-15T18:50:23Z")

</div>

My bad, sorry! I will add the route to the scope later today.

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [June 16, 2022, 4:47pm UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483/4 "2022-06-16T16:47:24Z")

</div>

Done!

> <https://github.com/discourse/discourse/pull/17110>
>
> \[Meta context\](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpo…int-not-permitted-by-email-receive-emails-scope/229483)

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [June 17, 2022, 11:00am UTC](https://meta.discourse.org/t/admin-email-smtp-should-reject-endpoint-not-permitted-by-email-receive-emails-scope/229483/5 "2022-06-17T11:00:03Z")

</div>

This topic was automatically closed after 18 hours. New replies are no longer allowed.
