Confluence ディストリビューション用のメールセッションを設定する

お困りですか?

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

コミュニティに質問

The simplest way to set up a mail server through the Confluence Administration console. See Configuring a Server for Outgoing Mail.

さまざまなオプションまたはパラメーターを追加する場合、Confluence ディストリビューション用のメールセッションを設定することもできます。以下の例では、Gmail を設定します。

Confluence ディストリビューション用のメールセッションを設定する方法:

  1. Confluence を停止します。
  2. Move (don't copy) mail-x.x.x.jar from <confluence-install>/confluence/WEB-INF/lib to <confluence-install>/lib.
    Note: where x.x.x. represents the version numbers on the jar files in your installation. 
    Do not leave a renamed backup of the jar files in /confluence/WEB-INF/lib. Even with a different file name, the files will still be loaded as long as it remains in the directory
  3. Add the following to your server.xml file found in <confluence-install>/conf/ (add it just before the </Context> tag):

    For Confluence 3.5.x
    <Resource name="mail/GmailSMTPServer"
        auth="Container"
        type="javax.mail.Session"
        mail.smtp.host="smtp.gmail.com"
        mail.smtp.port="465"
        mail.smtp.auth="true"
        mail.smtp.user="yourEmailAddress@gmail.com"
        password="yourPassword"
        mail.smtp.starttls.enable="true"
        mail.transport.protocol="smtps"
        mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
    />
    
  4. Confluence を再起動します。
  5. Choose the cog icon , then choose General Configuration under Confluence Administration

  6. Choose Mail Servers.
  7. Choose either Edit an existing configuration, or Add a new SMTP mail server.
  8. Edit the server settings as necessary, and set the JNDI Location as:

         java:comp/env/mail/GmailSMTPServer
    


    JNDI の場所は、大文字と小文字を区別し、server.xml に指定したリソース名と一致する必要があることに注意してください。

  9. 変更を保存し、テスト メールを送信します。
最終更新日: 2015 年 12 月 2 日

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

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