JEMH Only process from our domain

Is it possible to configure a JEMH profile to only process email addresses that end in

Everything else i would like it to drop, and delete from the mailbox.

2 answers

1 accepted

1 vote
Accepted answer
Henning Tietgens Community Champion Apr 29, 2013

Within the project mapping you can define a domain mapping (a regex) for addresses to only process emails with matching addresses. I'm not sure if there is an option to drop emails which doesn't match.

Maybe @Andy Brook can help with the rest.


Im adding the following regex into that field, and clicking submit and its not saving?


Every time i click submit, it deletes my change and i go back into to edit and its gone???

Henning Tietgens Community Champion Apr 29, 2013

You first have to select a project and save the config (because JEMH has to load the matching field contents for that project), than edit the config again.

The profile is already created though, this is not a new profile. its been running for months im just adding this change and its not saving.

Adding a change and not saving indicates that a field has ben entered that exceeds what I'd anticpiated, generally in a 255character field.

Many fields have been expanded from initial 255char to TEXT, but changing the schema is not something that can happen automatically. I've documented necessary steps on the wiki, a few SQL commands and you should be good to go.

To locat the specific field causing the problem, disable and re-enable the plugin, this flushes the bad data. Edit your profile and change /save one field at a time, looking specifically for text content greater than 255 characters.


Henning Tietgens Community Champion Apr 29, 2013

Sorry, I 'm talkiing about the domain mapping config, not the whole profile.

Yes, Henning is right, its not a streamlined editing experience currently, flow is:

1. Edit Project

2. New Project Mapping, enter project Key, save. A new mapping is created.

3. On the Edit Project screen, Edit that Project Mapping.

4. Create a Domain/Group/Keyword mapping, and save. The new rule will be listed at the bottom of the Edit Project Mappings Screen.

Repeat 4 for new rules, use the navigation links to go back to the Configuration View at any time.

Cheers andy this worked and the field is now being populated, however the regex i entered did not stop me from sending a raising a ticket using a googlemail address.

Is the regex not correct?


Thats much easier i did see that configuration but i wasnt sure adding to whitelist would auto block everything unless its in the whitespace.

Just done a test and it states a mail from was dropped, perfect.

Henning Tietgens Community Champion Apr 29, 2013

Uh, ok. I thought you're talking about "addressees" and not senders. My fault :-)

The question as titled can be best accomplished by setting Whitelisting> Whitelist Senders as .* The result of this is that everything else is blacklisted. If you tick 'Silently Drop Blacklist Matches?' then you should be done?

Project Mappings aren't for blacklisting they are for 'routing', once any whitelisting/blacklist has been done.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,950 views 19 22
Read article

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