5 Replies Latest reply on Aug 14, 2009 2:14 PM by Kevin Pei

    How to configure mail-service.xml for Exchanger Server worke

    Kevin Pei Newbie

      Hi, guys,

      There is another question.

      I am trying to configure mail-service.xml for Exchanger Server worked with JBoss 5.1. The thing is our company is not using SMTP protocal for our Exchange Server. It is using ActiveSync protocal.

      Thus, the settings of pop, smtp in JBoss mail-service.xml will not work.

      My question is how to configure the mail service for Exchange Server.

      Here is a template:

      -
      java:/Mail
      user
      password
      -
      - <!-- A test configuration -->
      -
      - <!-- Change to your mail server prototocol -->


      - <!-- Change to the user who will receive mail -->

      - <!-- Change to the mail server -->

      - <!-- Change to the SMTP gateway server -->

      - <!-- The mail server port -->

      - <!-- Change to the address mail will be from -->

      - <!-- Enable debugging output from the javamail classes -->



      jboss:service=Naming




      Thanks in advance, folks!

      Kevin

        • 1. Re: How to configure mail-service.xml for Exchanger Server w
          Kevin Pei Newbie


          java:/Mail
          user
          password

          <!-- A test configuration -->

          <!-- Change to your mail server prototocol -->


          <!-- Change to the user who will receive mail -->

          <!-- Change to the mail server -->

          <!-- Change to the SMTP gateway server -->

          <!-- The mail server port -->

          <!-- Change to the address mail will be from -->

          <!-- Enable debugging output from the javamail classes -->



          jboss:service=Naming

          • 2. Re: How to configure mail-service.xml for Exchanger Server w
            Kevin Pei Newbie

            I don't know why the forum couldn't show up the xml tags. Anyway...

            • 3. Re: How to configure mail-service.xml for Exchanger Server w
              jaikiran pai Master

              While posting logs or xml content or code, wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

              • 4. Re: How to configure mail-service.xml for Exchanger Server w
                Kevin Pei Newbie

                 

                <?xml version="1.0" encoding="UTF-8"?>
                <!-- $Id: mail-service.xml 62350 2007-04-15 16:50:12Z dimitris@jboss.org $ -->
                <server>
                
                 <!-- ==================================================================== -->
                 <!-- Mail Connection Factory -->
                 <!-- ==================================================================== -->
                
                 <mbean code="org.jboss.mail.MailService"
                 name="jboss:service=Mail">
                 <attribute name="JNDIName">java:/Mail</attribute>
                 <attribute name="User">kpei</attribute>
                 <attribute name="Password">password</attribute>
                 <attribute name="Configuration">
                 <!-- A test configuration -->
                 <configuration>
                 <!-- Change to your mail server prototocol -->
                 <property name="mail.store.protocol" value="pop3"/>
                 <property name="mail.transport.protocol" value="smtp"/>
                
                 <!-- Change to the user who will receive mail -->
                 <property name="mail.user" value=""/>
                
                
                 <!-- Change to the mail server -->
                 <property name="mail.pop3.host" value="abcsvr3.abcwireless.local"/>
                
                 <!-- Change to the SMTP gateway server -->
                 <property name="mail.smtp.host" value="abcsvr3.abcwireless.local"/>
                
                 <!-- The mail server port -->
                 <property name="mail.smtp.port" value=""/>
                
                 <!-- Change to the address mail will be from -->
                 <property name="mail.from" value="kpei@abcwireless.com"/>
                
                 <!-- Enable debugging output from the javamail classes -->
                 <property name="mail.debug" value="false"/>
                 </configuration>
                 </attribute>
                 <depends>jboss:service=Naming</depends>
                 </mbean>
                
                </server>




                • 5. Re: How to configure mail-service.xml for Exchanger Server w
                  Kevin Pei Newbie

                  My quick question is:

                  Can JBoss Mail Service work with Exchange Server(AcitveSync protocol)?

                  Thanks!