This section explains the navigation item Email in navigation group Email in the Admin Tool. Furthermore, the email-related system properties and the configuration for email duplication are covered.
Before we explain the administration of email accounts using the ConSol CM Admin Tool, we will give you a short introduction on the subject email with ConSol CM, because this represents a core functionality of the application. ConSol CM can send and receive emails.
In this section, the focus is on general mailing with ConSol CM and on the set-up in single server environments. In case you have to configure a CM cluster, please read this section first and proceed to the ConSol CM Set-Up Manual, section Email.
Emails can be sent manually by an engineer or automatically by the system. Manual emails are sent using the Ticket Email Editor. In most systems, by default, the ticket's main customer is the receiver of the email, but the engineer can select or type any other email address. The system-wide default value can be changed by an administrator using Page Customization, using the attribute mailToSelection in the Page Customization section. Furthermore, the engineer can use email templates and/or quote ticket text. Please see the ConSol CM User Manual for a detailed introduction about working with the Ticket Email Editor.
Figure 388: ConSol CM Web Client - Ticket Email Editor
Automatic emails may be sent by ConSol CM in situations like the following:
The ConSol CM system can fetch emails from one or more mailboxes (= email accounts) on one or more mail servers. The mailboxes are configured in the Admin Tool (General Email Configuration (Navigation Item Email)). Please keep in mind that ConSol CM works with mailboxes here. Each of the mailboxes can be reached by at least one email address. In certain cases, one mailbox might be used for more than one email address. This can be significant when writing Scripts of Type Email.
As far as the mail server is concerned, ConSol CM is just a regular email client fetching emails using a standard mail protocol: IMAP(S) or POP3(S). Depending on the mail server configuration and on the ConSol CM system property cmas-esb-mail, mail.delete.read (in Mule/ESB mode) resp. cmas-nimh, mailbox.default.task.delete.read.messages (in NIMH mode), the emails are deleted from the mailbox on the mail server after ConSol CM has picked them up. The default setting is mails are not deleted after pick-up.
If you do not want ConSol CM to delete emails from the mail server, please make sure to monitor the mailbox(es) to avoid a data overflow and server or performance problems.
All incoming emails are first stored in an incoming email pool in ConSol CM and are then processed in a chain of email scripts. Please see section Scripts of Type Email for a detailed explanation of those scripts. When an email cannot be processed, the administrator will receive a notification email. The unprocessed email is listed under Email Backups.
There are different possibilities concerning the default system behavior for an incoming email:
By modifying the email scripts (see section Scripts of Type Email), the default system behavior can be changed. However, this can corrupt core functionalities of the system and should not be done or only done by very experienced ConSol consultants!
IMPORTANT INFORMATION
Since ConSol CM version 6.9.4, there are two modes to receive incoming emails:
For all configurations/settings which are valid for both modes, no further notes are added. For all settings which vary depending on the mode, this will be explained in separate (i.e., Mule/ESB- or NIMH-specific) sections.
In this navigation item you can set the parameters for the email connection.
Figure 389: ConSol CM Admin Tool - Email
The Email screen shows the following information:
Admin email:
Enter the email address which should receive general messages or warnings from the system. Using the GUI, you can enter one admin email address. Multiple addresses separated by commas are possible, but they have to be entered directly in the navigation item System Properties. Use the system property cmas-core-security, admin.email. The total number of characters (for both GUI and property) must not exceed 72. If there are many recipients, we recommend using a mailing list on the mail server system.
The configuration of incoming email is divided into two areas:
Password
The password of the email account.
Please keep in mind that one email account can have more than one email address. So here, you are dealing with the account name, i.e., with the mailbox. When you edit the Admin Tool script(s) that process the incoming emails, it might be required to use the email address. The email address is also required when you configure the Reply-To address, the From address, and queue-specific email addresses! So be sure to use the correct parameter: mailbox or email address!
Outgoing email subject template:
Describes the pattern which is used to create the ticket ID in the subject of an outgoing email. The template should be matchable by the incoming email subject pattern. Via the Edit button on the right you can modify the incoming email subject pattern and outgoing email subject template and verify if they match.
Example:Ticket (${ticketName}) would match the example RegEx above.
You can check if the pattern for the incoming email subject pattern and for the outgoing email subject template match by using the Edit button and the editor that is opened. Please make sure that the email subject has been set correctly at all locations, e.g., also in all workflow scripts and Admin Tool scripts!
For the configuration of incoming email you might also want to check the email-related system properties, see System Properties. Particularly, the polling interval (the time interval for fetching emails from the mail server, system property cmas-esb-mail, mail.polling.interval) might be of interest.
The connection data for outgoing emails are set here:
Outgoing email connector
Use the following format:
smtp://<IP address of mail server>:<port>
Example with standard port:
smtp://123.123.123.123:25
Example for SMTP server with authentication:
smtp://test:testpassword@ConSolMailServer2:25
The example above uses the following parameters:
Please note: If user name and/or password which have to be provided contain the character '@', the '@' has to be coded as %40.
Starting with CM version 6.9.4, there are two modules for the retrieval of incoming emails:
In the current ConSol CM version, you, as an administrator, can decide which module to use: you can run ConSol CM in Mule/ESB mode or in NIMH mode. Mule/ESB and NIMH use different system settings which are stored as system properties. They are explained in the following two sections. The "switch" which changes the incoming email mode is the system property cmas-core-server, nimh.enabled which can be set to true or false.
The sending of emails, i.e., the SMTP server configuration is not influenced by the incoming email mode.
Mule is the internal ESB (Enterprise Service Bus) which is - among other things - used to retrieve incoming emails.
The Mule/ESB integration is deprecated in CM versions 6.11 and up. However, since you might have to perform the transition from Mule/ESB to NIMH when updating to CM 6.11, Mule/ESB will be explained in this manual.
When Mule/ESB Mail is enabled, the following mechanisms apply:
The following figure provides an example of Mule/ESB Mail-related system properties. Please also refer to the detailed explanation of Mule/ESB Mail system properties in List of System Properties by Area.
Figure 390: System properties for Mule/ESB Mail
NIMH, the New Incoming Mail Handler, is a proprietary module of ConSol CM. The following picture provides an overview of all components.
Figure 391: NIMH components
When NIMH is enabled, the following apply:
The following figure provides an example of NIMH properties. Please also refer to the detailed explanation of NIMH system properties in List of System Properties by Area).
Figure 392: System properties for NIMH, 1
Figure 393: System properties for NIMH, 2
Information about system property mail.on.error
In ConSol CM versions up to 6.9.4.1, the default value for the property mail.on.error (module cmas-nimh-extension) is false.
In ConSol CM versions 6.9.4.2 and up, the default value for the property mail.on.error (module cmas-nimh-extension) is true.
The value will be automatically set to true during an update from versions 6.9.4.1 and lower to a version 6.9.4.2 and higher. Please be aware that you may have to disable these email notifications after an update in case you previously intentionally set the property value to false.
If you want to switch from Mule/ESB ("old") mode to NIMH ("new") incoming mail mode, you have to perform the following steps (please also note the info box Step-by-step guide for a switch from Mule/ESB Mail to NIMH):
Step-by-step guide for a switch from Mule/ESB Mail to NIMH
If you have to switch your ConSol CM system from Mule/ESB Mail to NIMH, perform the following steps in the order listed here:
For a mapping of ESB Mail system properties to NIMH system properties, please refer to section List of System Properties by Area.
Changed behaviour for POP3 Pollers
In Mule/ESB mode with POP3, read emails were automatically deleted on the mail server. In order to achieve the same behavior with NIMH, please set the ConSol CM system property cmas-nimh, mailbox.default.task.delete.read.messages (or cmas-nimh, mailbox.YOUR_MAILBOX_NAME.task.delete.read.messages if you want to specify it per mailbox) to true.
In a cluster, NIMH can run only on one node. On that node, a system property has to be set: cmas-core-server, nimh.enabled.CLUSTER_NODE_ID = true (for example: cmas-core-server.nimh.enabled.1 = true). This property replaces the general property cmas-core-server.nimh.enabled = true.
On all other nodes, NIMH and Mule (and ESB services) have to be disabled. Furthermore, set the system property cmas-nimh, mailbox.polling.threads.mail.log.enabled = true. Without this setting there is the chance that incoming emails may be processed several times by different cluster nodes.
Please see explanations on the Page Customization page at showCloneOption and appendOrReplaceOnClone.