Unsolved
This post is more than 5 years old
12 Posts
0
8739
March 14th, 2010 01:00
Alert Emails Not Working
Hello.
While installing DMC, the option is given to specify the E-mail settings i.e.
* Server
* Port
* User Name
* Password
* From
* From name
* To
and there is a button labeled "Send test e-mail".
Now, I have installed DMC twice. The first time was the version 1.0 a few months ago and more recently, it was a fresh install of version 1.0.2 - and in both instances during the installation phase. after specifying the E-mail settings and clicking on "Send test e-mail", DMC reported that the emails were sent successfully and sure enough, when I went to check my mail inbox, the test message was there.
I then completed the installation and performed Network discovery on a couple of our Dell Servers (which was relatively simple because I had been using OMSA on them for quite a while and had previously configured SNMP on them back when we were using ITA).
So I noticed that while I was seeing alerts via SNMP being logged such as Chassis Intrusion and Power Supply Redundancy warnings (because one of the servers currently only has one PSU connected to the mains supply), I discovered that I wasn't receiving the alert emails. I then clicked on the details for one of the alerts and read this delightful notice (please note that I have replaced both the recipient name and our domain name with xxx below):
Status: Failed
Return code: -1
Start time: 14/03/2010 3:05:07 PM
End time: 14/03/2010 3:05:18 PM
Total run time: 10 seconds
An unknown exception was thrown.
Show raw exception message
System.ApplicationException: SMTP operation failed with the following details: Server:mail.xxx.com.au; Port:25(A value of -1 indicates default); Username:xxx@xxx.com.au; Error Message: Failure sending mail.. ---> System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at Altiris.NS.Utilities.MailStdScripting.SendSMTPSync(AltirisMailMessage mailMsg) --- End of inner exception stack trace --- at Altiris.NS.Utilities.MailStdScripting.SendSMTPSync(AltirisMailMessage mailMsg) at Altiris.TaskServerTasks.SendEmailTask.AltirisNSSendEmailHandler.SendEmail(String to, String cc, String bcc, String from, String fromName, String subject, String message, Boolean plainTxtFormat) at Altiris.TaskServerTasks.SendEmailTask.SendEmailServerTask.SendEmail(String to, String cc, String bcc, String from, String fromName, String subject, String message, Boolean plainTxtFormat, ParameterValueCollection inputParameters) at Altiris.TaskServerTasks.SendEmailTask.SendEmailServerTask.SendEmail(ParameterValueCollection input) at Altiris.TaskServerTasks.SendEmailTask.SendEmailServerTask.OnExecute(IServerTaskExecutionInstance instance) at Altiris.TaskManagement.ServerTasks.BaseServerTask.OnExecute(ITaskExecutionEngine engine, IServerTaskExecutionInstance instance, TaskInstanceRequest request) at Altiris.TaskManagement.ServerTasks.BaseServerTask.Execute(ITaskExecutionEngine engine, IBaseTaskExecutionInstance instance, TaskInstanceRequest request) at Altiris.TaskManagement.Common.Execution.Engine.TaskEngineExecutionThread.ExecuteTaskHandler()
And so I then drilled down to Settings -> Notification Server -> Notification Server Settings section, clicked on the tab labeled E-mail and then clicked on "Send test email". However, the operation failed with the following message:
SMTP operation failed with the following details: Server:mail.xxx.com.au; Port:25(A value of -1 indicates default); Username:xxx@xxx.com.au; Error Message: Failure sending mail..
And in the Altiris logs, it says:
Module: w3wp.exe
Source: Altiris.NS.Utilities.MailStdScripting.SendSMTPSync
Description: SMTP operation failed with the following details: Server:mail.xxx.com.au; Port:25(A value of -1 indicates default); Username:xxxl@xxx.com.au; Error Message: Failure sending mail..
( Exception Details: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Altiris.NS.Utilities.MailStdScripting.SendSMTPSync(AltirisMailMessage mailMsg) )
( Exception logged from:
at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
at Altiris.Diagnostics.Logging.EventLog.ReportException(String strMessage, String category, Exception exception)
at Altiris.NS.Logging.EventLog.ReportException(String strMessage, Exception exception)
at Altiris.NS.Utilities.MailStdScripting.SendSMTPSync(AltirisMailMessage mailMsg)
at Altiris.NS.Utilities.MailStdScripting.SendSMTPSync(String strFrom, String strTo, String strSubject, String strBodyText, Int32 nBodyFormat)
at Altiris.NS.UI.cfgEmailConfig.btnTestEmail_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.admin_configuration_cfgemailconfig_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
)
( Extra Details: Type=System.Net.Mail.SmtpException Src=System
Inner Extra Details: Type=System.IO.IOException Src=System )
Now, having first disabled Windows Firewall for testing purposes, I have tried re-entering all of the details - and even tried changing port 25 to port 587 at one point (our mail server listens on port 587 as well) - but the email functionality is still broken.
Does anyone have any useful ideas or suggestions that I could try?
Cheers.


DELL-Rob C
4 Apprentice
•
2.8K Posts
0
March 24th, 2010 08:00
Hi,
Can you review the event action whitepaper in the DMC forum (link below)? That should help.
Thanks,
Rob
ps I generally spend my time over in the DMC specific forum. So you may consider using this for any new posts. Thx!