Forums

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

Disable Jira mail puller & processor via SQL or REST

Topicus May 22, 2018

I want to disable the Jira build-in "Email puller" and "Email processor" without having to manually disable it in the Jira GUI.

We have A Jira test environment which frequently synchronizes data from our production Jira.

This process is automatized and I want to disable this functionality because they create issues when they are enabled after a completed sync.

I tried enabling SQL query logging and reverse engineering HTTP rest calls, but I can't find anything that we can use for automation purposes.

 

These functions are found here:

jira_url/secure/admin/GlobalMailSettings.jspa

An SQL update query or rest api call would  be sufficient to include in out automation solution.

2 answers

2 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
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 22, 2018

The recommended method is to disable the email services, not mess with database or REST calls.  REST can't do it, last time I looked, and if you did this in the database, you will need to stop Jira before you do anything anyway.

Add these to the setenv file in <jira install>/bin directory, and you'll find all your data works fine, but all calls to mail servers stop dead.

-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Djira.trackback.senddisabled=true

Topicus May 22, 2018

Cheers!

1 vote
Answer accepted
Alexey Matveev
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 22, 2018

I think that you should disable mail on Jira startup. You can find how to do it here:

https://community.atlassian.com/t5/Jira-questions/Disable-incoming-emails-after-restore/qaq-p/229712

Topicus May 22, 2018

Cheers!

Suggest an answer

Log in or Sign up to answer