Bitbucket Server throws "Unrecognized SSL message, plaintext connection?" when sending test emails

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

Test emails cannot be sent.

atlassian-bitbucket.log: に次のメッセージが出力される。

WARN  [<http_thread>] <username> <session_id> <source_ip> "POST /admin/mail-server HTTP/1.1" c.a.s.i.w.a.MailServerConfigurationController Failed to send a test email message to <email_address>
com.atlassian.bitbucket.mail.MailSendException: Mail sending failed. Please verify the mail server configuration and check the logs for details
...
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: <hostname>, port: 587
...
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

原因

Bitbucket Server is attempting to connect to the mail server via SSL while the mail server is not configured with SSL.

ソリューション

  • Go to the administration area and click  Mail server (under 'Settings')
  • Select "SMTP" as protocol

  • Make sure that "587" or "25" is set as port. Port 465 was previously used for Secure SMTP (SMTPS), but it has now been deprecated.


最終更新日: 2023 年 10 月 17 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.