Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Configuring an SMTP server under Windows Server 2008

Posted on 2010-11-22
1
Medium Priority
?
772 Views
Last Modified: 2012-05-10
Hi All,

Probably very simple but I'm not up on how to ocnfigure SMTP email.  I am moving a web site to another server running Windows Server 2008 and need to re-code the email sending code as this used a web service which is no longer.  I am instead wanting tio use the System.Net.Mail .NEt functionality to send email.  That's the easy bit!

I have aded a Virtual SMTP server in IIS and can access/configure the service using the IIS 6 manager.  My problem is -: how do I actually set this up so that I can send email from .NET.  I understand that I will need to specify a 'from' address in my call to send email and that somehow this must match up with the SMTP server to prevent relay attempts but how?

Is the virtual SMTP service a complete solution for sending email or do I need something else to actually send the email?

If my server is servicing the domain abcde.com I can configure mail.abcde.com to point to the IP address of the server.  Would I then set the 'fully qualified domain name' under SMTP Virtual Server>Advanced to be abcde.com and set the sending email address to 'sender@abcde.com?

Any suggestions on setting this up so that I can at least test the email sending would be most welcome
0
Comment
Question by:ChrisMDrew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 2000 total points
ID: 34199686
The only thing you HAVE to configure under the Default SMTP Virtual Servr Properties is in the Access tab, Relay Restrictions, select the radio button "Only the list below" and add the IP addresses or networks of the machines that you want to be able to send the email. Under the Delivery tab, Advanced button, you can change the fully qualified domain name that the service will identify itself as when sending email.

You can send test emails using blat, which is a free command line emailer available at blat.net. This server shouldn't be used for receiving email, so there isn't anything else you need to do. If this server is part of the abcde.com Active Directory domain, you should have an MX record setup in your AD DNS so it can find where to send email to for abcde.com. It will use DNS to find the mail servers required for delivery to all domains. I only mention it because if you have split brain internal/external DNS for your domain, you may not have the MX record for mail delivery setup on the internal DNS.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question