Server 2008 - Task Scheduler - Send an E-mail fails
When ever weset an action to send an E-mail in theServer 2008 Task Scheduler GUI, we get a"Task failed" result of"Cannot modify or delete an object that was not added using the COM+ AdminSDK (0x8004020D) once the task gets to that step.I have tried creating tasks that do nothing but try and send an email using the new functionality of the Task Manager and itfails with the exact same error, So I have narrowedit down to the emailaction being the culprit. As soon as I remove it from the other tasks, everything works as planned.Is there a fix for this? Is there a permission I need to set somewhere? It seemsthat some people have tried runningthe task as the "Network Service" and it works, but I have had no such luck yet.
September 5th, 2008 7:15pm

Hi, If a task attempts to send an e-mail, but the e-mail doesn't get sent correctly, first make sure that the settings for the e-mail action on the task are set correctly. The e-mail action must have a valid value for the SMTP server, To, and From settings. For more information about these settings, please refer to the following article: Actions http://technet.microsoft.com/en-us/library/cc722129.aspx Make sure the SMTP server that sends the e-mail is setup correctly. E-mail is sent using NTLM authentication for Windows SMTP servers, which means that the security credentials used for running the task must also have privileges on the SMTP server to send e-mail. If the SMTP server is a non-Windows based server, then the e-mail will be sent if the server allows anonymous access. For information about setting up the SMTP server, please see the following article: SMTP Server Setup http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true And for information about managing SMTP server settings, please see the following article: SMTP Administration http://technet.microsoft.com/en-us/library/cc758258.aspx Hope it helps. Tim Quan - MSFT
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2008 11:35am

I'm using a third party email server and having problems. This is what I see in the logs: "2009-04-06 21:04:58 127.0.0.1 SMTP-IN 127.0.0.1 460 AUTH AUTH+LOGIN 334+RANDOMSTRING COMPUTERNAME 18 12 " I'm allowing relaying for 127.0.0.1 but have also enabled windows authentication in addition to it's built in authentication since it looks like Task Manager is attempting to authenticate. But I have no idea what the random character string is in the logs, is that meant to be the username? Can I get it not to authenticate?
April 6th, 2009 12:41pm

I didn't want to make the server a domain member (What I understood needed to happen to get authentication working) and I scoured to the edge of the earth to try to make it work with no avail. Workaround, I simply installed bmail command line mailing utility (Free) and scheduled task to run an application.bmail script is like this:bmail -s smtpserver.tld -t recipent@contsco.com -f sender@domain.com -h -a "Alert Notice Subject" -b "xyz alert has been triggered. Microsoft task alert's via email lick balls." Thanks,-Brian Brian J. Brandon, CCNP Zuit Security Research and Defense Http://www.Zuit.net
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2010 3:12pm

Brian thank you for this alternative, I have been attempting to get the Task Scheduler to send an email to a distribution group for weeks, and the task kept failing for one reason or the other. Now, through bmail, the process is much simplified and if the event viewer triggers an error for what I'm watching I get the email alert. I'm not sure why the task scheduler method needs to be so complex, but I appreciate this alternative process.
February 15th, 2011 5:56pm

(...) If the SMTP server is a non-Windows based server, then the e-mail will be sent if the server allows anonymous access. (...) Tim Quan - MSFT Hi everybody. I got *veeeery* late into this subject, but unfortunately it seems to me that task scheduler always try to authenticate to the smtp server, even if it is not an MS one. See the log below and notice the bold line: "TCPIP" 11072 "2011-03-16 10:25:06.845" "TCPConnection - Posting AcceptEx on 0.0.0.0:25" "DEBUG" 11072 "2011-03-16 10:25:06.860" "Creating session 51" "SMTPD" 11072 51 "2011-03-16 10:25:06.860" "127.0.0.1" "SENT: 220 ******** ESMTP" "SMTPD" 10896 51 "2011-03-16 10:25:06.860" "127.0.0.1" "RECEIVED: EHLO ********" "SMTPD" 10896 51 "2011-03-16 10:25:06.860" "127.0.0.1" "SENT: 250-********[nl]250-SIZE 20480000[nl]250 AUTH LOGIN" "SMTPD" 10896 51 "2011-03-16 10:25:06.860" "127.0.0.1" "RECEIVED: AUTH LOGIN" "SMTPD" 10896 51 "2011-03-16 10:25:06.860" "127.0.0.1" "SENT: 334 VXNlcm5hbWU6" "DEBUG" 10896 "2011-03-16 10:25:06.876" "Ending session 51" So my question is: is there a way to prevent this login try? Thanks in advance and forgive my poor English.
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2011 11:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics