Video Screencast Help

Expanding Servicedesk 7.5 - Part 1 - Monitoring Multiple Emails with a Single Email Monitor Application

Created: 22 Jul 2013 • Updated: 10 Sep 2014 | 9 comments
Language Translations
BRING's picture
+7 7 Votes
Login to vote

Servicedesk has the ability to process email messages and automatically generate incidents for technicians to work. This is very helpful in allowing end-users the ability to quickly send an email documenting a problem, and have a trouble ticket automatically created as a result.

In Servicedesk 7.5, the email monitoring application is a user-editable process. This provides some flexibility to modify the project to accommodate specific needs.


One of the difficult things that users, especially those in larger environments experience is the inability to support multiple email boxes. Some companies have taken a tactic of creating multiple monitors to handle the multiple email boxes. This works, but puts additional memory load on the Servicedesk server, in that multiple web services are running in the background. It also requires that, if changes need to be made, the correct mail account's related monitoring application must be selected and modified.

Also, the ability to classify an incoming incident, based on the target email address, and to assign the email to a specific service queue does not exist in the out of box product, without some substantive customization.


In a two part series of articles, we will describe how this is done. The first article will explain how the ability to support multiple email boxes, from differing email host servers can be generated and maintained. The second article will outline how to configure the data mappings to accommodate classifying the incident and assigning to a Service Queue, based on the email address the message was sent to.

Here is the link to that second article 

Expanding Servicedesk 7.5 - Part 2 – Defining Classification & Service Queues from within Email Monitor

The attached projects will serve as an example of how this can be accomplished. If you are using ServiceDesk 7.5 SP1 please make sure to download the SP1 package files as there has been significant changes to E-mail Monitor in ServiceDesk 7.5 SP1.

The SD.Email.Monitor-Multiple project takes the default project and makes a couple of changes.

  1. It takes what was the default Primary Model and makes it a new linked model called GetEmails.
  2. A new primary model now contains a new SQL integration component that queries a new table in the database for email server and account information, and then, based on the account information, recurses the discovered mailboxes, and processes the emails.
  3. The second article will show that one other modification has an embedded model that handles the classification and service queue assignment. This is done with a small change to the ProcessMessage model.

This completes the small overview. Lets move to getting it installed.

Installation and Configuration

Changes to the Servicedesk Server

Installing the Projects

The two projects attached, SD.Email.Monitor-Multiple, and EmailServerAccountAdmin both have a change that must be made to accommodate the destination SQL server. The "Connection String" property must be changed to accommodate your SQL server.

If you know your Connection String:

  1. When you open each project (EmailServerAccountAdmin and SD.Email.Monitor-Multiple), click on the top level of the tree on the left side. This will bring up the project information, properties and settings.
  2. Click the "Properties" tab, and find the "Connection String" property.
  3. Click in the Value field on the same row as the ConnectionString property, and replace the connection string with the correct one from your server. See the screenshot below.


If you do not know your Connection String:

  1. Open the Log Viewer tool.
  2. Once open, click on the SymQ Configuration tab.
  3. On the left side, click on the SymQ_Local_Defaults configuration.
  4. In the list on the right side, scroll down until you find the "local.workflowsqlexchange-"
  5. Highlight this entry and click the "Edit" button.
  6. The SQL connection string will be the top most entry. Highlight and copy this value.
  7. Click OK .


  1. Open Notepad and paste the connection string into a Notepad window.
  2. Switch back to the EmailServerAccountAdmin or SD.Email.Monitor-Multiple project, whichever you were working on.
  3. Now follow steps 1-3 above, using the copied connection string.
  4. Save the Project, but leave open.
  5. Now open the other project and adjust its connection string as necessary.
  6. Save the second project.

SD.Email.Monitor-Multiple Project -Publishing as a Regular Web Service vs. Windows Service

Our first step will now be to decide which publishing option best meets the needs of your environment. Should you publishing the email monitoring tool as a web service, or as a Windows Service? Let's look at the options.

Publishing as a Web Service

The default configuration is to publish as a web service. IIS controls the timeout settings of this monitoring project. It also can be very difficult to support more than 100 emails an hour in this configuration. If the emails contain large attachments, again the IIS timeout issues will be a concern. If your overall email traffic is low, but you want to have a large source of email addresses that are monitored, then this might be the correct choice for you.

To Publish As a Web Service:

  1. Find the previously opened SD.Email.Monitor-Multiple project. Click on the "Publish Project" .icon in the toolbar and select "Publish Project". See the screenshot below.
  2. Click the checkbox next to the local server, or the server of your choice, and click Next.
  3. Click Next.
  4. Click Next.
  5. Your project will be published.


Publishing as a Windows Service

To publish as a Windows Service, you will need to perform a couple of items before you actually publish.

  1. Since SD.Email.Monitor is published by default as a Servicedesk web service, you should remove the IIS virtual directory for it. Open IIS, and find the SD.Email.Monitor service under the Default Web Site, and remove it.
  2. Reset IIS Services.
  3. Find the published location of SD.Email.Monitor and remove the properties.config file. This file is found at .../Symantec/Workflow\WorkflowDeploy\Release\SD.Email.Monitor. Delete the properties.config file.
  4. Now return to the open SD.Email.Monitor-Multiple project.
  5. Make sure that the top level of the tree is highlighted in the left column, as show below. You should see all project tabs as well.


  1. Now click on the Publishing tab, and find the Deployment Section. It's shown in the screenshot above.
  2. Verify that the Deployment Type is set to Windows Service. If not , change it from Web Service, to Windows Service. Make a mental note of the Windows Service Name value, (In this case, Email Monitoring Service.
  3. Now you can find the publishing icon in the toolbar, and Click on the "Create Publishing Installer" item.
  4. You will see the screen below. All of the items should match. Change the path of the installer to go to the published project folder. In this case, it will be ...\Symantec\Workflow\WorkflowDeploy\Release\Sd.Email.Monitor\bin. This will place the SD.Email.Monitor.Setup.exe file in that folder.


  1. Click OK.
  2. You will get a screen similar to what is seen below. Rather than click the run installer button, click the Open Directory button.


  1. In the folder that opens, you will see the file SD.Email.Monitor.Setup.exe. Run that file, and accept the default responses. If you have published this previously, you may need to go and stop the email monitoring service first, then let the installer complete.
  2. The service is now installed, but not running yet. In the same folder, you should see a file called Install.bat.
  3. Run Install.bat. This will activate the Windows Service.
  4. Lastly, we need to set the newly installed service to run as the service account, (if your environment requires or is configured to use a service account). Open up the Windows Services from the System Administrators screen. Find the newly installed Email Monitoring Service. Right-Click, on it, and select "Properties", then click on the Log On tab. Now you can add the Service account, with its appropriate credentials. Save the settings and restart the service.

Notes on the SD.Email.Monitor-Multiple application.

You should note that the default frequency for the monitoring application to check for email messages is 15 minutes. You may, based on your load, or for testing purposes, desire to reduce that number. To do so, simply select on the publishing screen, under the Schedule section, the ellipsis next to the schedule. You can then edit the Every Day Pattern frequency as needed.

The EmailServerAccountAdmin Project

With the Email monitor ready to use, we now need to publish the Email Server Account Admin Package, and configure the accounts to monitor.

Installation and Publishing

This is a user -activated web application, and at the end we will include instructions on how to add this to your Administrative Tools service catalog.

To Publish the EmailServerAccountAdmin project:

  1. Find the previously opened EmailServerAccountAdmin project. Click on the "Publish Project" .icon in the toolbar and select "Publish Project".
  2. Click the checkbox next to the local server, or the server of your choice, and click Next.
  3. Click Next.
  4. Click Next.
  5. Your project will be published. Make a note of the URL highlighted in the screenshot below. Your URL may be different. Highlight and copy the URL.


Making the Tool Useable in the Service Catalog

We can now take the URL that we captured from the published project and build a quick new entry in the service catalog.

  1. Open the ProcessManager Portal.
  2. Click on Admin>Service Catalog Settings. You should see the Administrative settings.
  3. Click the lightning bolt on the upper right corner, and click add Web Form.


  1. You should make your form match the one shown above. Once complete, click Save.
  2. Now click on the Submit Request Tab, then select the Manage Monitored Email Boxes tool.
  3. You will see screen that looks similar to the one below


  1. Simple add the appropriate information for the email Servers, and mail boxes that are required to be monitored. Note that IMAP and POP are still the only options to monitor. If your authentication credentials require a domain reference, that is entered in the Box User Name: field as DOMAIN\UserName.
  2. Complete the rest of the information as required.
  3. Click Add Server/Account
  4. Now you can continue to add additional server and account information for the number of boxes you need to monitor.
  5. Click Done when complete.


The combination of these two project provide the tools necessary to add to your existing Servicedesk 7.5 system the ability to process emails from multiple boxes. Due to the components used, this is not backwards compatible to 7.1 versions of Servicedesk. This will ultimately extend your ability to monitor additional email boxes.

The 2nd article will focus on taking the email address, and use it to route messages to specific queues and classify the messages as well.

Comments 9 CommentsJump to latest comment's picture

Not something I need currently, but great job on a well written article and double great job for what I'm sure is a project very useful to many ServiceDesk users! Looking forward to part 2.

If a post solves your issue, please mark it as a solution. It makes these forums better for everyone.

Login to vote
BRING's picture

Added a revised version of the monitor fixed an invalid reference to a email protocol.  Please remember that these are package files and if the browser renames to have a .zip extension, then rename to a .package file prior to installing.

Login to vote
Eisenkarl's picture

Great article . It works fine. But one question:

How can we ensure that the documents which are attached in the email will be added to the incidentticket? If we sent an email to the inbox the ticket will be created but the attachment is not visible in the ticket.

Login to vote
BRING's picture

Are you have problems with this?  The default behavior for email monitor is to include attachments to the email as attachments in the incident.  Is this not working for you?

Login to vote
QuietLeni's picture


Is this still OK to use in 7.5 SP1? I think so, but just checking.

Kindest regards,


What is the point of storing information, if you never look at it? Let us help you leverage your Inventory to create processes that will automate cumbersome tasks!

Login to vote
BRING's picture

Yes - But of course testing is always good!

Login to vote
hmassie's picture


Have this installed as a service. It works but is regulalry hanging. Basically it stops reading emails from the inboxes - even though connectivity to the email boxes validates just fine in the configuration tool. Restart the service and the backlog and new emails process fine until it hangs again.  

Can't really be constantly restarting the service when the whole reason for running it as a service is because of the volume of tickets being sent in.....

Think this is a stay alive connectivity issue that is not handled properly by the code (e.g. if the code tries to connect while the email server is offline for something like back up purposes it fails and won't then re-establish connectivity?).

May be wrong but would welcome thoughts and solutions as this is now live in a customer envornment and is causing service issues.

Thanks in advance


Login to vote
Marilou Maala's picture

Thanks for the heads-up.. I am about to try this for our POC..

Login to vote
jmillner's picture

I realize this post has been up for some time, wondering if my question will be picked up.

We've installed Service Desk 8.0.3000.32. I don't understand why this very important functionality that was included in Help Desk was not included in Service Desk. Your contribution here is invaluable, but any chance you have produced the same for the latest version? Thank You.

Login to vote