Monday, September 26, 2016

Using hMailServer to relay Stratagy ES UM Messages using Authentication

If you've ever had a request to have voicemails forwarded to email from a Toshiba phone system using Strategy ES, there is some tweaking you'll need to do but it is possible with a third party mail service called hMailServer.     

hMailServer can be downloaded at http://www.hmailserver.com/index.php?page=download


a.) Login to your voicemail server
b.) Start Toshiba Network eManager (icon on desktop)and login
c.) Click on Connect to Equipment -> check the equipment to connect to, then click Connect
 
1. Configure Stratagy to relay all mail to a specific IP address and port
Click on Stratagy ES at the top -> Then Click VM System -> VM Parameters
 
 
Define an IP address and SMTP port (other than 25) to which Stratagy will relay UM messages. Separate the values with a comma, without spaces.

sys_smtpserver_gateway –
sys_smtpserver_host –
 

2. Install hMailServer on the MAS
Install hmailServer using default values. After installation, open the hMailServer Administrator, and enter the password you defined in the installation wizard.

3. Configure incoming SMTP settings
First, we need to change the port on which hMailServer will listen for incoming SMTP mail.




 Select TCP/IP Routes, click on the SMTP port and then click Edit.



Change the TCP/IP port to the one that you defined in Stratagy's sys_smtpserver_gateway parameter, and then click Save. Click OK to confirm restarting the hMailServer service.
 
4. Define the IP range to relay
We must specify the IP address ranges that are allowed to relay through this mail server.
Select Incoming Relays, and then click Add.
Enter the IP address range that is allowed to relay through the server. For maximum security, enter only the IP address of the MAS

5. Add an IP range that is allowed to send mail into hMailServer without authentication
Since Stratagy ES sends UMK emails unauthenticated, we need to define special properties for mail coming in from the IP address of th eMAS so that hMailServer will accept these incoming messsages without authentication. Click on IP Ranges, and then click the Add button.


Give the range an identifying name (e.g., MAS), enter the MAS IP address into the lower and Upper IP range fields, and configure the settings as shown above. Make sure to set the priority value to a high number so that this rule will be evaluated first, and disable all authentication requirements.

6. Configure outbound authentication
There are two methods that we can set up the outbound authentication:

1. Relay all mail through a particular server with authentication, or
2. Relay mail addressed to specific domains using authentication, and all other domains are send without authentication.

 

Relaying all mail through a particular server with authentication.
This method is used to send all mail, addressed to any email domain, through the same email server with authentication.
To configure this, expand Protocols, and then click on SMTP.



Select the Delivery of e-mail tab. Enter the Local host name of the system. This is the name by which this server will identify itself, and will generally be the same domain name that was entered into the sys_smtpserver_host parameter.


Enter the server to which all email will be relayed under Remote host name, and the TCP port to which it will connect.

Enable Server requires authentication, and enter then username and password to be used as the credentials.


If SSL is required, enable Use SSL.