Incoming mail fails with "javax.mail.AuthenticationFailedException: EOF on socket" while connecting to Microsoft Exchange using POP3
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
Issues and comments are no longer able to be created via email. The following appears in the atlassian-jira.log file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2017-08-11 15:47:00,069 Caesium-1-3 WARN anonymous Xxx Xxxx [c.a.mail.incoming.mailfetcherservice] Xxx Xxxx[10200]: javax.mail.AuthenticationFailedException: EOF on socket while connecting to host 'xxxxxxx.xxxxx.com' as user 'xxxxxxx' via protocol 'pop3': javax.mail.AuthenticationFailedException: EOF on socket
javax.mail.AuthenticationFailedException: EOF on socket
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:213)
at javax.mail.Service.connect(Service.java:366)
at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:182)
at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:366)
at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:229)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62)
at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44)
at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32)
at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:438)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJobWithRecoveryGuard(CaesiumSchedulerService.java:462)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:390)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
at java.lang.Thread.run(Thread.java:745)
2017-08-11 15:47:11,991 Finalizer DEBUG [c.atlassian.mail.incoming] QUIT
2017-08-11 15:47:11,991 Finalizer DEBUG [c.atlassian.mail.incoming] <EOF>
Diagnosis
Environment
JIRA Software or Core using the standard JIRA mail handler
Connecting via POP3
Microsoft Exchange
Cause
PopProxy is inactive. This sometimes happens after an Exchange server restart, but the reasons why it becomes inactive are not necessarily known.
Solution
Resolution
Ensure that PopProxy is active and can be reached externally by JIRA.
Check to ensure that port 110 is open on the Exchange server.
Server must be listening on port 110 (use netstat on the server to verify)
Check that an outside server can see that port 110 is open. (Note: It may be necessary to use nmap or a similar tool to detect port 110 availability.)
Attempt a telnet session to port 110 on the server. You may see something like "+OK The Microsoft Exchange POP3 service is ready."
Check to ensure that PopProxy is enabled.
Open Exchange Admin PowerShell on the Exchange server.
Run the command:
1
Get-ServerComponentState - Identify <SERVER_NAME> (where SERVER_NAME is the machine name of the Exchange server).
Look for the PopProxy component and check the State column. It should say 'Active.'
If PopProxy is 'Inactive,' then attempt to activate it with this command:
1
Set-ServerComponentState -State Active -Requester HealthAPI -Component PopProxy -Identity <SERVER_NAME>
Was this helpful?