# smtp\_should\_reject 및 discourse-smtp-fast-rejection 제거

**URL:** https://meta.discourse.org/t/remove-smtp-should-reject-discourse-smtp-fast-rejection/389368
**Category:** Development
**Created:** [11월 21, 2025, 10:41오후 UTC](https://meta.discourse.org/t/remove-smtp-should-reject-discourse-smtp-fast-rejection/389368 "2025-11-21T22:41:28Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [11월 21, 2025, 10:41오후 UTC](https://meta.discourse.org/t/remove-smtp-should-reject-discourse-smtp-fast-rejection/389368/1 "2025-11-21T22:41:28Z")

</div>

[Seeing smtp\_should\_reject "400 bad request" failures on bounce processing](https://meta.discourse.org/t/seeing-smtp-should-reject-400-bad-request-failures-on-bounce-processing/387431/14)에서 이어지는 토론입니다:

> [@supermathie](#):
>
> 해당 코드를 검토해 보았고, 말씀하신 내용이 맞다고 생각합니다. `smtp_should_reject` 코드가 바운스 메시지나 회신을 잘못 거부하고 있을 수 있다고 생각합니다.

내부에서 나눈 논의를 요약하기 위해 이 주제를 생성합니다.

`smtp_should_reject`의 코드 경로가 올바르게 작동하지 않아서, 거부되지 말아야 할 상황에서 메일이 거부되고 있음을 확인했습니다.

구체적으로:

- 바운스 메시지 (null envelope-from을 가진)
- 불일치로 인한 전달된 메일 (빠른 거부 체크는 envelope-to를 사용했지만, Discourse는 To/CC 헤더를 사용함)

이것은 이 기능을 사용하는 셀프호스터들에게 문제를 일으켰습니다:

- [Seeing smtp\_should\_reject "400 bad request" failures on bounce processing - #14 by supermathie](https://meta.discourse.org/t/seeing-smtp-should-reject-400-bad-request-failures-on-bounce-processing/387431/14)
- [Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver - #482 by Carleas](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487/482)

이 코드를 유지보수할 의사가 없으므로, 이를 완전히 제거하는 것을 검토하고 있습니다.

Discourse PR:

> <https://github.com/discourse/discourse/pull/36033>
>
> I believe this code to be broken and likely preventing people's self-hosted
> inst…alls from processing any replies via email or bounces.

(이것은 엔드포인트를 제거하지 않습니다. 사람들의 설치 환경에서 여전히 해당 엔드포인트를 호출하려고 할 것이기 때문입니다. 대신 "거부하지 않음"으로 항상 반환하도록 변경합니다.)

mail-receiver PR:

> <https://github.com/discourse/mail-receiver/pull/33>
>
> This has been pointing to an endpoint in discourse
> core that has been broken fo…r at least 9 years
> (smtp\_should\_reject), we will remove this endpoint
> from core in a future release.
> 
> The protections in this fast rejection endpoint are
> done anyway when receiving mail in Discourse core.

---

_[View the full topic](https://meta.discourse.org/t/remove-smtp-should-reject-discourse-smtp-fast-rejection/389368)._
