# 메일링 리스트 모드에서 일부 게시물이 전송되지 않는 원인은?

**URL:** https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465
**Category:** Support
**Created:** [4월 4, 2023, 12:31오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465 "2023-04-04T00:31:06Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 12:31오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/1 "2023-04-04T00:31:06Z")

</div>

현재 자체 호스팅된 Discourse 릴리스에서, 메일링 리스트 모드로 모든 게시물을 이메일로 수신하도록 설정한 일부 사용자에게 게시물이 전송되지 않는 토픽들이 있습니다.

이메일 로그를 확인해 보니, 해당 토픽의 게시물에 대한 이메일이 일부 사용자에게는 전송되고 있지만, 모든 게시물 이메일 수신을 설정한 다른 사용자에게는 전송되지 않는 것을 확인했습니다. 제 테스트 사용자 계정 중 하나는 이메일을 받고 있지만, 다른 테스트 사용자는 받지 못하고 있습니다.

저와 다른 사용자 한 명 이상이 해당 토픽에 여러 번 게시물을 올렸습니다.

사이트나 사용자 설정에서 원인이 될 만한 항목을 찾지 못했는데, 제가 놓치고 있는 부분이 무엇일까요?

해당 게시물들은 다음과 같습니다:

```plaintext
  id | user_id | timezone
--------+---------+----------------------------
 119197 | 586 | 2023-04-03 11:05:41
 119198 | 2 | 2023-04-03 11:12:03.207053
 119215 | 2 | 2023-04-03 15:42:45.195223
 119216 | 2 | 2023-04-03 16:18:22.664227
 119218 | 508 | 2023-04-03 16:55:42.167977
 119219 | 2 | 2023-04-03 16:56:00.140777
 119222 | 2 | 2023-04-03 18:11:33.953314
(7 rows)

```

사용자 703에게 전송된 이메일들 (email\_logs 테이블 기준)

```plaintext
 id | post_id | email_type | timezone | smtp_transaction_response
-----+---------+--------------+----------------------------+--------------------------------------
 242 | 119197 | mailing_list | 2023-04-03 11:18:55.832126 | 250 2.0.0 Ok: queued as C95C443350B8
 243 | 119198 | mailing_list | 2023-04-03 11:22:04.731579 | 250 2.0.0 Ok: queued as B0E2943350B8
(2 rows)

```

해당 게시물들에 대해 전송된 모든 이메일:

```plaintext
 id | post_id | email_type | user_id | timezone | smtp_transaction_response
-----+---------+--------------+---------+----------------------------+--------------------------------------
 242 | 119197 | mailing_list | 703 | 2023-04-03 11:18:55.832126 | 250 2.0.0 Ok: queued as C95C443350B8
 243 | 119198 | mailing_list | 703 | 2023-04-03 11:22:04.731579 | 250 2.0.0 Ok: queued as B0E2943350B8
 276 | 119215 | mailing_list | 5 | 2023-04-03 15:52:47.834189 | 250 2.0.0 Ok: queued as B51B443350B8
 277 | 119216 | mailing_list | 5 | 2023-04-03 16:28:29.651872 | 250 2.0.0 Ok: queued as 8760743350B8
 281 | 119218 | mailing_list | 5 | 2023-04-03 17:05:43.582886 | 250 2.0.0 Ok: queued as 8209143350B8
 282 | 119219 | mailing_list | 5 | 2023-04-03 17:06:02.231359 | 250 2.0.0 Ok: queued as 201A243350B8
 287 | 119222 | user_replied | 508 | 2023-04-03 18:21:38.024441 | 250 2.0.0 Ok: queued as EDE47434362C
 288 | 119222 | mailing_list | 5 | 2023-04-03 18:21:38.074723 | 250 2.0.0 Ok: queued as 07474434362D
(8 rows)

```

사용자 ID 5는 다른 토픽에서 이 문제를 발견했을 때까지 복사 대상 사용자 목록에 추가되지 않았습니다.

이 문제는 오늘 생성된 거의 절반의 토픽/게시물에서 발생하고 있습니다. 이 시스템은 어제 방금 운영을 시작했는데, 테스트 단계에서는 이와 같은 현상을 확인하지 못했습니다.

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 3:18오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/2 "2023-04-04T03:18:10Z")

</div>

이 기능을 비활성화하려고 사용자당 하루 최대 이메일 수를 0으로 설정해 보았습니다. 이전에는 100으로 설정되어 있었는데, 이 수치에 도달했을 것 같지는 않거든요.

업데이트: 그렇게 해도 문제가 해결되지 않았습니다.

어딘가에 이메일을 보내지 않은 이유를 로그로 남겨야 하지 않나요?

---

<div class="post-metadata">

### Author: ![itimber](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@itimber](https://meta.discourse.org/u/itimber)
#### Post date: [4월 4, 2023, 3:33오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/3 "2023-04-04T03:33:38Z")

</div>

네: 설정 → 로그 → 오류 로그

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 3:40오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/4 "2023-04-04T03:40:00Z")

</div>

오류 로그에는 이 문제에 대한 내용이 없으며, 누락된 이메일이 발송되었어야 할 시점前后的 타임스탬프 근처에도 관련 기록이 없습니다.

이것이 Sidekiq 문제일 수 있을까요? 오늘 Sidekiq가 메모리를 너무 많이 사용한다는 메시지가 많이 떴습니다.

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 3:46오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/5 "2023-04-04T03:46:25Z")

</div>

주제가 혼란스러워지는 것 같습니다. 해당 주제에 있는 게시물이 이 사용자에게 전송되지 않으면, 이후의 게시물도 이 사용자에게 전송되지 않습니다.

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 4:30오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/6 "2023-04-04T04:30:42Z")

</div>

해당 사용자/토픽의 topic\_user.notification\_level이 0(음소거?)으로 설정되어 있는 것으로 보이며, 관리자 화면에서 이를 1로 되돌리는 방법은 없는 것 같습니다. 물론 rails로 처리할 수는 있겠지만요. 그런데 이 값은 어떻게 변경된 것일까요?

릴레이 서버로 전달되는 이메일에서 이를 억제하는 방법을 알아내기 전에 누군가가 이메일의 ‘구독 취소’ 링크를 클릭한 결과일 수 있을까요? 그렇다면 이를 되돌릴 수 있는 방법이 있어야 하지 않을까요?

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 4:42오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/7 "2023-04-04T04:42:00Z")

</div>

영향받은 두 주제에서 모든 태그를 제거하거나 알림 설정을 muted(음소거) 이외의 값으로 변경해도 topic\_users 테이블이 변경되지 않은 것 같습니다.

해당 사용자의 프로필에서 음소거된 주제 목록에는 아무것도 표시되지 않습니다.

모든 주제를 일괄 변경하고 싶지는 않은데, topic\_users 테이블에서 notification\_level 값의 분포는 다음과 같습니다:

```plaintext
 notification_level | count
--------------------+--------
                  0 | 2
                  1 | 177
                  2 | 45
                  3 | 119818

```

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 5:05오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/8 "2023-04-04T05:05:22Z")

</div>

좋아, 드디어 해당 사용자의 특정 주제들을 음소거 해제할 방법을 찾았어요!

해당 사용자의 추적 페이지 왼쪽 열에 있는 음소거 상자 위에 ‘show’ 태그가 있다는 걸 알아야 했어요.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [4월 4, 2023, 5:14오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/9 "2023-04-04T05:14:24Z")

</div>

그들이 일부러 해당 주제를 음소거하고 알림/이메일을 받지 않으려고 한 것은 아닐까요?

---

<div class="post-metadata">

### Author: ![MikeNolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikenolan/32/297597_2.png) [@MikeNolan](https://meta.discourse.org/u/MikeNolan)
#### Post date: [4월 4, 2023, 5:15오전 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/10 "2023-04-04T05:15:25Z")

</div>

아니요. 왜냐하면 그것은 본질적으로 제가 특정 그룹의 게시물을 외부 레거시 메일링 리스트로 전달하기 위해 특별히 설정한 스태프 계정이었기 때문입니다. 그리고 제 기억에 의하면, 저는 해당 주제에서 그 사용자를 의도적으로 음소거한 적이 없습니다.

하지만 적어도 데이터 구조에 대해 많이 배우고, 일부 Ruby 코드를 읽어보며, 관리자로서 몇 가지 새로운 것을 배울 수 있었습니다. 😉

이 주제에 대한 토론은 이제 마무리해도 될 것 같습니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 10, 2023, 1:04오후 UTC](https://meta.discourse.org/t/what-would-cause-some-posts-not-to-be-sent-out-in-mailing-list-mode/260465/12 "2023-06-10T13:04:11Z")

</div>


