<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/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/"><channel><title>Mike Nichols - Son Of Nun Technology : Email</title><link>http://devlicio.us/blogs/mike_nichols/archive/tags/Email/default.aspx</link><description>Tags: Email</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Configuring IIS 6.0 to send mail via SMTP for asp.net applications</title><link>http://devlicio.us/blogs/mike_nichols/archive/2008/05/07/configuring-iis-6-0-to-send-mail-via-smtp-for-asp-net-applications.aspx</link><pubDate>Thu, 08 May 2008 05:29:21 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:40371</guid><dc:creator>Michael Nichols</dc:creator><slash:comments>3</slash:comments><comments>http://devlicio.us/blogs/mike_nichols/archive/2008/05/07/configuring-iis-6-0-to-send-mail-via-smtp-for-asp-net-applications.aspx#comments</comments><description>&lt;p&gt;Enabling smtp services for IIS is well documented, but configuring in my environment was more difficult than I would have thought it would be... So this post is partly a note for me as we will be changing out gear soon.&lt;/p&gt;  &lt;p&gt;Our environment is not very exotic...a box acting as an web server, and another box acting as an exchange server. Both are running Win2003. &lt;/p&gt;  &lt;p&gt;First, smtp services must obviously be enabled/running. &lt;a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true" target="_blank"&gt;Here is how&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Next, in IIS, select the new SMTP Virtual server node and right-click/Properties/Access/Relay. Be sure &amp;#39;Only the list below&amp;#39; is selected and add &amp;#39;127.0.0.1&amp;#39; (localhost) to your Computers Access list . Finally, deselect &amp;#39;Allow all computers which successfully authenticate...&amp;#39;. Be very careful not to turn your server into a relay server unless you like being blacklisted .&lt;/p&gt;  &lt;p&gt;Now, at this point I was able to get my mail sent to domains outside my own. So if my webserver was webbox.mydomain.com and it sent mail to mygmail@gmail.com then all worked just fine. But I was unable to send mail internally to other mail accounts (mydomain.com). &lt;/p&gt;  &lt;p&gt;What I failed to do was set up a SMART HOST to route mail to my exchange box.&lt;/p&gt;  &lt;p&gt;To do that, right-click the smtp node in iis/Properties/Delivery/Advanced. Enter the name of the server hosting exchange and deselect &amp;#39;attempt direct delivery before sending to smart host&amp;#39;. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=40371" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/mike_nichols/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://devlicio.us/blogs/mike_nichols/archive/tags/IIS/default.aspx">IIS</category><category domain="http://devlicio.us/blogs/mike_nichols/archive/tags/Email/default.aspx">Email</category></item></channel></rss>