12 Replies Latest reply on Feb 14, 2018 2:50 AM by seetharaman Ayyanar

    MAPI Email Configuration

    seetharaman Ayyanar

      Dears.

       

      I have configured Outlook 2013 client on my development AR server and have configured Incoming MAPI mailbox in AR System Email Mailbox Configuration form. My email engine is working fine and has started successfully. However, I am not able to receive emails from Outlook to Remedy. When I send emails from my personal Outlook to the Outlook configured in server, I can see the below error in log but emails falling into the outlook inbox.

       

       

      Error:

      <EML> /* Wed Feb 07 2018 12:17:48.995 */ File already created

      <EML> /* Wed Feb 07 2018 12:17:49.041 */ Checking connection to server: ITSMAPPDEV. ...

      <EML> /* Wed Feb 07 2018 12:17:49.041 */ Application has started Version: 9.1 04 201711272256

      <EML> /* Wed Feb 07 2018 12:17:49.041 */ Using RMI Port 1100

      <EML> /* Wed Feb 07 2018 12:17:49.041 */ Using JRE: 1.8.0_161

      <EML> /* Wed Feb 07 2018 12:17:49.505 */ Successfully connected at Feb 7, 2018 12:17:49 PM

      <EML> /* Wed Feb 07 2018 12:17:50.709 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://incoming/ARSystem_Inbound]

      <EML> /* Wed Feb 07 2018 12:17:50.709 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://outgoing/ARSystem_Outbox]

      <EML> /* Wed Feb 07 2018 12:19:15.268 */ Received event for activating {ITSMAPPDEV., com.bmc.arsys.emaildaemon://incoming/ARSystem_Inbound}

      <EML> /* Wed Feb 07 2018 12:19:15.268 */ Activating service provider: [incoming/ARSystem_Inbound]

      <EML> /* Wed Feb 07 2018 12:19:15.299 */ Successfully activated service provider: [incoming/ARSystem_Inbound]

      <EML> /* Wed Feb 07 2018 12:19:15.299 */ Received event for activating {ITSMAPPDEV., com.bmc.arsys.emaildaemon://outgoing/ARSystem_Outbox}

      <EML> /* Wed Feb 07 2018 12:19:15.299 */ Activating service provider: [outgoing/ARSystem_Outbox]

      <EML> /* Wed Feb 07 2018 12:19:15.325 */ Successfully activated service provider: [outgoing/ARSystem_Outbox]

      <EML> <TID: 36> <SEVERE > <LoggingModule> /* Wed Feb 07 2018 12:19:15.568 */ Could not connect to Email Profile Name :Outlook . Email ID:

      <EML> <TID: 36> <SEVERE > <javax.mail.Session> /* Wed Feb 07 2018 12:19:15.568 */ mapistore . Email ID:

       

      AR Version: Remedy 9.0.4

       

      Please can anyone assist on this?

       

      Regards,

      Ram

        • 1. Re: MAPI Email Configuration
          seetharaman Ayyanar

          Dears,

           

          Just Highlight more,

           

          Following steps are implemented already.

           

          1- Extract the 32 bit binaries of the Email Engine:

          This can be done extracting from the installer: \ARSuiteKitWindows8.1.02\Disk1\files\a25dcdc7b751.zip

          The file names are:

          - aremaild.exe

          - emaild.exe

          2- Place the above files under AREmail folder replacing the existing 64 bit binaries (we can also rename the 64 bit binaries in case we want to keep them).

          3- We need to modify the Windows Registry:

          HKEY_LOCAL_MACHINE – SYSTEM – CurrentControlSet – Services -> BMC Remedy Email Engine

          ImagePath: Path of new aremaild.exe

          HKEY_LOCAL_MACHINE – SYSTEM – CurrentControlSet – Services -> BMC Remedy Email Engine – Parameters

          JVM Library: <path of jvm.dll of 32 bit java>

          4- We set the Windows Environment variables:

          Right click My Computer -> Properties -> Environment Variables -> java path – Mentioned 32 bit java path and then 64 bit path.

          5-Should login with Email account to the Remedy application server, change the log on to “Email account” and restart the email services.

           

          Regards,

          Ram

          • 2. Re: MAPI Email Configuration
            seetharaman Ayyanar

            log on debug mode.

             

            <EML> /* Wed Feb 07 2018 13:04:53.787 */ File already created

            <EML> /* Wed Feb 07 2018 13:04:53.835 */ Application has started Version: 9.1 04 201711272256

            <EML> /* Wed Feb 07 2018 13:04:53.835 */ Using RMI Port 1100

            <EML> /* Wed Feb 07 2018 13:04:53.835 */ Using JRE: 1.8.0_161

            <EML> /* Wed Feb 07 2018 13:04:53.836 */ Checking connection to server: ITSMAPPDEV ...

            <EML> /* Wed Feb 07 2018 13:04:54.297 */ Successfully connected at Feb 7, 2018 1:04:54 PM

            <EML> /* Wed Feb 07 2018 13:04:55.516 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://incoming/ARSystem_Inbound]

            <EML> /* Wed Feb 07 2018 13:06:15.312 */ Received event for activating {ITSMAPPDEV, com.bmc.arsys.emaildaemon://incoming/ARSystem_Inbound}

            <EML> /* Wed Feb 07 2018 13:06:15.312 */ Activating service provider: [incoming/ARSystem_Inbound]

            <EML> /* Wed Feb 07 2018 13:06:15.342 */ Successfully activated service provider: [incoming/ARSystem_Inbound]

            DEBUG: JavaMail version 1.5.6

            DEBUG: successfully loaded file: C:\Program Files (x86)\Java\jre1.8.0_161\lib\javamail.providers

            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/emaildaemon.jar!/META-INF/javamail.providers

            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/emaildaemon.jar!/META-INF/javamail.providers

            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/imap.jar!/META-INF/javamail.providers

            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/imap.jar!/META-INF/javamail.providers

            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.providers

            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.providers

            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/pop3.jar!/META-INF/javamail.providers

            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/pop3.jar!/META-INF/javamail.providers

            DEBUG: successfully loaded resource: /META-INF/javamail.default.providers

            DEBUG: Tables of loaded providers

            DEBUG: Providers Listed By Class Name: {com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], gnu.mail.providers.mbox.MboxStore=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,support@bmc.com], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.bmc.mail.mapi.MAPITransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,support@bmc.com], com.bmc.mail.mapi.MAPIStore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]}

            DEBUG: Providers Listed By Protocol: {mbox=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,dog@gnu.org], mapitransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,mapi@bmc.com], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], mapistore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,mapi@bmc.com], imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}

            DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map

            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.address.map

            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.address.map

            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,mapi@bmc.com]

            DEBUG: Exception loading provider, THROW:

            java.lang.reflect.InvocationTargetException

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at javax.mail.Session.getService(Session.java:821)

            at javax.mail.Session.getStore(Session.java:595)

            at javax.mail.Session.getStore(Session.java:558)

            at javax.mail.Session.getStore(Session.java:537)

            at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

            at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

            at java.lang.Thread.run(Unknown Source)

            Caused by: java.lang.UnsatisfiedLinkError: D:\Program Files\BMC Software\ARSystem\AREmail\armapi91_build003.dll: Can't find dependent libraries

            at java.lang.ClassLoader$NativeLibrary.load(Native Method)

            at java.lang.ClassLoader.loadLibrary0(Unknown Source)

            at java.lang.ClassLoader.loadLibrary(Unknown Source)

            at java.lang.Runtime.loadLibrary0(Unknown Source)

            at java.lang.System.loadLibrary(Unknown Source)

            at com.bmc.mail.mapi.MAPINative.<clinit>(MAPINative.java:20)

            at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

            ... 13 more

            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,mapi@bmc.com]

            DEBUG: Exception loading provider, THROW:

            java.lang.reflect.InvocationTargetException

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at javax.mail.Session.getService(Session.java:821)

            at javax.mail.Session.getStore(Session.java:595)

            at javax.mail.Session.getStore(Session.java:558)

            at javax.mail.Session.getStore(Session.java:537)

            at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

            at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

            at java.lang.Thread.run(Unknown Source)

            Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.bmc.mail.mapi.MAPINative

            at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

            ... 13 more

            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,mapi@bmc.com]

            DEBUG: Exception loading provider, THROW:

            java.lang.reflect.InvocationTargetException

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at javax.mail.Session.getService(Session.java:821)

            at javax.mail.Session.getStore(Session.java:595)

            at javax.mail.Session.getStore(Session.java:558)

            at javax.mail.Session.getStore(Session.java:537)

            at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

            at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

            at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

            at java.lang.Thread.run(Unknown Source)

            Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.bmc.mail.mapi.MAPINative

            at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

            ... 13 more

            <EML> <TID: 36> <SEVERE > <LoggingModule> /* Wed Feb 07 2018 13:08:15.623 */ Could not connect to Email Profile Name :Outlook . Email ID:

            <EML> <TID: 36> <SEVERE > <javax.mail.Session> /* Wed Feb 07 2018 13:08:15.623 */ mapistore . Email ID:

             

            Regards,

            Ram

            • 3. Re: MAPI Email Configuration
              Harish Saitwal

              Please find below thread

               

              Facing java.lang.UnsatisfiedLinkError in creation of Java API

               

              HTH to find missing libraries.

               

              Regards,

              Harish Saitwal

              • 4. Re: MAPI Email Configuration
                Ravindrakumar Rodge

                Looks like the mapi binaries are missing or might not be of correct version.

                 

                D:\Program Files\BMC Software\ARSystem\AREmail\armapi91_build003.dll: Can't find dependent libraries

                 

                - The best way is to have the AREmail folder copied from a working environment and place it in non-working environment.

                 

                - Take backup of the emaildaemon.properties file and then place it once you copy the AREmail folder from working to non-working.

                 

                In precise way,

                - Take backup of emaildaemon.properties file.

                - Replace the AREmail folder by copying it from working environment to non-working environment.

                - Replace the emaildaemon.properties  file with the 1 that is backed up in step 1.

                - Reconfigure the outlook profile (Control Panel -> mail -> create new profile)

                - Re-Configure MAPI profile in AR System Mailbox Configuration Form.

                - Start the services and check.

                 

                Regards,

                Ravi

                • 5. Re: MAPI Email Configuration
                  seetharaman Ayyanar

                  Dear Ravi,

                   

                  Just for the information, . This is the fresh serve and have no issue with outgoing email (Message Type - SMTP) from the same email engine service. I am getting this error only for the MAPI inbound email configuration.

                   

                  Regards,

                  Ram

                  • 6. Re: MAPI Email Configuration
                    Ravindrakumar Rodge

                    I never mentioned anything about SMTP (outgoing) in my post. Every protocol that email engine uses has different jar files and dependencies that are usually present under the AREmail folder. The debug logs that you posted has a error that talks about unsatisfiedLinkError.

                     

                    DEBUG: Exception loading provider, THROW:

                    java.lang.reflect.InvocationTargetException

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

                    at java.lang.reflect.Constructor.newInstance(Unknown Source)

                    at javax.mail.Session.getService(Session.java:821)

                    at javax.mail.Session.getStore(Session.java:595)

                    at javax.mail.Session.getStore(Session.java:558)

                    at javax.mail.Session.getStore(Session.java:537)

                    at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

                    at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

                    at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

                    at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

                    at java.lang.Thread.run(Unknown Source)

                    Caused by: java.lang.UnsatisfiedLinkError: D:\Program Files\BMC Software\ARSystem\AREmail\armapi91_build003.dll: Can't find dependent libraries

                    at java.lang.ClassLoader$NativeLibrary.load(Native Method)

                    at java.lang.ClassLoader.loadLibrary0(Unknown Source)

                    at java.lang.ClassLoader.loadLibrary(Unknown Source)

                    at java.lang.Runtime.loadLibrary0(Unknown Source)

                    at java.lang.System.loadLibrary(Unknown Source)

                    at com.bmc.mail.mapi.MAPINative.<clinit>(MAPINative.java:20)

                    at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

                    ... 13 more

                     

                    That error is referring to the file that your MAPI profile would require in order to work properly.

                    - Permissions are another concerns (the AREmail folder must have RWX permissions).

                     

                    Another error that I saw is:

                    Could not connect to Email Profile Name :Outlook . Email ID:

                     

                    For this you need to have the outlook profile configured with the user with which you are trying to start the Email Engine services.

                     

                     

                    Hope this helps.

                     

                    Regards,

                    Ravi

                    • 7. Re: MAPI Email Configuration
                      seetharaman Ayyanar

                      Dear Ravi,

                       

                      Thanks for the quick response.

                       

                      Yes. I logged into the AR System as the Email account user which Installed the outlook client 2013,created the profile and set the Service log on as too.

                      Please highlight, If something wrong with the above.

                       

                      Your response is highly appreciated to solve this issue.

                       

                      Regards,

                      Ram

                      • 8. Re: MAPI Email Configuration
                        seetharaman Ayyanar

                        Dear Ravi,

                         

                        Thanks for the detailed steps. I have followed the below steps but still I am getting same error.

                         

                        - Took backup of emaildaemon.properties file.

                        - Replace the AREmail folder by copying it from working environment to non-working environment.

                        - Replace the emaildaemon.properties  file with the 1 that is backed up in step 1.

                        - Reconfigure the outlook profile (Control Panel -> mail -> create new profile)

                        - Re-Configure MAPI profile in AR System Mailbox Configuration Form.

                        - Took the back up of 64 bit binaries and placed the 32 bit binaries of the Email Engine

                        - Start the services and check.

                         

                        Regards,

                        Ram

                        • 9. Re: MAPI Email Configuration
                          Ravindrakumar Rodge

                          Can you get incoming modules FINEST level logging to see what is happening.

                           

                          KnowledgeArticle - BMC

                           

                          Thanks.

                           

                          Regards,

                          Ravi

                          • 10. Re: MAPI Email Configuration
                            seetharaman Ayyanar

                            Dear Ravi,

                             

                            Thanks for supporting me.

                             

                            Could you please check the below log and let me know this is useful or not.

                             

                            <EML> /* Thu Feb 08 2018 15:18:32.117 */ File already created

                            <EML> /* Thu Feb 08 2018 15:18:32.170 */ Application has started Version: 9.1 04 201711272256

                            <EML> /* Thu Feb 08 2018 15:18:32.170 */ Using RMI Port 1100

                            <EML> /* Thu Feb 08 2018 15:18:32.170 */ Using JRE: 1.8.0_161

                            <EML> /* Thu Feb 08 2018 15:18:32.172 */ Checking connection to server: ITSMAPPDEV.mydzit.gov.sa ...

                            <EML> /* Thu Feb 08 2018 15:18:32.658 */ Successfully connected at Feb 8, 2018 3:18:32 PM

                            <EML> /* Thu Feb 08 2018 15:18:33.768 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://incoming/ARTest_Inbound]

                            <EML> /* Thu Feb 08 2018 15:20:03.750 */ Received event for activating {ITSMAPPDEV.mydzit.gov.sa, com.bmc.arsys.emaildaemon://incoming/ARTest_Inbound}

                            <EML> /* Thu Feb 08 2018 15:20:03.750 */ Activating service provider: [incoming/ARTest_Inbound]

                            <EML> /* Thu Feb 08 2018 15:20:03.773 */ Successfully activated service provider: [incoming/ARTest_Inbound]

                            DEBUG: JavaMail version 1.5.6

                            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/emaildaemon.jar!/META-INF/javamail.providers

                            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/emaildaemon.jar!/META-INF/javamail.providers

                            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/imap.jar!/META-INF/javamail.providers

                            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/imap.jar!/META-INF/javamail.providers

                            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.providers

                            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.providers

                            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/pop3.jar!/META-INF/javamail.providers

                            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/pop3.jar!/META-INF/javamail.providers

                            DEBUG: successfully loaded resource: /META-INF/javamail.default.providers

                            DEBUG: Tables of loaded providers

                            DEBUG: Providers Listed By Class Name: {com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], gnu.mail.providers.mbox.MboxStore=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,support@bmc.com], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.bmc.mail.mapi.MAPITransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,support@bmc.com], com.bmc.mail.mapi.MAPIStore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]}

                            DEBUG: Providers Listed By Protocol: {mbox=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,support@bmc.com], mapitransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,support@bmc.com], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], mapistore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com], imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]}

                            DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map

                            DEBUG: URL jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.address.map

                            DEBUG: successfully loaded resource: jar:file:/D:/Program%20Files/BMC%20Software/ARSystem/AREmail/smtp.jar!/META-INF/javamail.address.map

                            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com]

                            DEBUG: Exception loading provider, THROW:

                            java.lang.reflect.InvocationTargetException

                            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

                            at java.lang.reflect.Constructor.newInstance(Unknown Source)

                            at javax.mail.Session.getService(Session.java:821)

                            at javax.mail.Session.getStore(Session.java:595)

                            at javax.mail.Session.getStore(Session.java:558)

                            at javax.mail.Session.getStore(Session.java:537)

                            at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

                            at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

                            at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

                            at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

                            at java.lang.Thread.run(Unknown Source)

                            Caused by: java.lang.UnsatisfiedLinkError: D:\Program Files\BMC Software\ARSystem\AREmail\armapi91_build003.dll: Can't find dependent libraries

                            at java.lang.ClassLoader$NativeLibrary.load(Native Method)

                            at java.lang.ClassLoader.loadLibrary0(Unknown Source)

                            at java.lang.ClassLoader.loadLibrary(Unknown Source)

                            at java.lang.Runtime.loadLibrary0(Unknown Source)

                            at java.lang.System.loadLibrary(Unknown Source)

                            at com.bmc.mail.mapi.MAPINative.<clinit>(MAPINative.java:20)

                            at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

                            ... 13 more

                            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com]

                            DEBUG: Exception loading provider, THROW:

                            java.lang.reflect.InvocationTargetException

                            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

                            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

                            at java.lang.reflect.Constructor.newInstance(Unknown Source)

                            at javax.mail.Session.getService(Session.java:821)

                            at javax.mail.Session.getStore(Session.java:595)

                            at javax.mail.Session.getStore(Session.java:558)

                            at javax.mail.Session.getStore(Session.java:537)

                            at com.bmc.arsys.emaildaemon.MBConnection.openStore(MBConnection.java:478)

                            at com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:2535)

                            at com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:537)

                            at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:298)

                            at java.lang.Thread.run(Unknown Source)

                            Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.bmc.mail.mapi.MAPINative

                            at com.bmc.mail.mapi.MAPIStore.<init>(MAPIStore.java:31)

                            ... 13 more

                            DEBUG: getProvider() returning javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com]

                            <EML> <TID: 36> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:24:04.038 */ Came in initializeIncommingMailbox for mailbox incoming/ARTest_Inbound @ time 2018-02-08 15:24:04.038

                            <EML> <TID: 36> <SEVERE > <LoggingModule> /* Thu Feb 08 2018 15:24:04.038 */ Could not connect to Email Profile Name :ITSM . Email ID:

                            <EML> <TID: 36> <SEVERE > <javax.mail.Session> /* Thu Feb 08 2018 15:24:04.038 */ mapistore . Email ID:

                            <EML> <TID: 36> <INFO > <ReceiverModule> /* Thu Feb 08 2018 15:24:04.038 */ *****Receiver [Thread[AGGAAEHXILCQFAPDTV9WPCX2J4IPRQ,5,Receiver Module]] Attempt : 2 failed to open a store will retry after one minute.

                            • 11. Re: MAPI Email Configuration
                              seetharaman Ayyanar

                              Dear Ravi,

                               

                              Another set of log.

                               

                              <EML> /* Thu Feb 08 2018 15:30:46.220 */ File already created

                              <EML> /* Thu Feb 08 2018 15:30:46.273 */ Checking connection to server: ITSMAPPDEV.mydzit.gov.sa ...

                              <EML> /* Thu Feb 08 2018 15:30:46.273 */ Application has started Version: 9.1 04 201711272256

                              <EML> /* Thu Feb 08 2018 15:30:46.273 */ Using RMI Port 1100

                              <EML> /* Thu Feb 08 2018 15:30:46.273 */ Using JRE: 1.8.0_161

                              <EML> /* Thu Feb 08 2018 15:30:46.742 */ Successfully connected at Feb 8, 2018 3:30:46 PM

                              <EML> /* Thu Feb 08 2018 15:30:47.968 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://incoming/ARTest_Inbound]

                              rted Thread Configuration Module for Email Daemon

                              <EML> <TID: 21> <INFO > <LoggingModule> <ConfigurationModule.java:99> /* Thu Feb 08 2018 15:30:46.809 */ Entering

                              <EML> <TID: 21> <INFO > <LoggingModule> <ConfigurationModule.java:184> /* Thu Feb 08 2018 15:30:46.809 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <ConfigurationModule.java:432> /* Thu Feb 08 2018 15:30:46.990 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> <MailboxConfigurationInfo.java:344> /* Thu Feb 08 2018 15:30:46.990 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> <LoggingModule.java:527> /* Thu Feb 08 2018 15:30:47.155 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.155 */ Starting retrieval and processing of group information

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.467 */ Total number of groups: 219

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.467 */ Completed retrieval and processing of group information

                              <EML> <TID: 15> <INFO > <LoggingModule> <LoggingModule.java:548> /* Thu Feb 08 2018 15:30:47.467 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <LoggingModule.java:527> /* Thu Feb 08 2018 15:30:47.468 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.468 */ Starting retrieval and processing of user information

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.468 */ Total number of users: 3

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.468 */ Completed retrieval and processing of user information

                              <EML> <TID: 15> <INFO > <LoggingModule> <LoggingModule.java:548> /* Thu Feb 08 2018 15:30:47.468 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <MailboxConfigurationInfo.java:347> /* Thu Feb 08 2018 15:30:47.468 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <ConfigurationModule.java:278> /* Thu Feb 08 2018 15:30:47.468 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> <ConfigurationModule.java:421> /* Thu Feb 08 2018 15:30:47.534 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <MailboxConfigurationInfo.java:337> /* Thu Feb 08 2018 15:30:47.534 */ Entering

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:47.534 */ Entered queryFormEmailFailOverMailServers(..)

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:47.614 */ The failover form hasn't changed

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:47.614 */ Original Map : {}

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:47.614 */ Failover Map : {}

                              <EML> <TID: 15> <INFO > <LoggingModule> <MailboxConfigurationInfo.java:339> /* Thu Feb 08 2018 15:30:47.614 */ Exiting

                              <EML> <TID: 15> <INFO > <LoggingModule> <ConfigurationModule.java:437> /* Thu Feb 08 2018 15:30:47.614 */ Exiting

                              <EML> <TID: 15> <INFO > <SenderModule> /* Thu Feb 08 2018 15:30:47.680 */ [Thread[Sender Module-0,5,Sender Module]] Sender Module Thread Initialized Properly

                              <EML> <TID: 22> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.680 */ Started Thread Sender Module for Sender Module-0

                              <EML> <TID: 22> <INFO > <LoggingModule> <SenderModule.java:203> /* Thu Feb 08 2018 15:30:47.680 */ Entering

                              <EML> <TID: 15> <INFO > <SenderModule> /* Thu Feb 08 2018 15:30:47.735 */ [Thread[Sender Module-1,5,Sender Module]] Sender Module Thread Initialized Properly

                              <EML> <TID: 23> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.736 */ Started Thread Sender Module for Sender Module-1

                              <EML> <TID: 23> <INFO > <LoggingModule> <SenderModule.java:203> /* Thu Feb 08 2018 15:30:47.736 */ Entering

                              <EML> <TID: 15> <INFO > <SenderModule> /* Thu Feb 08 2018 15:30:47.792 */ [Thread[Sender Module-2,5,Sender Module]] Sender Module Thread Initialized Properly

                              <EML> <TID: 24> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.792 */ Started Thread Sender Module for Sender Module-2

                              <EML> <TID: 24> <INFO > <LoggingModule> <SenderModule.java:203> /* Thu Feb 08 2018 15:30:47.792 */ Entering

                              <EML> <TID: 15> <INFO > <SenderModule> /* Thu Feb 08 2018 15:30:47.847 */ [Thread[Sender Module-3,5,Sender Module]] Sender Module Thread Initialized Properly

                              <EML> <TID: 25> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.847 */ Started Thread Sender Module for Sender Module-3

                              <EML> <TID: 25> <INFO > <LoggingModule> <SenderModule.java:203> /* Thu Feb 08 2018 15:30:47.847 */ Entering

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.869 */ Email Engine registered for Centralized configuration notification component name: [ITSMAPPDEV.mydzit.gov.sa:1100]

                              <EML> <TID: 15> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:30:47.968 */ Email Engine asserting waiting state for provider:[com.bmc.arsys.emaildaemon://incoming/ARTest_Inbound]

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:48.660 */ Entered queryFormEmailFailOverMailServers(..)

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:48.741 */ The failover form hasn't changed

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:48.741 */ Original Map : {}

                              <EML> <TID: 15> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:30:48.741 */ Failover Map : {}

                              <EML> <TID: 36> <INFO > <LoggingModule> /* Thu Feb 08 2018 15:32:03.810 */ Started Thread Receiver Module for AGGAAEHXILCQFAPDTV9WPCX2J4IPRQ

                              <EML> <TID: 36> <INFO > <ReceiverModule> /* Thu Feb 08 2018 15:32:04.075 */ *****Receiver [Thread[AGGAAEHXILCQFAPDTV9WPCX2J4IPRQ,5,Receiver Module]] Trying to open a mailbox connection.

                              <EML> <TID: 36> <FINE > <LoggingModule> /* Thu Feb 08 2018 15:32:04.076 */ Came in initializeIncommingMailbox for mailbox incoming/ARTest_Inbound @ time 2018-02-08 15:32:04.076

                              <EML> <TID: 36> <SEVERE > <LoggingModule> /* Thu Feb 08 2018 15:32:04.084 */ Could not connect to Email Profile Name :ITSM . Email ID:

                              <EML> <TID: 36> <SEVERE > <javax.mail.Session> /* Thu Feb 08 2018 15:32:04.084 */ mapistore . Email ID:

                              <EML> <TID: 36> <INFO > <ReceiverModule> /* Thu Feb 08 2018 15:32:04.084 */ *****Receiver [Thread[AGGAAEHXILCQFAPDTV9WPCX2J4IPRQ,5,Receiver Module]] Attempt : 1 failed to open a store will retry after one minute.

                              • 12. Re: MAPI Email Configuration
                                seetharaman Ayyanar

                                Dears,

                                 

                                Finally Issue is solved.

                                 

                                Issue was mfc71.dll was missing in my server and started to work after place this .dll file to System32 and Systemwow folders.

                                 

                                Ensure all these .dll files are available in System32 and Systemwow.

                                 

                                MAPI32.DLL
                                MSVCRT.DLL
                                NTDLL.DLL
                                OLE32.DLL

                                MFC71.dll

                                KERNEL32.dll

                                User32.dll

                                 

                                Regards,

                                Ram