Skip to content

Yona 메일서버 설정

Suwon Chae edited this page Dec 11, 2016 · 13 revisions

요나는 기본적으로 메일서버가 활성화되어 있지 않다.

Gmail을 발송메일서버로 하는 방법

  1. ./yona/conf/application.conf 파일 수정하기
# Mailer
# ~~~~~~
# You have to configure SMTP to send mails.
# Example settings, it assume that you use gamil smtp
smtp.host = smtp.gmail.com
smtp.port = 465
smtp.ssl = true
smtp.user = yourGmailId
# Be careful!!! Not to leak password
smtp.password = "yourGmailPassword"
smtp.domain = gmail.com
#true to use mock mailer for testing, false for using real mail server
smtp.mock = true
# optional, size of mail archive for tests, default: 5
smtp.archive.size = 5

여기서 smtp.user = yourGmailId 에서 자기 gmail ID를 smtp.password = yourGmailPassword 에서 gmail 암호를 넣고, smtp.mock = false로 한 다음 저장하고 재시작하면 적용된다. (암호는 특수기호가 쓰이는 경우가 많으니 양쪽으로 따옴표를 붙이는걸 추천합니다/ )

  • 발견한 문제!!
  • 구글은 SMTP로 날리는 것을 보안관계상 안전하지 않은 앱이라고 한다. 관리자로 메일 발신해보면, 구글로 무시무시한 메일이 날아온다.
  • 그냥 가볍게 무시하고 https://support.google.com/accounts/answer/6010255?hl=ko 에서 허용해주면, 이후 잘 돌아간다.

직접 메일 서버를 운영하는 경우

해당 값을 메일서버에 맞게 운영하면 된다고 한다.

발신만을 목적으로 한다면, DNS에 등록해두고 로컬 sendmail로 돌려도 간다고 함.

Clone this wiki locally