Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-65375

JIRA recognizes email with - character at the front as an invalid email address

    XMLWordPrintable

Details

    Description

      Summary

      When sending an outgoing email with dash '-' at the front of the domain, JIRA recognizes it as an invalid address even though it is valid. It also fails to send a notification email to this email address.

      Environment

      JIRA Cloud version 1000.5.2

      Steps to Reproduce

      1. Login as a sysadmin and create a test email with - as its first character (e.g: -nhassan@atlassian.com)
      2. Go to System
      3. Go to Outgoing Mail to send a test email and error message will display in the Mail log

      Expected Results

      Successfully send an outgoing mail to the email address

      Actual Results

      Mail log:

      An error has occurred with sending the test email:
      com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses;
        nested exception is:
      	com.sun.mail.smtp.SMTPAddressFailedException: 501 5.1.3 Bad recipient address syntax
      
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:214)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:151)
      	at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute(SendTestMail.java:107)
      	at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
      

      In log:

      /service/j2ee_jira_4f02d26bf335d381c3ef/log/main/@40000000572c39023ac3c12c.s:@40000000572c31460a836ddc 2016-05-06 01:53:00,171 Sending mailitem To='-nhassan@atlassian.com' Subject='(LS-4342) FW: Upload Wholesaler orders Ecommerce CO ' From='null' FromName='' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@ad42d6' MessageId='null' ERROR anonymous    Mail Queue Service [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='-nhassan@atlassian.com' Subject='(LS-4342) FW: Upload Wholesaler orders Ecommerce CO ' From='null' FromName='' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.23801.1462513908000@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@ad42d6' MessageId='null'
      

      Workaround

      No workaround at the moment

      Attachments

        Activity

          People

            Unassigned Unassigned
            nhassan Nur Asnida Hassan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: