com.atlassian.mail.MailException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I updated JEMH and now when there is fired event what listener should check, it won't send email and gives an error: 2014-04-25 00:17:27,765 Sending mailitem To='Martin.Ounap@mnt.ee' Subject='Teie juhtum "MKMHELPD-171 Test" on vastuv?etud.' From='test.itabi@mkm.ee (MKM IT abi)' FromName='Martin ?unap' Cc='null' Bcc='null' ReplyTo='test.itabi@mkm.ee (MKM IT abi)' InReplyTo='<JIRA.14202.1398373648602@mnt-jira.mts.local>' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@3d710d38' MessageId='null' ERROR ServiceRunner Mail Queue Service [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='Martin.Ounap@mnt.ee' Subject='Teie juhtum "MKMHELPD-171 Test" on vastuv?etud.' From='test.itabi@mkm.ee (MKM IT abi)' FromName='Martin ?unap' Cc='null' Bcc='null' ReplyTo='test.itabi@mkm.ee (MKM IT abi)' InReplyTo='<JIRA.14202.1398373648602@mnt-jira.mts.local>' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@3d710d38' MessageId='null' com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44) 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:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:712) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:115) at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:53) at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:162) ... 7 more I found out it was because at Project administration I set email to "test.itabi@mkm.ee (MKM IT abi)" but when I set it to "test.itabi@mkm.ee" then it is ok. But in that case the sender name is wrong. With the old version, it worked and the sender name was set to "MKM IT abi" now it was reporters name, and it is not OK. Can you please help?
    via by Martin Õunap,
  • Hi, I updated JEMH and now when there is fired event what listener should check, it won't send email and gives an error: 2014-04-25 00:17:27,765 Sending mailitem To='Martin.Ounap@mnt.ee' Subject='Teie juhtum "MKMHELPD-171 Test" on vastuv?etud.' From='test.itabi@mkm.ee (MKM IT abi)' FromName='Martin ?unap' Cc='null' Bcc='null' ReplyTo='test.itabi@mkm.ee (MKM IT abi)' InReplyTo='<JIRA.14202.1398373648602@mnt-jira.mts.local>' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@3d710d38' MessageId='null' ERROR ServiceRunner Mail Queue Service [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='Martin.Ounap@mnt.ee' Subject='Teie juhtum "MKMHELPD-171 Test" on vastuv?etud.' From='test.itabi@mkm.ee (MKM IT abi)' FromName='Martin ?unap' Cc='null' Bcc='null' ReplyTo='test.itabi@mkm.ee (MKM IT abi)' InReplyTo='<JIRA.14202.1398373648602@mnt-jira.mts.local>' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@3d710d38' MessageId='null' com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44) 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:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:712) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:115) at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:53) at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:162) ... 7 more I found out it was because at Project administration I set email to "test.itabi@mkm.ee (MKM IT abi)" but when I set it to "test.itabi@mkm.ee" then it is ok. But in that case the sender name is wrong. With the old version, it worked and the sender name was set to "MKM IT abi" now it was reporters name, and it is not OK. Can you please help?
    via by Martin Õunap,
  • If you have 'createusers=true' entered as a Mail Service parameter, and JIRA receives an e-mail with an invalid "from:" field (for example, a mail client dumping the persons name in there instead of an e-mail address) JIRA will go ahead and create a user with an invalid e-mail address field. A further problem is that JIRA will then attempt to send the newly created user a password e-mail, resulting in the following stacktrace: {code} 2007-02-16 11:22:00,593 Sending mailitem To='"Helge Marstrander"' Subject='Account created' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='null' MessageId='null' ERROR [atlassian.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='"Helge Marstrander"' Subject='Account created' From='null' 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.internet.AddressException: Missing '"' in string ``"Helge'' at position 6 at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:183) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:47) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Caused by: javax.mail.internet.AddressException: Missing '"' in string ``"Helge'' at position 6 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:676) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:65) at com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:77) at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:44) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:166) ... 7 more {code} Instead, JIRA should not create a user with an invalid e-mail in the first place.
    via by Tim Pettersen [Atlassian],
  • Hudson email ext plugin bug?
    via by Unknown author,
    • com.atlassian.mail.MailException: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44) 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:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: javax.mail.internet.AddressException: Missing ')' in string ``(MKM'' at position 4 at javax.mail.internet.InternetAddress.parse(InternetAddress.java:712) at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633) at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111) at com.atlassian.mail.MailUtils.parseAddresses(MailUtils.java:115) at com.atlassian.mail.server.impl.util.MessageCreator.updateMimeMessage(MessageCreator.java:53) at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:162) ... 7 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,