Forums

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

restrict out-going emails to only one email address

sysops@altibox.no October 4, 2021

Hi, 
we have test and production environments for jira and we have disabled the email notifications for jira in the test environment to avoid outgoing e-mail "spamming". But now we need to check a plugin 'Email This Issue' to integrate our jira with outlook. 

I need to know if there is a way to restrict the email receiver to just on email address in jira configuration in test environment so it will send all the out-going emails to a specific email address.

1 answer

0 votes
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.
October 4, 2021

No, there's no way to do this, Jira always uses the email addresses it has been told to contact people on.

However, if you have disabled the email in the recommended way (step 8 in https://confluence.atlassian.com/adminjiraserver/creating-a-test-environment-for-jira-966063324.html is a load of environment variables that stop all email processing by a node/server), that is a block at the very last place it can be blocked.

In that case, Jira is actually still doing all the work involved in the send, including logging, and you can almost entirely rely on the logs saying "I tried to send email to someone@somewhere.org" as being an actual send.

If that isn't good enough, then I resort to brute-force - change the outgoing email server settings to be a mail server that you control and have set up to dump any incoming email into a local mailbox, not relay them to the real recipients!

sysops@altibox.no October 5, 2021

thanks for your quick reply,

outgoing emails are disabled as suggested in the step 8:


DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true"

 but I can not see any logs like atlassian-jira-outgoing-mail.log

Suggest an answer

Log in or Sign up to answer