The "ELM 411" - Setting up an alternate SMTP relay when your primary SMTP or Exchange server is down
Email is one of if not the most common notification method used by most ELM Administrators. So what do you do when your primary SMTP gateway or Exchange server is down? This month's ELM 411 will cover setting up an alternate SMTP relay for this very situation.
Setting up an alternate SMTP relay requires configuring both your Windows Server and ELM. We'll start with your Windows Server.
Windows Configuration
If a second SMTP gateway is not configured for your environment, a basic one can be setup on Windows 2003 through IIS. Installing IIS with SMTP on Windows 2003 is accomplished through the Add/Remove Windows Components section of Add or Remove Programs in Windows Control Panel.
- Start Internet Information Services Manager or open the Internet Information Services (IIS) snap-in.
- Expand Server_name, where Server_name is the name of the server, and then expand Default SMTP Virtual Server.
- Right-click Domains, point to New, and then click Domain.
- Click Remote, and then click Next.
- Type the name of the new remote domain, this is the destination domain that you will relay the email to, example: mydomain.com, in the Name box.
- Click Finish.
- In the right pane, right-click the new remote domain that you just created, and then click Properties.
- Click the General tab.
- Under Select the appropriate settings for your remote domain, click to select the Allow incoming mail to be relayed to this domain check box to allow the SMTP server to act as a mail relay.
- Click OK.
- Stop and start the SMTP virtual server. To do so, right-click Default SMTP Virtual Server, and then click Stop. After the virtual server stops, right-click Default SMTP Virtual Server again, and then click Start.
- Verify that SMTP port 25 is open on your firewall to allow this server to email outbound.
ELM Configuration
To be notified of when the primary SMTP gateway is not responding, setup the SMTP Monitor, Alternate SMTP Notification Method, Event Filter, and assign the Notification Rule.
SMTP Monitor
In the ELM Management Console | Monitoring | right click All Monitors | New | Monitor Item | select SMTP Monitor in the wizard.
- Complete the Monitor Item Wizard ensuring the Failed messages are written to the Application Event Log and the Schedule is set to 1 minute.
- Assign the monitor item to the agent that is your Primary SMTP Gateway.
Alternate SMTP Notification Method
In the ELM Management Console | right click Notification | New | Notification Method. The Notification Method Wizard will appear.
- Select Mail Notification using SMTP Mail, enter the Alternate Smtp servername and a valid From address in the Enter the SMTP Host Name dialog box.
- Select Next on the SMTP Server Authentication dialog box. Unless authentication was setup according to Microsoft's KBA 324285
- On the Enter the Mail Message Settings dialog box, enter an external email address. Note: this should be the same as the remote domain that was setup in IIS SMTP youremail@mydomain.com . Select Test to verify settings and email connectivity. A test email should arrive at your external account.
- Skip the Notification Rule dialog box. This will be configured in a later step.
- Enter preferred Threshold Settings. Recommend setting Disable this notification method when its triggered 2 times with 3 Minutes. Once disabled, re-enable it after 15 minutes. Otherwise, the destination email box will get flooded with alert emails based on your SMTP Monitor item schedule.
- Select preferred time slots on Create a Schedule
- Enter a name and description that is appropriate, such as Alternate SMTP.
Event Filter
In the ELM Management Console | right-click Notification | New | Event Filter.
- Complete the Event Filter Wizard using Event ID 5509 as the Error event, skip the Notification Rules and Event Views dialog boxes. This will be configured in a later step.
- Name the Event Filter appropriately, such as SMTP Gateway Down
Notification Rule
In the ELM Management Console | right-click Notification | New | Notification Rule.
- Complete the Notification Rule Wizard selecting the Alternate SMTP Notification Method and the include the SMTP Gateway Down Event Filter just created.
- Name the Notification Rule appropriately, such as Alternate SMTP Notification Rule
You've successfull completed setting up an alternate SMTP relay!
Other Considerations
Before following these steps to set up an alterate SMTP relay there are a few other things to consider:
- Anytime a port is opened on a server there are security risks. Without setting authentication to the IIS SMTP relay server, an email could be relayed to the configured domain. Refer to Microsoft's KBA 324285 to setup authentication.
- Since the ELM Server probably already has IIS installed, run the SMTP relay on the ELM Server.
- The ELM Server will need internet connectivity.
We hope that you found this article informative and wish you continued success with your ELM deployment!
NOTE: All ELM 411 articles are written based on ELM Version 5.5 and instructions may not be accurate for previous ELM Versions. If you would like assistance upgrading to ELM 5.5 so you can use these tips - please contact support@tntsoftware.com.
Share your own ELM tips!
Have a tip or trick with our ELM products you'd like to share with our newsletter subscribers? Send your ideas and any applicable screen shots to info@tntsoftware.com with "ELM 411" in the subject line. We'll take a look and if usable you'll see it published here in the ELM 411 section of upcoming newsletters!