# 이메일 재작업: test rake 작업 출력

**URL:** https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286
**Category:** Development
**Created:** [10월 31, 2025, 3:54오후 UTC](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286 "2025-10-31T15:54:44Z")
**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: [10월 31, 2025, 3:54오후 UTC](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286/1 "2025-10-31T15:54:45Z")

</div>

최근 이메일 작업(emails:task) 및 관련 코드를 검토하여 각 실패 코드 경로(failure codepath)를 테스트하고 오류 메시지를 다듬는 작업을 진행했습니다.

또한 `DISCOURSE_SMTP_ENABLE_START_TLS=false`를 설정했을 때의 효과가 (거의) 없음을 발견했습니다. 이 설정을 해도 STARTTLS가 실제로 비활성화되지 않았으며, 실제로는 연결 시 TLS(`DISCOURSE_SMTP_FORCE_TLS=true`)와 함께 문제없이 공존할 수 있었습니다.

따라서 다음과 같이 수정했습니다:

- 두 설정이 동시에 사용되지 못하도록 막던 코드를 제거했습니다: [FIX: remove validation check when using SMTP TLS-on-connect - discourse/discourse@0793898 - GitHub](https://github.com/discourse/discourse/pull/35634/commits/0793898fad60871f942c3baa752172268d1360ec)
- 요청 시 STARTTLS가 실제로 비활성화되도록 코드를 수정했습니다: [FIX: actually disable SMTP starttls if the user is attempting to disable it - discourse/discourse@e4f8b1f - GitHub](https://github.com/discourse/discourse/pull/35634/commits/e4f8b1f9efdb6f7ef9f5087be14f599ad8746230)
- 실패를 감지하는 코드를 다시 작성하고 관련 텍스트를 업데이트했습니다: [DEV: Refactor email checks to use error classes and more specific error messages - discourse/discourse@0043052 - GitHub](https://github.com/discourse/discourse/pull/35634/commits/00430529459ef0b189d7576678aeeed32f1a24ee)

이 PR을 병합하기 전에, `DISCOURSE_SMTP_ENABLE_STARTTLS=false`가 설정된 경우 대시보드에 관리자 경고를 표시하는 것이 적절하다고 생각합니다. 이 설정을 적용했지만 실제로는 불필요했으며, 여전히 STARTTLS에 의존하고 있는 셀프호스터(self-hoster)가 적어도 한 명은 있을 것으로 추정됩니다.

---

_[View the full topic](https://meta.discourse.org/t/reworking-the-emails-test-rake-task-output/387286)._
