<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>General</title><link>http://forums.iis.net/1029.aspx</link><description>Start forum discussions here around general questions about the IIS platform including SMTP &amp; NNTP.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Kerberos authentication for SMTP</title><link>http://forums.iis.net/thread/1881948.aspx</link><pubDate>Tue, 14 Oct 2008 01:24:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881948</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881948.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1881948</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure, post your question in the IIS SMTP newsgroup. There is a guru there that can / should be able to help.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="http://tinyurl.com/4w5hfs"&gt;http://tinyurl.com/4w5hfs&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Kerberos authentication for SMTP</title><link>http://forums.iis.net/thread/1881931.aspx</link><pubDate>Mon, 13 Oct 2008 19:47:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881931</guid><dc:creator>Madness80</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881931.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1881931</wfw:commentRss><description>&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Our email and computer security teams want to tighten up emails being sent externally. They want the users to authenticate to the SMTP server. I&amp;#39;m not having much luck and was wondering if anyone else has figured this out.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Environment: IE6/XP client --&amp;gt; W2K3/IIS 6/ASPX page .Net 2.0 --&amp;gt; W2K3/IIS 6/SMTP&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;The Authentication tab for the SMTP server is set to &amp;quot;Integrated Windows Authentication&amp;quot;. The web site on the IIS server is also set for integrated authentication. The key issue being that we do not want to prompt the user for their password.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;The MS Auth Diag tool and Brian Booth&amp;#39;s DelegConfig tool report that Kerberos is ok on the IIS server. I have a test ASPX page that reads from a UNC on another server and that works fine. In the security log on that server I see a Kerberos login for the client user.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Here is the ASPX code snippet.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;br /&gt;Dim oMM As New MailMessage&lt;br /&gt;Dim oMM As New MailMessage &lt;br /&gt;Dim emailaddr As String = &amp;quot;dave@mycompany.com&amp;quot; &lt;br /&gt;Dim oAddress As New MailAddress(emailaddr) &lt;br /&gt;Dim oSMTP As New SmtpClient(&amp;quot;mailhost.mycompany.com&amp;quot;, 25) &lt;br /&gt;&lt;br /&gt;oMM.From = oAddress &lt;br /&gt;oMM.To.Add(oAddress) &lt;br /&gt;oMM.Subject = &amp;quot;Mail test&amp;quot; &lt;br /&gt;oMM.Body = &amp;quot;Mail test&amp;quot; &lt;br /&gt;oSMTP.UseDefaultCredentials = True &lt;br /&gt;oSMTP.Send(oMM) &lt;/p&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;With &amp;quot;UseDefaultCredentials = True&amp;quot; I see an &amp;quot;AUTH gssapi&amp;quot; packet being sent from the IIS server to the SMTP server in a network trace. The web.config for the site contains &amp;lt;identity impersonate=&amp;quot;true&amp;quot; /&amp;gt; so this should be passing the credentials of the user. But in the security log on the SMTP server I see an NTLM logon for NT AUTHORITY\ANONYMOUS LOGON. &lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;If I set the web site to use basic authentication then everything works. But we don’t want to do that because we want the integrated authentication to take care of that for us.&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Within AD, the IIS server is set to &amp;quot;Trust this computer for delegation to any service (Kerberos only)&amp;quot;. And in the metabase on the SMTP server I have &amp;quot;NTAuthenticationProviders=&amp;quot;GSSAPI,NTLM&amp;quot;.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Does SMTP support Kerberos login&amp;#39;s? The email team also has an SMTP that is installed as part of Exchange. Does that support Kerberos? My email guys tell me that it should not matter.&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Note: SMTP on the IIS server will not require authentication and can only send emails internally. All externally bound emails must go thru an SMTP server that requires authentication.&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;How do I pass integrated credentials from a client to IIS to SMTP?&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:Verdana;"&gt;Thanks for any help.&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>