페이지 트리

버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

To set up a mail session for the Confluence distribution:

  1. Stop Confluence.
  2. Move (don't copymail-x.x.x.jar from <confluence-install>\confluence\WEB-INF\lib to <confluence-install>\lib (x.x.x. represents the version numbers on the jar files in your installation).
    Don't 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.

    펼치기
    title<CONFLUENCE_INSTALLATION>/conf/server.xml

    ...

    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
    <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
    <!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
    <Manager pathname=""/>
    <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>

    <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"
    />
    </Context>

    <Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0"
    reloadable="false" useHttpOnly="true">
    <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
    </Context>
    </Host>
    </Engine>

    ...


  3. Edit the <confluence-install>\conf\server.xml file and add the following at the end of the Confluence <context> tag, just before </Context>Note: you're editing the <context> tag that contains the Confluence context path, not the one that contains the Synchrony context path.

    <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"
    />
    

    Note: you're editing the <context> tag that contains the Confluence context path, not the one that contains the Synchrony context path.

  4. Restart Confluence.
  5. Go to  > General Configuration > Mail Servers.

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

     java:comp/env/mail/GmailSMTPServer
    


    Note that the JNDI Location is case sensitive and must match the resource name specified in server.xml.

  8. Save your changes and send a test email.