이 문서는 Bitbucket에서 TLSv1.2 설정을 지원하는 방법에 대한 가이드를 작성한다.
증상
잘되던 메일 서버가 아래와 같이 에러 메시지가 발생한다.
- Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2
원인
사용하던 메일 서버가 TLS 버전을 업데이트 한것으로 추정됨.
해결책
Bitbucket Properties 에 다음을 추가한다. 이를 위해 다음 절차를 따른다.
- 서버에서 Bitbucket Home 디렉토리로 이동 혹은 홈의 /shared 디렉토리로 이동
- bitbucket.properties 편집 없을 경우 생성할 것
다음 mail.crypto.protocols 옵션을 추가
mail.crypto.protocols=TLSv1.2
Bitbucket 서버 재시작 후 메일 발송 확인