Hi, The cert should be installed into the default Java JRE keystore that the email engine is using.
Cheers Carl On 7 Jun 2013 11:18, "Frex Popo" <[email protected]> wrote: > ** > Hello everyone, > > We imported a CA certificate to the keystore (this was done by the unix > amin team): > > > keytool -import -v -alias myserver -file mycert.cer -keystore cacerts > > > Before I start testing the eamil engine I performed a quick test with > openssl client and get the following errors. > > > $ openssl s_client -crlf -connect pop3.server.com:995 -starttls pop3 > CONNECTED(00000004) > depth=0 /CN=pop3.server.com > verify error:num=*20:unable to get local issuer certificate* > verify return:1 > depth=0 /CN=pop3.server.com > verify error:num=27:*certificate not trusted* > verify return:1 > depth=0 /CN=pop3.server.com > verify error:num=21:*unable to verify the first certificate* > verify return:1 > --- > > Any clues as to what the problem could be? > > Also in the email engine start up script the Java Home is pointing to > /usr/ar/common/Sun/jdk/jdk1.6.0_10 > > JAVA_DIR=/usr/ar/common/Sun/jdk/jdk1.6.0_10 > > Should the keystore file be copied to the security folder under this file > system for the email engine to be to read it? > > /usr/ar/common/Sun/jdk/jdk1.5.0_16/jre/lib/security/cacerts > > Any thoughts on this will be very much appreciated. > > Regards > frex > > *From:* Action Request System discussion list(ARSList) [mailto: > [email protected]] *On Behalf Of *Frex Popo > *Sent:* Monday, 3 June 2013 1:18 PM > *To:* [email protected] > *Subject:* Re: email engine question > > ** > > Hi everyone. > > Nearly there! :) > > Outgoing email message are now sent successfully. but incoming are failing! > > Here is the output from the DEBUG mode. > > DEBUG POP3: connecting to host "pop3mail.av.com", port 110, isSSL false > S: +OK The Microsoft Exchange POP3 service is ready. > C: USER DEV_remedyacc > S: -ERR Command is not valid in this state. > C: QUIT > S: +OK Microsoft Exchange Server 2010 POP3 server signing off. > DEBUG: getProvider() returning > javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy > stems, Inc] > DEBUG POP3: connecting to host "pop3mail.prod.oami.eu", port 110, isSSL > false > S: +OK The Microsoft Exchange POP3 service is ready. > C: USER DEV_remedyacc > S: -ERR Command is not valid in this state. > C: QUIT > S: +OK Microsoft Exchange Server 2010 POP3 server signing off. > Jun 3, 2013 9:40:25 AM com.sun.mail.pop3.POP3Store protocolConnect > SEVERE: Command is not valid in this state. > javax.mail.AuthenticationFailedException: Command is not valid in this > state. > at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146) > at javax.mail.Service.connect(Service.java:275) > at javax.mail.Service.connect(Service.java:156) > at > com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:1921) > at > com.bmc.arsys.emaildaemon.ReceiverModule.initialization(ReceiverModule.java:533) > at > com.bmc.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:174) > at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:288) > at java.lang.Thread.run(Thread.java:619) > Jun 3, 2013 9:40:25 AM com.sun.mail.pop3.POP3Store protocolConnect > SEVERE: Command is not valid in this state. > javax.mail.AuthenticationFailedException: Command is not valid in this > state. > at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146) > at javax.mail.Service.connect(Service.java:275) > at javax.mail.Service.connect(Service.java:156) > at > com.bmc.arsys.emaildaemon.ReceiverModule.initializeIncommingMailbox(ReceiverModule.java:1921) > at > com.bmc.arsys.emaildaemon.ReceiverModule.doWork(ReceiverModule.java:219) > at com.bmc.arsys.emaildaemon.ThreadBase.run(ThreadBase.java:288) > at java.lang.Thread.run(Thread.java:619) > > Best Regards > frex > > *De :* Frex Popo <[email protected]> > *À :* "[email protected]" <[email protected]> > *Envoyé le :* Lundi 3 juin 2013 9h24 > *Objet :* Re: email engine question > > I have another email engine installed in the test server so made it point > to dev and managed to get it working... will investigate development later > :) > > > BMC Remedy Email Engine has started > Checking connection to server: rmdydev ... > Application has started Version: 7.1.00 Patch 007 200903060530 > Using JRE: 1.6.0_10 > Successfully connected. > Thanks for you help. > frexpopo > > *De :* Frex Popo <[email protected]> > *À :* "[email protected]" <[email protected]> > *Envoyé le :* Lundi 3 juin 2013 8h44 > *Objet :* Re: email engine question > > thanks for the feedback shivdatta.. > > I copied the original script and change it for the purpose of resetting > the password... > > Here is the environment part of the script > > JAVA_DIR=/usr/ar/common/Sun/jdk/jdk1.6.0_10 > JAVA_BIN=${JAVA_DIR}/bin > InstallPath=/usr/ar/AREmail > LogFile=${InstallPath}/Logs/emaild.sh_log > LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${InstallPath}:/usr/ar/AREmail:/usr/ar/mid-tier/WEB-INF/lib;export > LD_LIBRARY_PATH > SHLIB_PATH=${SHLIB_PATH}:${InstallPath}:/usr/ar/mid-tier/WEB-INF/lib;export > SHLIB_PATH > LIBPATH=${LIBPATH}:${InstallPath}:/usr/ar/mid-tier/WEB-INF/lib;export > LIBPATH > > CP_DIR=${InstallPath} > CP_PATH=${CP_DIR}/emaildaemon.jar > CP_PATH=${CP_PATH}:${CP_DIR}/. > CP_PATH=${CP_PATH}:${CP_DIR}/smtp.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-configuration-1.3.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-beanutils.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-collections-3.2.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-digester-1.7.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-lang-2.2.jar > CP_PATH=${CP_PATH}:${CP_DIR}/spring.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-logging-1.1.jar > CP_PATH=${CP_PATH}:${CP_DIR}/commons-codec-1.3.jar > CP_PATH=${CP_PATH}:${CP_DIR}/log4j-1.2.14.jar > CP_PATH=${CP_PATH}:${CP_DIR}/pop3.jar > CP_PATH=${CP_PATH}:${CP_DIR}/mail.jar > CP_PATH=${CP_PATH}:${CP_DIR}/imap.jar > CP_PATH=${CP_PATH}:${CP_DIR}/activation.jar > CP_PATH=${CP_PATH}:${CP_DIR}/arutil${LIBVER}.jar > CP_PATH=${CP_PATH}:${CP_DIR}/arapi${LIBVER}.jar > CP_PATH =${CP_PATH}:${CP_DIR}/arcmn${LIBVER}.jar > CP_PATH=${CP_PATH}:${CP_DIR}/arrpc${LIBVER}.jar > CP_PATH=${CP_PATH}:${CP_DIR}/oncrpc.jar > CP_PATH=${CP_PATH}:${CP_DIR}/mbox.jar > CP_PATH=${CP_PATH}:${CP_DIR}/EmailAdminAgent.jar > pidfile=${InstallPath}/emaild.pid > > Here is what I get when I try and reset the password, the script excutes > and then hangs! > > > echo "Changing application password" > + echo Changing application password > Changing application password > > exec ${JAVA_BIN}/java -Dmail.debug=true -cp ${CP_PATH} > com.bmc.arsys.emaildaemon.EmailDaemon -p mypassword > + exec /usr/ar/common/Sun/jdk/jdk1.6.0_10/bin/java -Dmail.debug=true -cp > /usr/ar/AREmail/emaildaemon.jar:/usr/ar/AREmail/.:/usr/ar/AREmail/smtp.jar:/usr/ar/AREmail/commons-configuration-1.3.jar:/usr/ar/AREmail/commons-beanutils.jar:/usr/ar/AREmail/commons-collections-3.2.jar:/usr/ar/AREmail/commons-digester-1.7.jar:/usr/ar/AREmail/commons-lang-2.2.jar:/usr/ar/AREmail/spring.jar:/usr/ar/AREmail/commons-logging-1.1.jar:/usr/ar/AREmail/commons-codec-1.3.jar:/usr/ar/AREmail/log4j-1.2.14.jar:/usr/ar/AREmail/pop3.jar:/usr/ar/AREmail/mail.jar:/usr/ar/AREmail/imap.jar:/usr/ar/AREmail/activation.jar:/usr/ar/AREmail/arutil71.jar:/usr/ar/AREmail/arapi71.jar:/usr/ar/AREmail/arcmn71.jar:/usr/ar/AREmail/arrpc71.jar:/usr/ar/AREmail/oncrpc.jar:/usr/ar/AREmail/mbox.jar:/usr/ar/AREmail/EmailAdminAgent.jar > com.bmc.arsys.emaildaemon.EmailDaemon -p arsystem > Exception in thread "main" java.lang.UnsatisfiedLinkError: > com.bmc.arsys.util.ARUtilEgcp.ECPUtil(Ljava/lang/String;)Ljava/lang/String; > at com.bmc.arsys.util.ARUtilEgcp.ECPUtil(Native Method) > at > com.bmc.arsys.emaildaemon.EmailDaemonProperties.setPassword(EmailDaemonProperties.java:395) > at > com.bmc.arsys.emaildaemon.EmailDaemon.executeComandLine(EmailDaemon.java:580) > at com.bmc.arsys.emaildaemon.EmailDaemon.main(EmailDaemon.java:316) > Any with this will be very much appreciated > > thanks > frexpopo > > *De :* "Marathe, Shivdatta" <[email protected]> > *À :* [email protected] > *Envoyé le :* Vendredi 31 mai 2013 18h53 > *Objet :* Re: email engine question > > ** > Add /usr/ar/AREmail/ in the LD_LIBRARY_PATH / LIB_PATH depending on os > you are using. > This issue was due to the API in 7.1 are using jni layer to talk with > server and the .so files or libraries are not in the path due to which it > is giving UnsatisfiedLinkError. > > */Shivdatta* > > *From:* Action Request System discussion list(ARSList) [mailto: > [email protected]] *On Behalf Of *Hullule, Kiran > *Sent:* 31 May 2013 07:05 PM > *To:* [email protected] > *Subject:* Re: email engine question > > ** > Is there a possibility of running installation of email engine again, it > seems some supported files are missing. > > *From:* Action Request System discussion list(ARSList) [ > mailto:[email protected] <[email protected]>] *On Behalf Of *Frex Popo > *Sent:* Friday, May 31, 2013 7:00 PM > *To:* [email protected] > *Subject:* email engine question > > ** > Hello all, > > I am in the process of testing the email engine in dev but getting nowhere > .. this email engine has been off for years so few changes might have been > made java upgrades, patches etc ... which could have affected it.. > > I set the email engine in debugging mode but when I start the email.sh > script i don't see any trace..no connection to the server and no connection > to the exchange server. > > BMC Remedy Email Engine has started > + exec /usr/ar/common/Sun/jdk/jdk1.6.0_10/bin/java > -Djava.library.path=/usr/ar/AREmail -Dmail.debug=true -cp > /usr/ar/AREmail/emaildaemon.jar:/usr/ar/AREmail/.:/usr/ar/AREmail/smtp.jar:/usr/ar/AREmail/commons-configuration-1.3.jar:/usr/ar/AREmail/commons-beanutils.jar:/usr/ar/AREmail/commons-collections-3.2.jar:/usr/ar/AREmail/commons-digester-1.7.jar:/usr/ar/AREmail/commons-lang-2.2.jar:/usr/ar/AREmail/spring.jar:/usr/ar/AREmail/commons-logging-1.1.jar:/usr/ar/AREmail/commons-codec-1.3.jar:/usr/ar/AREmail/log4j-1.2.14.jar:/usr/ar/AREmail/pop3.jar:/usr/ar/AREmail/mail.jar:/usr/ar/AREmail/imap.jar:/usr/ar/AREmail/activation.jar:/usr/ar/AREmail/arutil71.jar:/usr/ar/AREmail/arapi71.jar:/usr/ar/AREmail/arcmn71.jar:/usr/ar/AREmail/arrpc71.jar:/usr/ar/AREmail/oncrpc.jar:/usr/ar/AREmail/mbox.jar:/usr/ar/AREmail/EmailAdminAgent.jar > com.bmc.arsys.emaildaemon.EmailDaemon -d /usr/ar/AREmail > We are still working with version 7.1 patch009 plannig to upgrade at the > end of the year but need this to work for a current project I am working on. > > I check the log file under logs and see the following: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > com.bmc.arsys.util.ARUtilEgcp.GCPUtilApp(Ljava/lang/String;)Ljava/lang/String; > at com.bmc.arsys.util.ARUtilEgcp.GCPUtilApp(Native Method) > at > com.bmc.arsys.emaildaemon.EmailUtil.createARServerUser(EmailUtil.java:435) > at > com.bmc.arsys.emaildaemon.LoggingModule.setUserInfo(LoggingModule.java:713) > at > com.bmc.arsys.emaildaemon.EmailDaemon.startLoggingModule(EmailDaemon.java:123) > at > com.bmc.arsys.emaildaemon.EmailDaemon.<init>(EmailDaemon.java:93) > at > com.bmc.arsys.emaildaemon.EmailDaemon.newInstance(EmailDaemon.java:159) > at > com.bmc.arsys.emaildaemon.EmailDaemon.startMonitor(EmailDaemon.java:876) > at > com.bmc.arsys.emaildaemon.EmailDaemon.executeComandLine(EmailDaemon.java:595) > at com.bmc.arsys.emaildaemon.EmailDaemon.main(EmailDaemon.java:316) > Any thoughts on this will be very much appreciated. > Many thank in advance > frexpopo. > _ARSlist: "Where the Answers Are" and have been for 20 years_ > _ARSlist: "Where the Answers Are" and have been for 20 years_ > _ARSlist: "Where the Answers Are" and have been for 20 years_ > > > > _ARSlist: "Where the Answers Are" and have been for 20 years_ > _ARSlist: "Where the Answers Are" and have been for 20 years_ > > > > > _ARSlist: "Where the Answers Are" and have been for 20 years_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

