Unable to Send Email Notification for Alerts

Symptoms

You setup email notification for alerts and configure the setting for "This server requires a secure connection (SSL)" but the email notifications fail to be sent.


Cause

One of the possible causes could be the type of secure connection the SMTP mail server requires. The SSL configuration of Email notficiation of alerts uses the .Net Framework 4 SmtpClient.EnableSsl Property as defined at http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.enablessl.aspxsupport . The EnableSsl property supports the SMTP Service Extension for Secure SMTP over Transport Layer Security (TLS) as defined in RFC 3207. In this mode, the SMTP session begins on an unencrypted channel, then a STARTTLS command is issued by the client to the server to switch to secure communication using SSL. See RFC 3207 published by the Internet Engineering Task Force (IETF) for more information. An alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTP/SSL, SMTP over SSL, or SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported. 

Resolution

You must work with the mail server administrator to determine the proper settings for the email notifications.

More Information

You can determine if the email server supports SMTP over TLS by using the telnet client. The telnet client is not installed by default on the Server. You can install it by using Server Manager and going to features and choosing to add the telnet client or you can perform the test from a client machine. From a command prompt you would enter:

Telnet<mailservername><port number>where mailservername and portnumber are the name of the mail server and the port number. For example, telnet smtp.live.com 587

You will see a connection header similar to the following:

220 BLU0-SMTP39.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Mon, 7 Mar 2011 11:35:40 -0800

Type EHLO

The mail server will return the SMTP commands it supports. For example you will see a list similar to this:

250-BLU0-SMTP39.blu0.hotmail.com Hello
250-TURN
250-SIZE 41943040
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-TLS
250-STARTTLS
250 OK

If the command STARTTLS is in the list, then the mail server supports SMTP over TLS and we can check the box for the server requires a secure connection (SSL).





Properties

Article ID: 2519903 - Last Review: Mar 28, 2011 - Revision: 1

Feedback