VERIFIED SOLUTION i

javax.mail.AuthenticationFailedException: EOF on socket

Issue

We are working with e-Messaging v 1.4m7 in JBoss 7.1 on Windows 2010 R2. We are having problems with the inbound profile

This happen in both version 1.4m3 and 1.4m7, and is the correct password. 

After a review on the Symantec endpoint protection manager, the is nothing closing the connection, so can you help us with this? 

So If there is a problem with Firewall or some application interfering with the connection, the program make in Java can´t connect to the Inbox on outlook.office365.com over SSL on port 995. 

In the Log of e-Messaging we find that SSL is not enable: 

2014-12-03 11:12:15,532 [EM] DEBUG [pool-8-thread-2] pop3.<init>(-1) | connecting to host "outlook.office365.com", port 995, isSSL false 


the error is this: 

2014-12-03 09:43:24,468 [EM] WARN [pool-8-thread-1] InboundMailListener.logWarning(288) | Error while polling mailbox, but will continue to poll... key='5050' [avisosbanbajio on outlook.office365.com:995] 
javax.mail.AuthenticationFailedException: EOF on socket 
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:209) 
at javax.mail.Service.connect(Service.java:345) 
at com.g1.emessaging.inbound.InboundMailListener.poll(InboundMailListener.java:332) 
at com.g1.emessaging.inbound.InboundMailListener$1.run(InboundMailListener.java:239) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at java.lang.Thread.run(Thread.java:745) 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] DefaultInboundMailServiceMonitor.handleInboundMailGatewayConnectionFailureEvent(39) | Invoke notification InboundMailGatewayConnectionFailure. . . 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] AbstractNotificationEmitterMBean.sendNotification(78) | Sending JMX notification . . . 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] AbstractNotificationEmitterMBean.sendNotification(82) | JMX Notification successfully sent . . . 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] OutboundProcessManager.run(307) | Run method of OutboundProcessor called : MailMarketing , Thread Name: pool-4-thread-9 at 1417621407890 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] WebSessionManager.logOnAs(68) | Logging as: system 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] AbstractMessageProcessor.getJournalFile(627) | dijFolderName = C:\vendors\BanBajio\OutProfiles\MailMarketing\dij\ 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] OutboundProcessManager.run(307) | Run method of OutboundProcessor called : EdoCuenta , Thread Name: pool-4-thread-2 at 1417621412796 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] WebSessionManager.logOnAs(68) | Logging as: system 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] AbstractMessageProcessor.getJournalFile(627) | dijFolderName = C:\vendors\BanBajio\OutProfiles\EdoCuenta\dij\ 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.logPolling(299) | Polling for key='5050' [avisosbanbajio on outlook.office365.com:995] 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.poll(310) | 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.getMailSession(185) | 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] mail.getProvider(-1) | getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle] 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.rsetbeforequit: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.disabletop: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.forgettopheaders: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.cachewriteto: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.filecache.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.keepmessagecontent: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.starttls.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.starttls.required: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.apop.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.disablecapa: false 

Cause

We are working with e-Messaging v 1.4m7 in JBoss 7.1 on Windows 2010 R2. We are having problems with the inbound profile

This happen in both version 1.4m3 and 1.4m7, and is the correct password. 

After a review on the Symantec endpoint protection manager, the is nothing closing the connection, so can you help us with this? 

So If there is a problem with Firewall or some application interfering with the connection, the program make in Java can´t connect to the Inbox on outlook.office365.com over SSL on port 995. 

In the Log of e-Messaging we find that SSL is not enable: 

2014-12-03 11:12:15,532 [EM] DEBUG [pool-8-thread-2] pop3.<init>(-1) | connecting to host "outlook.office365.com", port 995, isSSL false 


the error is this: 

2014-12-03 09:43:24,468 [EM] WARN [pool-8-thread-1] InboundMailListener.logWarning(288) | Error while polling mailbox, but will continue to poll... key='5050' [avisosbanbajio on outlook.office365.com:995] 
javax.mail.AuthenticationFailedException: EOF on socket 
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:209) 
at javax.mail.Service.connect(Service.java:345) 
at com.g1.emessaging.inbound.InboundMailListener.poll(InboundMailListener.java:332) 
at com.g1.emessaging.inbound.InboundMailListener$1.run(InboundMailListener.java:239) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) 
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at java.lang.Thread.run(Thread.java:745) 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] DefaultInboundMailServiceMonitor.handleInboundMailGatewayConnectionFailureEvent(39) | Invoke notification InboundMailGatewayConnectionFailure. . . 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] AbstractNotificationEmitterMBean.sendNotification(78) | Sending JMX notification . . . 
2014-12-03 09:43:24,468 [EM] DEBUG [pool-8-thread-1] AbstractNotificationEmitterMBean.sendNotification(82) | JMX Notification successfully sent . . . 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] OutboundProcessManager.run(307) | Run method of OutboundProcessor called : MailMarketing , Thread Name: pool-4-thread-9 at 1417621407890 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] WebSessionManager.logOnAs(68) | Logging as: system 
2014-12-03 09:43:27,890 [EM] DEBUG [pool-4-thread-9] AbstractMessageProcessor.getJournalFile(627) | dijFolderName = C:\vendors\BanBajio\OutProfiles\MailMarketing\dij\ 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] OutboundProcessManager.run(307) | Run method of OutboundProcessor called : EdoCuenta , Thread Name: pool-4-thread-2 at 1417621412796 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] WebSessionManager.logOnAs(68) | Logging as: system 
2014-12-03 09:43:32,796 [EM] DEBUG [pool-4-thread-2] AbstractMessageProcessor.getJournalFile(627) | dijFolderName = C:\vendors\BanBajio\OutProfiles\EdoCuenta\dij\ 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.logPolling(299) | Polling for key='5050' [avisosbanbajio on outlook.office365.com:995] 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.poll(310) | 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] InboundMailListener.getMailSession(185) | 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] mail.getProvider(-1) | getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle] 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.rsetbeforequit: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.disabletop: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.forgettopheaders: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.cachewriteto: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.filecache.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.keepmessagecontent: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.starttls.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.starttls.required: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.apop.enable: false 
2014-12-03 09:43:35,483 [EM] DEBUG [pool-8-thread-1] pop3.getBoolProp(-1) | mail.pop3.disablecapa: false 

Resolution

UPDATED: September 26, 2017
SSL was not enabled on the e-messaging server.  It is possible to select SSL related options in the GUI, but without the SSL being installed they will not work, and fail with errors like this.

Setting up SSL is covered in the e-messaging installation guide page 128 regarding how to set up SSL.  Steps vary based on which application server is in use.