Sending email failed with Caused by: javax.mail.MessagingException: [EOF]

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Sending a test email will produce the following errors in the test mail dialog box and in the atlassian-jira-outgoing.log

...

com.atlassian.mail.MailException: javax.mail.MessagingException: [EOF]
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:213)
	at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44)
	at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
	at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:57)
	at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:53)
	at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:127)
	at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:58)
	at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:52)
...
Caused by: javax.mail.MessagingException: [EOF]
	at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:2080)
	at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:1478)
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:648)
	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.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:173)
	... 18 more

Diagnosis

Environment

  • Exchange Server is being used to replicate this error.
  • The test email is sent when using a different outgoing mail server. (GMAIL for example)

Cause

Usually this error is related to the Mail Exchange server's configuration. It is due to the Mail Server not being updated to allow relay from the JIRA server. Adding the JIRA server's IP to the range of allowed relay hosts resolves this.

Workaround

 

Use a different mail server while unable to perform this configuration changes in the Exchange server side.

 

Resolution

Add the JIRA server's IP to the range of allowed relay hosts. You may refer this Microsoft KB.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.