How to Enable the Capability to Restrict Email Notifications and Job Alerts in Advanced Reporting (Jaspersoft) to Trusted Email Domains

Document ID : KB000011534
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

How to Enable the Capability to Restrict Email Notifications and Job Alerts in Advanced Reporting (Jaspersoft) to Trusted Email Domains

Question:

How can we prevent report attachments from Advanced Reporting (Jaspersoft) from being sent outside of the organization?  We do not want users to email reports to non company email addresses.

Answer:

Steps to be followed by System Admin:

1.  Identify the email domains they should be allowed. For example: ca.com, catechnologies.com

2. Use the following commands to control where emails can be sent:

      Add Trusted Email Domains: This command allows to add trusted email domains for sending the notifications. 

Note: This command can be executed any number of times, and each time it is executed, it adds the given domains to the already existing list of trusted domains.

 

Command:

admin jaspersoft email -addDomains <comma_seperated_list_of_trusted_domains>

 

Eg:  admin jaspersoft email -addDomains xyz.com,abc.com

 

Message:

abc.com,xyz.com added successfully to the list of trusted domains.

 

Display List of Trusted Email Domains:  This command displays the list of existing trusted email domains.

 

Command:

admin jaspersoft email listDomains

 

Message:

List of trusted domains:

abc.com,xyz.com

 

To Remove Trusted Email Domains:  This command allows to remove email domains from the existing list of trusted email domains.

 

Command:

admin jaspersoft email -removeDomains <comma_seperated_list_of_domains_to_remove>

 

E.g: admin jaspersoft email -removeDomains xyz.com,zzz.com

 

Message:

zzz.com does not exist hence cannot be removed.

xyz.com removed successfully from the list of trusted domains.

NOTE: To know the existing list of trusted domains use the command: admin jaspersoft email listDomains . 

 

Disable Email Notifications: This command allows to disable the report emails and job status notifications, regardless of any configuration of trusted domains.

 

Command:

admin jaspersoft email disableNotifications

 

Message:

Jaspersoft Email and Job notifications are disabled.

 

Enable Email Notifications: This command allows to re-enable report emails and job status notifications.

  

Command:

admin jaspersoft email enableNotifications

 

Message:

Jaspersoft Email and Job notifications are enabled now.