# 발신자 이메일 주소에 특정 형식이 필요합니다

**URL:** https://meta.discourse.org/t/specific-format-required-for-from-email-address/283154
**Category:** Self-hosting
**Tags:** email
**Created:** [10월 23, 2023, 5:55오후 UTC](https://meta.discourse.org/t/specific-format-required-for-from-email-address/283154 "2023-10-23T17:55:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nikola\_Mitrovic](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikola_mitrovic/32/335079_2.png) [@Nikola\_Mitrovic](https://meta.discourse.org/u/Nikola_Mitrovic)
#### Post date: [10월 23, 2023, 5:55오후 UTC](https://meta.discourse.org/t/specific-format-required-for-from-email-address/283154/1 "2023-10-23T17:55:03Z")

</div>

제 팀의 SMTP 제공업체는 발신자 주소를 Mailbox 형식(`Name <example@domain.com>`)으로 포맷하도록 요구합니다. 그렇지 않으면 ./discourse-doctor를 사용하여 이메일 전송을 테스트할 때 SMTP 서버에서 다음 오류가 발생합니다.  
554 error: from\_field\_is\_not\_present  
로그인 자격 증명이 유효하고 SMTP 서버 연결이 올바르게 설정되었음을 이미 확인했습니다.

app.yml 파일에서 DISCOURSE\_NOTIFICATION\_EMAIL을 다음과 같이 설정해 보았습니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/5/4/65442e0062a6a42c56b49af275378a56f8cb6304.png)

컨테이너가 재빌드된 후 최종 환경 변수는 다음과 같습니다:

`DISCOURSE_NOTIFICATION_EMAIL="Hiveologie <happenings@hello.hiveologie.com>"`

다시 ./discourse-doctor 이메일 테스트를 실행하면 발신자 이메일 주소가 누락된 것으로 파싱되어 다음 메시지와 함께 실패합니다.

```plaintext
Sending to `nikola@hiveologie.com`. . .
Sending mail failed.
SMTP From address may not be blank: nil

```

현재 버전의 Discourse가 알림을 전송할 때 이러한 이메일 형식을 파싱할 수 있나요? 아니면 app.yml 파일에서 환경 변수를 설정할 때 공백 문자를 올바르게 이스케이프하는 방법이나, 단일 및 이중 따옴표의 순서 등 제가 놓친 부분이 있는 것인가요?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [10월 23, 2023, 8:59오후 UTC](https://meta.discourse.org/t/specific-format-required-for-from-email-address/283154/2 "2023-10-23T20:59:35Z")

</div>

> [@Nikola\_Mitrovic](#):
>
> 제 팀의 SMTP 제공업체는 발신자 주소가 메일박스 형식(`Name <example@domain.com>`)으로 포맷되어야 하며, 그렇지 않으면 ./discourse-doctor를 사용하여 이메일 전송을 테스트할 때 SMTP 서버가 다음 오류를 발생시킵니다:

그렇다면 다른 SMTP 제공업체를 사용하거나 Discourse에서 SMTP 설정을 오버라이드하는 방법을 찾아야 합니다. 플러그인으로 가능할 것 같지만, 쉽지 않을 것입니다.
