Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to be warned if Email Handlers skip emails?

Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2019

Hi all,

sometimes email handlers can't process email due to various problems (project permissions, email with unsupportet charachters, users not associated to jira-users group, etc...) and doesn't create issues.

It would be nice to be warned from Jira once a day at least on the emails that are skipped and why.

I'm thinking at a script to check the log and find out if there are mailfetcherservice warnings. Does anybody ever did something similar? Are there any better way to do it?

2 answers

1 accepted

0 votes
Answer accepted
Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2019

Hi all,

I just had some time to find an easy workaround for this issue and this is my sheduled command that I run once a day:

body="$(tail -n 100 /opt/tomcat_jira/logs/catalina.out | grep c.a.mail.incoming.mailfetcherservice)" && echo "$body" | mailx -s jira-mailfetcher your.email@email.it

Suggestion or improvements are welcome!

0 votes
Luca Andreatta
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2019

Hi @Rachel Wright , I noticed that you are a black-belt of Jira!

Did you ever stumble upon the issue that I posted here? Do you have any suggestion or workaround that I can try?

I was thinking, as a workaround, to build a bash script to check the log for the various error messages and email me if any have been found. What do you think?

Rachel Wright
Community Champion
June 2, 2019

Hi @Luca Andreatta , yes, I frequently encountered your skipped email message problem and was always frustrated by it.  The only other thing I can think of is to query the mailbox's message subjects, search for a corresponding Jira issue with the same summary, and create a report of any that don't appear for further manual investigation/creation.

I also publish a big list of caveats of using the mail handlers in Confluence, so at least users are aware that creation isn't 100%.  I ask the owners of the mailboxes to periodically, manually, check for missing messages too.  That's not a great system or use of time, I know.

Let us know how it's coming with your script idea!

Rachel Wright
Author, Jira Strategy Admin Workbook

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events