0 Replies Latest reply on Jul 28, 2017 6:17 PM by delhibabu_r

    Jboss secondary mail configuration for failover

    delhibabu_r

      Hi Everyone,

       

       

      I have some doubts in mail configuration(EAP 6.4.9), Here is my scenario,

       

      1) I have 2 SMTP servers and need to configure them,
      2) There is only one JNDI added in application,
      3) The secondary SMTP should act only when primary SMTP is down,

       

      Mail configuration in domain.xml


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

                          <smtp-server outbound-socket-binding-ref="mail-smtp">

                              <login name="xx" password="yy"/>

                          </smtp-server>

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

                          <smtp-server outbound-socket-binding-ref="mail-smtp1">

                              <login name="xx" password="yy"/>

                          </smtp-server>

      .
      .

      <outbound-socket-binding name="mail-smtp">

                      <remote-destination host="xx.xx.xx.xx" port="25"/>

                  </outbound-socket-binding>

      <outbound-socket-binding name="mail-smtp1">

                      <remote-destination host="yy.yy.yy.yy" port="25"/>

                  </outbound-socket-binding>


      I think same JNDI cannot be registered in mail configuration but is there any way  to configure with above scenario without changing the JNDI name ?. Can I able to add two IP's for remote-destination host(<remote-destination host="yy.yy.yy.yy,xx.xx.xx.xx" port="25"/) ?

       

      Thanks in advance folks.

       

      -Delhibabu