Jira server throws SMTPAddressFailedException when sending email
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Symptoms
Outgoing mails from JIRA fails with the SMTP error code 550
. The mails outgoing from the notifications queue for issue changes as well as the emails generated via Contact Administrators
form can get affected due to this error.
The following appears in the atlassian-jira-outgoing-mail.log
:
2012-05-17 14:47:58,780 ERROR [SMTP Server(servername)] Sending mailitem To='sample@domain.com' Subject='Sample Subject' From='sender@domain.com' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='null' MessageId='null' ServiceRunner Mail Queue Service Error occurred in sending e-mail: To='sample@domain.com' Subject='Sample Subject' From='sender@domain.com' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='null' MessageId='null'
com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 you are not allowed to send mail to <sample@domain.com>
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:183)
at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:38)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:28)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Cause
This error is caused by the security settings at the SMTP server which prevents JIRA from sending emails using that server.
Resolution
The content on this page relates to platforms which are not supported. Consequently, Atlassian Support cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.
The error lies outside of JIRA and the security settings at the SMTP server have to be checked to resolve the issue. There are many reasons for this and the main ones being:
- The sender has been blocked by the recipient's mail server. This could be due to a spam configuration at the SMTP server.
- The SMTP cannot verify who the sender is and will not allow sending emails.
- Mailbox unavailable for the user mentioned in the
From
address of the email.
This is not a comprehensive list of issues to be checked at the SMTP server. Please consult with the local IT administrator to verify the SMTP server configuration to resolve the issue.