some emails are not processed

How can I debug how incoming emails are processed? 
Usually mails send to the monitored email address appear right away in JIRA but there are some emails that apparently not processed.

I have configured the email handler to assign a default  creator to a issue if the sender cannot be found, accept bulk mail (it's an internal server) and have no limit configured but still some mail sit in the inbox without showing up in JIRA.

3 answers

The whole email processing seems to be faulty.

We use the ldap integration to pull the users from our ADS. Only 2 of those useres are JIRA admins, but the rest should be able to create tickets via email.

It strangly works most of the time, but the emails are not deleted in the mailbox. 

If I send an email from an email account that is not configured in the ADS (and so not known to JIRA) the mail is processed and deleted as normal.

0 votes
Jack Brickey Community Champion Oct 11, 2016

Stefan, unsure if the issue captured below is the cause of your troubles but I would advise that you have a look, as it was for me. If after reviewing you feel this is your issue then please post an update/accept answer.

With that said, your post is a bit confusing as you mention creating a default creator in the mail handler but the question is raised agains JSD not JIRA SW and JSD doesn't have the same email handler methodology and no default creator. I am assuming here that, in fact you are using both JIRA SW and JSD? Regardless, there are a good number of Atlassian product issues reported that are similar to what you raise here so you may want to do a search there if the one provided doesn't hit the mark.

https://jira.atlassian.com/browse/JRA-30521

 

Actually that was only half of the problem.
Yes, I had 2 mail handlers active, one for JSD and one for JIRA Core. This also explained why I sometimes got two issues out of one mail.
I changed that now but there are still mails that are NOT processed. 

Now I found the error: " Error while serializing message"
with the Java error:

 com.sun.mail.util.FolderClosedIOException

at com.sun.mail.imap.IMAPInputStream.forceCheckExpunged(IMAPInputStream.java:107) [jira-email-processor-plugin-2.2.5_1472010792000.jar:1.5.6]

Jack Brickey Community Champion Oct 12, 2016

When you say they are not processed does that mean if you actually log into the email w/ an email client you see those that are "not processed" as being unread? Or are emails from certain individuals not being processed? In my case those not being processed were from users that had JIRA core accounts but not JIRA SW and not a JSD customer. In other words....

JSD customer accounts - can successfully create a ticket against a project in JIRA SW via email

JIRA core accounts  w/ access to Confluence but NOT JIRA SW - could not create a ticket against a project in JIRA SW via email

hope that is clear

I see them as beeing unread and I do get an error.
It seems to have to da something with encoding / attachments / content-type I just have not figured out what exactly.

A mail from user a will be process except if it contains an attachment in which case I will get the above mentiones error in the log file.

A mail from user b will be process without error and an attachment will be placed inside JIRA.

Jack Brickey Community Champion Oct 12, 2016

that is interesting. i'm intrigued as to the cause. You may wish to open a ticket w/ Atlassian. Regardless if you find the answer please post here.

I allready have an ticket open. I will get back here if I have any kind of solution

hi @Stefan Immel

did you find a solution to this?

@Stefan Immel also wondering the same thing

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

36 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you