Jira fails to send some of the mail notifications
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
Jira fails to send some of the mail notifications.
Environment
Any version Jira or JSM
Diagnosis
The atlassian-jira-outgoing-mail.log will have the below error logged:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2024-02-08 11:09:58,972+0200 ERROR [] Sending mailitem PostprocessingMailQueueItem{delegate=To='test@test.com' Subject='Updates for ABC-123: Testing email' From='null' FromName='Tést, Tést (Jira)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.12234.11234567@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@30ba0df' MessageId='null' ExcludeSubjectPrefix=false'} admin 666x438474x1 1efwztm 10.198.15.20,192.168.100.18 /secure/admin/MailQueueAdmin.jspa [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: PostprocessingMailQueueItem{delegate=To='test@test.com' Subject='Updates for ABC-123' From='null' FromName='Mehtälä, Karri (Jira)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.12234.11234567@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@30ba0df' MessageId='null' ExcludeSubjectPrefix=false'}
com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException: 550 5.2.0 from address is not allowed
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:229) [atlassian-mail-6.0.1.jar:?]
at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:39) [atlassian-mail-6.0.1.jar:?]
at ...
...
...
...
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.2.0 from address is not allowed
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374) [jakarta.mail-1.6.5-atlassian-2.jar:1.6.5-atlassian-2]
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2095) [jakarta.mail-1.6.5-atlassian-2.jar:1.6.5-atlassian-2]
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1301) [jakarta.mail-1.6.5-atlassian-2.jar:1.6.5-atlassian-2]
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendMimeMessage(SMTPMailServerImpl.java:263) [atlassian-mail-6.0.1.jar:?]
at com.atlassian.mail.server.managers.jira.EventAwareSMTPMailServer.sendMimeMessage(EventAwareSMTPMailServer.java:30) [classes/:?]
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:217) [atlassian-mail-6.0.1.jar:?]
... 305 more
Cause
The error message "550 5.2.0 from address is not allowed" generally means that the email server has rejected the message because the "From" address is not permitted to send messages through the server. In this case, the issue occurred with users who had special characters in their email addresses or usernames, as the mail server does not support UTF-8 headers.
Solution
To resolve this issue, you can update the user's email addresses or usernames to remove any special characters, ensuring compatibility with the mail server. Alternatively, the SMTP server administrator can review and update the server configurations to allow the use of special characters by enabling UTF-8 support.
Was this helpful?