설치 후 마음을 바꿔 결국 이메일을 사용하려고 한다면, app.yml에서 몇 줄이 누락된 것 같습니다.
Self-Hosting Discourse Just Got a Whole Lot Easier 이후로 방식이 어떻게 변했는지에 대해서는 잘 모르지만, 제 사이트에서는 app.yml에서 SMTP 세부 정보를 설정하는 방식은 변하지 않았습니다. 저라면 다음 명령을 실행해 보겠습니다.
cd /var/discourse
./discourse-doctor
그리고 이를 통해 문제를 해결할 수 있는지 확인하겠습니다. 그래도 해결되지 않는다면, 정상적으로 작동하는 사이트의 app.yml을 찾아 이메일 설정에 필요한 줄이 존재하고 올바른지 확인하는 데 참고 자료로 사용할 것입니다. 그런 파일이 없다면, 여기서 예시를 구할 수 있습니다:
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
This file has been truncated. show original
그 후 다시 빌드(rebuild)를 수행합니다.
이 모든 것이 어렵게 느껴진다면, 아직 늦지 않았다면 처음부터 다시 시작하여 SMTP 세부 정보를 처음부터 올바르게 입력하는 것도 방법입니다.