Dear all,
I am trying to send mails using smtp and a dedicated mail relay server of my company. The connection works fine using my local java testclient. However setting up my HCP trial account and trying to use the server ends up in the exception below.
2015 07 20 11:01:10#+00#ERROR#com.p.s.s.jobs.u.SalesProgramSyncJob##anonymous#QuartzSchedulerFactory_Worker-2#na#p14885408trial#sfynx#web##Could not connect to SMTP host: [my_wonderful_existing_mailserver], port: 25javax.mail.MessagingException: Could not connect to SMTP host: [my_wonderful_existing_mailserver], port: 25
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at com.p.s.s.jobs.u.SalesProgramSyncJob.sendNotification(SalesProgramSyncJob.java:85)
at com.p.s.s.jobs.u.SalesProgramSyncJob.executeInternal(SalesProgramSyncJob.java:139)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.net.NoRouteToHostException: Host unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:581)
at java.net.Socket.connect(Socket.java:528)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:233)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)
... 9 common frames omitted
It appears that somehow there's no route from HCP to the mail server. Is there a person I can get in contact with so that this routing issue can be solved? The application will be deployed in the near future to a productive instance of HCP. So I want to be sure that this last todo is done before the deployement.
kind regards
Tim