SSLの '530 5.7.0 Must issue a STARTTLS command first' Due to 'mail.smtp.starttls.enable' プロパティ経由で SMTP サーバーでメールを送信できない

お困りですか?

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

コミュニティに質問

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

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

症状

When sending a test email via an SSL connection (configured as a JNDI resource), mail won't be sent and the following error message is displayed:

com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException:
530 5.7.0 Must issue a STARTTLS command first.

環境

Jira Server/Data Center on any version from 8.0.0.

原因

In the JNDI SMTP resource configuration, mail.smtp.starttls.enable isn't turned on.

ソリューション


JIRA 4.4 and earlier - Click here to expand...
  1. Double check if "JNDI Location" is specified in SMTP Server Setup
  2. Edit <JIRA_Installation_Home>/conf/server.xml (Standalone) or <Catalina_Home>/conf/server.xml (Ear/War)
  3. In the SmtpServer resource section, set mail.smtp.starttls.enable as "true" and configure mail.smtp.socketFactory.class property. A resource configuration sample is shown as below:


<Resource name="mail/SmtpServer"
    auth="Container"
    type="javax.mail.Session"
    mail.smtp.host="mail.mycompany.com"
    mail.smtp.port="587"
    mail.smtp.auth="true"
    mail.smtp.user="jira@mycompany.com"
    password="mypassword"
    mail.smtp.starttls.enable="true"
    mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>



最終更新日 2024 年 9 月 12 日

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

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