Solved

Configuring an SMTP server under Windows Server 2008

Posted on 2010-11-22
1
765 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
1 Comment
 
LVL 42

Accepted Solution

by:
kevinhsieh earned 500 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now