cancel
Showing results for 
Search instead for 
Did you mean: 

Problems sending emails through portal

Former Member
0 Kudos

Hello all,

I configured the email transport in the "Collaboration --> Groupware transports" section (the "Mail Transport"). However, the following error log message appears (I changed the IP address of this log entry to "smtphostname"):

The e-mail server could not be reached when the system was trying to send the message. com.sap.ip.collaboration.gw.impl.transport.javamail.exception.ConnectionFailedException: The e-mail server could not be reached when the system was trying to send the message.

at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.sendMail(JavaMailTransport.java:187)

at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.send(JavaMailTransport.java:198)

at com.sap.ip.collaboration.gw.impl.framework.groupware.MailItemImpl.send(MailItemImpl.java:83)

at com.sap.ip.collaboration.gw.impl.service.mail.SendMailItemImpl.send(SendMailItemImpl.java:152)

at com.sap.ip.collaboration.gw.impl.service.mail.SendMailService.sendMail(SendMailService.java:424)

at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.sendMail(SendTo.java:788)

at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.onSend(SendTo.java:1080)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)

at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)

at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:538)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)

at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfPortalComponent.service(WdfPortalComponent.java:39)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)

at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)

at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)

at java.security.AccessController.doPrivileged(Native Method)

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

-


exception is chained. Original exception -


javax.mail.MessagingException: Could not connect to SMTP host: smtphostname, port: 25;

nested exception is:

java.net.SocketException: Software caused connection abort: connect

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)

at javax.mail.Service.connect(Service.java:234)

at javax.mail.Service.connect(Service.java:135)

at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.sendMail(JavaMailTransport.java:177)

at com.sap.ip.collaboration.gw.impl.transport.javamail.JavaMailTransport.send(JavaMailTransport.java:198)

at com.sap.ip.collaboration.gw.impl.framework.groupware.MailItemImpl.send(MailItemImpl.java:83)

at com.sap.ip.collaboration.gw.impl.service.mail.SendMailItemImpl.send(SendMailItemImpl.java:152)

at com.sap.ip.collaboration.gw.impl.service.mail.SendMailService.sendMail(SendMailService.java:424)

at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.sendMail(SendTo.java:788)

at com.sap.ip.collaboration.gwui.api.wdf.mail.SendTo.onSend(SendTo.java:1080)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)

at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)

at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:538)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)

at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at com.sap.ip.collaboration.core.api.ui.wdf.portal.WdfPortalComponent.service(WdfPortalComponent.java:39)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)

at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)

at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)

at java.security.AccessController.doPrivileged(Native Method)

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

The IP, port and so on should be correct, since they are also used by Outlook. However, the smtp server log does not show anything, if I am sending an email through the portal (so I guess that it never reaches this smtp server).

Thanks for any hints or helps.

Bye

Philipp

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Make sure that from the portal server you can ping or see your mail server from the os level. It may be that your portal server is not able to resolve the DNS name you have given.

A quick test would be to add the appropriate entries to the local host file and see if the problem disapears.

Haydn

Former Member
0 Kudos

Hi Haydn,

thanks for your post. The problem has been fixed, since the virus scanner of the Exchange Server blocked the smtp port 25.

Bye

Philipp

Answers (0)