# 이메일 설정 오류: Job exception: Net::SMTPAuthenticationError

**URL:** https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541
**Category:** Self-hosting
**Tags:** email
**Created:** [5월 10, 2024, 11:28오전 UTC](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541 "2024-05-10T11:28:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [5월 10, 2024, 11:28오전 UTC](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541/1 "2024-05-10T11:28:15Z")

</div>

분명히 이건 내 이메일 설정과 관련이 있을 것 같습니다. 저는 현재 Digital Ocean의 드롭렛으로 자체 Discourse 인스턴스를 설정하는 법을 배우고 있습니다. 인스턴스는 설정이 완료되었으며 [jordanviolet.dev](https://jordanviolet.dev)에서 접근할 수 있습니다.

트러블슈팅 문서를 확인해 보았지만 해결하지 못했습니다:

> [@Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326):
>
> You just installed Discourse via [the install guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL.md), but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. cry Let’s troubleshootize! Try the doctor woman_health_workerIf you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first. Did you enter email settings correctly? The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…

저는 Google Workspace(gmail) 계정을 이메일 제공자로 사용하려고 합니다. 제 SMTP 이메일 설정은 다음과 같습니다:

```yml
## TODO: 초기 가입 시 관리자 및 개발자로 설정될 쉼표로 구분된 이메일 목록
  ## 예: 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'jordan@violetfamily.com'

  ## TODO: 새 계정을 검증하고 알림을 보내는 데 사용되는 SMTP 메일 서버
  # SMTP 주소, 사용자 이름, 비밀번호가 필요합니다.
  # 경고: SMTP 비밀번호의 '#' 문자는 문제를 일으킬 수 있습니다!
  DISCOURSE_SMTP_ADDRESS: smtp-relay.gmail.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: myemail@violetfamily.com
  DISCOURSE_SMTP_PASSWORD: "myemailpassword"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true # (선택 사항, 기본값: true)
  DISCOURSE_SMTP_DOMAIN: violetfamily.com
  DISCOURSE_NOTIFICATION_EMAIL: jordan@violetfamily.com

  ## Lets Encrypt 템플릿을 추가했다면, 무료 SSL 인증서를 받으려면 아래 주석을 해제하세요
  LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

```

또한 Google의 SMTP 릴레이 관련 문서를 올바르게 따랐다고 생각합니다:

> **[Route outgoing SMTP relay messages through Google  |  Gmail  |  Google...](https://knowledge.workspace.google.com/admin/gmail/advanced/route-outgoing-smtp-relay-messages-through-google?hl=en&fl=1&sjid=11368727792802429654-NC&visit_id=639247153788241529-4027781138&rd=1)**

Workspace \> Gmail \> 라우팅 설정에서 확인한 제 설정은 다음과 같습니다:

 ![chrome_92MFXRR4Cw](https://global.discourse-cdn.com/meta/original/4X/9/b/e/9bef3aafd655b61e5f4409636ceacfd0f48b334b.png)  
 ![chrome_RoQrSfq4nG](https://global.discourse-cdn.com/meta/original/4X/f/b/a/fbad5477f185137b06235b1463353c2247c64b04.png)

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [5월 11, 2024, 4:40오전 UTC](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541/2 "2024-05-11T04:40:11Z")

</div>

이 문제를 겪고 계신 분들을 위해, 해결책은 Google Workspace와 이메일을 보내고자 하는 개인 계정 모두에서 보안이 낮은 앱 허용을 활성화하는 것이었습니다.

해당 주제의 4단계:

> [@Google Workspace를 SMTP 릴레이로 구성하기](https://meta.discourse.org/t/configure-google-workspace-as-a-smtp-relay/237662):
>
> e_mail1. Purchase the Google Workspace service I recommend the Business Standard package. The password of the e-mail account you created will be sent to the account you used when purchasing the package at Google Workspace. 2. Configure Google Workspace MX Name/Host/Alias Time to Live (TTL\*) Record Type Priority Value/Answer/Destination @ or leave blank 3600 MX 1 [ASPMX.L.GOOGLE.COM](http://ASPMX.L.GOOGLE.COM) @ or leave blank 3600 MX 5 [ALT1.ASPMX.L.GOOGLE.COM](http://ALT1.ASPMX.L.GOOGLE.COM) @ or leave blank 3600 MX 5 [ALT2.ASPMX.L.GOOGL…](http://ALT2.ASPMX.L.GOOGLE.COM)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6월 10, 2024, 4:40오전 UTC](https://meta.discourse.org/t/issue-with-setting-up-email-job-exception-net-smtpauthenticationerror/307541/3 "2024-06-10T04:40:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
