[xwiki-users] assitance smtp config for xwiki centos 5.3
I am currently running XWIKI ENTERPRISE 1.8.4.20192 with xwiki watch 1.1 I have read through the mailing list that there currently is no way to use a 3rd party email server with xwiki or xwiki watch. I understand that will be implemented in the future at some point. My question is if there is a tutorial on how to setup xwiki to work with the localhost sendmail setup. I am able to telnet and send an email from localhost, where xwiki is located, to my email server. Still when I try to use xwiki I get an email error, but nothing in the maillogs that is coming from the xwiki server. Any tips would be greatly appreciated. ERROR mailsender.MailSenderPluginApi - Failed to send email [From [ XWiki Watch <wiki@xxx.example.com>], To [aziz@example.com], Subject [Today's Press Review], Text [<div style='line-height: 1.5em'>You have received a Press Review from XWiki Watch. It includes the following articles:<br /> javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:782) at javax.mail.Session.getTransport(Session.java:708) at javax.mail.Session.getTransport(Session.java:651) at javax.mail.Session.getTransport(Session.java:631) at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMails(MailSenderPlu gin.java:666) at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlug in.java:624) at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlug in.java:610) at com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendMail(MailSenderP luginApi.java:164) at com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendHtmlMessage(Mail SenderPluginApi.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethod SiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMet hodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteA rray.java:43) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallS ite.java:117) at Script1.run(Script1.groovy:29) at com.xpn.xwiki.render.groovy.XWikiSimpleTemplateEngine$1.writeTo(XWikiSim pleTemplateEngine.java:267) at com.xpn.xwiki.render.groovy.XWikiSimpleTemplateEngine$1.toString(XWikiSi mpleTemplateEngine.java:285) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.evaluate(XWikiGroovyRend erer.java:203) at com.xpn.xwiki.render.groovy.XWikiGroovyRenderer.render(XWikiGroovyRender er.java:255) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki RenderingEngine.java:272) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki RenderingEngine.java:202) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWiki RenderingEngine.java:170) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultX WikiRenderingEngine.java:159) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:51 9) at com.xpn.xwiki.gwt.api.server.XWikiServiceImpl.getDocumentContent(XWikiSe rviceImpl.java:1031) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteSe rviceServlet.java:164) at com.xpn.xwiki.gwt.api.server.XWikiServiceImpl.processCall(XWikiServiceIm pl.java:85) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteService Servlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java: 68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor erFilter.java:295) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi ngFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 0) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:685) at java.lang.Thread.run(Thread.java:636) Thank you, -Aziz
Aziz Jarrah wrote:
I am currently running XWIKI ENTERPRISE 1.8.4.20192 with xwiki watch 1.1
I have read through the mailing list that there currently is no way to use a 3rd party email server with xwiki or xwiki watch. I understand that will be implemented in the future at some point.
What exactly do you mean by that? It is possible to use a remote SMTP server, even with authentication and SSL in place. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguri...
My question is if there is a tutorial on how to setup xwiki to work with the localhost sendmail setup.
I am able to telnet and send an email from localhost, where xwiki is located, to my email server. Still when I try to use xwiki I get an email error, but nothing in the maillogs that is coming from the xwiki server. Any tips would be greatly appreciated.
javax.mail.NoSuchProviderException: smtp
This looks like a javamail or java misconfiguration. Make sure you are using the Sun JVM and the Sun versions of mail.jar and activation.jar -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks for your assistance. I appears that I was running openjdk instead of the sunjdk. I have since switched to the sunjdk and added the javamailer mail.jar and activation.jar which I was missing before. This is the error I am seeing now. ERROR mailsender.MailSenderPlugin - SendFailedException has occured. javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <null>... User unknown thank you, -Aziz -----Original Message----- From: users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Sergiu Dumitriu Sent: Wednesday, June 17, 2009 7:13 AM To: XWiki Users Subject: Re: [xwiki-users] assitance smtp config for xwiki centos 5.3 Aziz Jarrah wrote:
I am currently running XWIKI ENTERPRISE 1.8.4.20192 with xwiki watch 1.1
I have read through the mailing list that there currently is no way to use a 3rd party email server with xwiki or xwiki watch. I understand that will be implemented in the future at some point.
What exactly do you mean by that? It is possible to use a remote SMTP server, even with authentication and SSL in place. See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfi guringtheSMTPserver
My question is if there is a tutorial on how to setup xwiki to work with the localhost sendmail setup.
I am able to telnet and send an email from localhost, where xwiki is located, to my email server. Still when I try to use xwiki I get an email error, but nothing in the maillogs that is coming from the xwiki server. Any tips would be greatly appreciated.
javax.mail.NoSuchProviderException: smtp
This looks like a javamail or java misconfiguration. Make sure you are using the Sun JVM and the Sun versions of mail.jar and activation.jar -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Aziz Jarrah wrote:
Thanks for your assistance. I appears that I was running openjdk instead of the sunjdk. I have since switched to the sunjdk and added the javamailer mail.jar and activation.jar which I was missing before. This is the error I am seeing now.
ERROR mailsender.MailSenderPlugin - SendFailedException has occured. javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <null>... User unknown
Yes, this is known and fixed in 1.9, please download http://maven.xwiki.org/releases/com/xpn/xwiki/platform/plugins/xwiki-plugin-... and place it in the WEB-INF/lib folder, and remove the existing version of this plugin. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu, Thanks that solved it. This have been bugging me for about week. Thank you very much for your assistance. -Aziz -----Original Message----- From: users-bounces@xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Sergiu Dumitriu Sent: Wednesday, June 17, 2009 4:16 PM To: XWiki Users Subject: Re: [xwiki-users] assitance smtp config for xwiki centos 5.3 Aziz Jarrah wrote:
Thanks for your assistance. I appears that I was running openjdk instead of the sunjdk. I have since switched to the sunjdk and added the javamailer mail.jar and activation.jar which I was missing before. This is the error I am seeing now.
ERROR mailsender.MailSenderPlugin - SendFailedException has occured. javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <null>... User unknown
Yes, this is known and fixed in 1.9, please download http://maven.xwiki.org/releases/com/xpn/xwiki/platform/plugins/xwiki-plu gin-mailsender/1.9/xwiki-plugin-mailsender-1.9.jar and place it in the WEB-INF/lib folder, and remove the existing version of this plugin. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Aziz Jarrah -
Sergiu Dumitriu