Uploaded image for project: 'EVSClient'
  1. EVSClient
  2. EVSCLT-810

Externalize the configuration of the mail server

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.12.0
    • Component/s: None
    • Labels:
      None
    • Account:
      Maintenance 2019 (MAINTENANCE2019)

      Description

      First,You need to modify the file Components.xml of EVSClient sources.
      Transform :

          <mail:mail-session host="localhost" port="25"/>


      into :

      <mail:mail-session session-jndi-name="java:jboss/mail" />

      After that, you need to create the resource associated with the jndi-name "java:jboss/mail" in the standalone.xml file of the jboss installation.

      <subsystem xmlns="urn:jboss:domain:mail:1.1">
      <!-- here below is the mail resource definition -->
                <mail-session jndi-name="java:jboss/mail">
                  <smtp-server ssl="TRUEORFALSE" outbound-socket-binding-ref="mail-smtp">
                      <login name="USERNAME" password="PASSWORD"/>
                  </smtp-server>
              </mail-session>
      </subsystem>

      Finally, modify the mail socket to redirect to your mail server.

      <outbound-socket-binding name="mail-smtp">
                <remote-destination host="HERE-YOUR-HOST" port="HERE-THE-PORT"/>
              </outbound-socket-binding

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marif Maxime ARIF
                Reporter:
                marif Maxime ARIF
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Potential Duplicates