# 📬 valid\_recipients 구현 후 반복되는 Postfix 경고 및 연결

**URL:** <https://meta.discourse.org/t/repeated-postfix-warnings-and-connections-after-valid-recipients-implementation/375427>\
**Category:** Product Support\
**Tags:** mail-receiver\
**Created:** [7월 23, 2025, 12:51오후 UTC](https://meta.discourse.org/t/repeated-postfix-warnings-and-connections-after-valid-recipients-implementation/375427 "2025-07-23T12:51:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [7월 23, 2025, 12:51오후 UTC](https://meta.discourse.org/t/repeated-postfix-warnings-and-connections-after-valid-recipients-implementation/375427/1 "2025-07-23T12:51:28Z")

</div>

[Email receive issue](https://meta.discourse.org/t/email-receive-issue/374615/25?u=ethsim2)에서의 토론을 이어서 말씀드립니다:

`postfix/valid_recipients`를 통해 `valid_recipients` 필터링을 구현하고 `/etc/postfix/valid_recipients` 파일을 채웠습니다. 이후 약 6분마다 반복되는 경고와 수신 연결 시도가 발생하고 있습니다. 다음은 로그의 일부(개인정보 비공개 처리됨)입니다.

* * *

### ⚠ **정확한 로그 출력 내용**

```plaintext
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: warning: /etc/postfix/valid_recipients, line 1: expected format: key whitespace value -- ignoring this line
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: warning: /etc/postfix/valid_recipients, line 2: expected format: key whitespace value -- ignoring this line
...
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: warning: /etc/postfix/valid_recipients, line 16: expected format: key whitespace value -- ignoring this line

```

이러한 경고는 인증되지 않은 연결 시도와 일치하여 **몇 분마다** 나타납니다. 예시:

```plaintext
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: warning: hostname unassigned.quadranet.com does not resolve to address 198.55.98.3
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: connect from unknown[198.55.98.3]
Jul 23 05:13:40 ubuntu-mail-receiver postfix/smtpd[2265]: disconnect from unknown[198.55.98.3] ehlo=1 auth=0/1 quit=1 commands=2/3

```

이 동일한 패턴이 1시간 동안 수십 번의 사이클에 걸쳐 `198.55.98.3`에서 반복되고 있습니다.

* * *

### ✅ legitimate한 메일은 정상 통과

참고로, legitimate한 전달(예: Microsoft 365에서 온 메일)은 정상적으로 작동하고 있습니다:

```plaintext
Jul 23 05:46:53 ubuntu-mail-receiver postfix/smtpd[2290]: connect from mail-uksouthazon11020141.outbound.protection.outlook.com[52.101.196.141]
Jul 23 05:46:54 opendkim[25]: D3D4A1BF983: DKIM verification successful
Jul 23 05:46:54 opendmarc[40]: D3D4A1BF983: MYDOMAINNAME.com pass
Jul 23 05:46:54 ubuntu-mail-receiver postfix/pipe[2296]: to=<person.REDACTED@discourse.MYDOMAINNAME.com>, relay=discourse, status=sent (delivered via discourse service)

```

* * *

### ❓ 질문

1. `/etc/postfix/valid_recipients` 경고가 반복적인 연결을 유발하는 원인이 될 수 있나요?
2. 파일 형식이 잘못되었을 경우 Postfix가 해당 항목에서 루프를 돌릴 것으로 예상해야 하나요?
3. 안정성을 테스트하기 위해 `check_recipient_access`를 일시적으로 비활성화하는 것을 권장하시나요?
4. Discourse의 `mail-receiver` 컨테이너와 함께 사용되는 `valid_recipients` 파일의 권장 예시가 있을까요?

* * *

🧩 제 `main.cf` 라인 (참고용)

```plaintext
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/valid_recipients, reject

```

여기서 조언을 정말로 듣고 싶습니다. 미리 감사합니다!

---

_[View the full topic](https://meta.discourse.org/t/repeated-postfix-warnings-and-connections-after-valid-recipients-implementation/375427)._
