How to set up an Internal SMTP Service for Windows Server 2012

Simple Mail Transfer Protocol (SMTP) is an internet standard for transmission of electronic emails. SMTP services are used to send and receive emails in a secure manner.

We can enable a SMTP service that is built into the core operating system for Windows Server 2012. Here how to do this.SMTP-server-840x500

Installing the SMTP feature

1. Click on the Server Manager icon in the bottom left-hand corner to load the Server Manager Dashboard:

pic1

Alternatively, click on the Powershell icon to its right and enter servermanager.exe at the prompt to load the Server Manager Dashboard:

PS C:\Users\Admin> servermanager.exe

2. When the Server Manager Dashboard loads, click on Add roles and features in the center pane as highlighted below:

pic2

The Add Roles and Features Wizard will load, click Next to go past the initial Before You Begin Page:

pic3

3.  In the Installation Type section, select Role-based or feature-based installation and click Next:

pic4

4.  In the Server Selection section, select your server, in my example below, my server is called 2012, then click Next to proceed:

pic5

5. In the Server Roles section select Web Server (IIS)as highlighted below and click Next:

pic6

Doing so will initiate a prompt to install the required IIS Management Console. Ensure you check the Include management tools (if applicable) box per the below and click Add Features to proceed:

pic7

6. In the Features section, select the SMTP Server feature then click Install to proceed:

pic8

You will prompted to install services and features required by the SMTP Server. Ensure you check the Include management tools (if applicable) box per the below and click Add Features to proceed:

pic9

7.  You will now be presented with the Web Server Role (IIS) Click Next to proceed:

pic10

In the Role Services section, scroll down and under Management Tools select the services to match those checked in screenshot below then click Next to proceed:

pic11

8. The Confirmation section will show all the role and feature configuration options you previously selected:

pic12

Click Install to start the installation:

pic13

The installation should complete shortly. You nay need to reboot your server to fully complete the installation.

Configuring the SMTP Server

The next step is to configure SMTP. To do so we will need to open Internet Information Services (IIS) Manager 6. 10. Click on the Server Manager icon per step 1 to load the Server Manager Dashboard. Then click Tools and then click on Internet Information Services (IIS) 6.0 Manager to load IIS Manager 6:

pic14

9. In IIS 6 Manager, expand the server name, in my example below it is 2012, then right-click on SMTP Server and select Properties:

pic15

10. In the General tab, unless you want the SMTP Server to use a specific IP address,  leave the settings as they are so that the IP address is set to (All Unassigned):

pic16

11. To proceed, click on the Access tab:

pic17

12. Click on the Authentication button and ensure Anonymous access is checked and then click OK:

pic18

13. Once back in the Access tab, click on the Connection Select All except the list below.

pic19

The Connection setting controls which computers can connect to the SMTP server and send mail.

pic20

14. Next, go to the Messages tab. Here you can enter an email address where copies of non-delivery reports are sent to. You can also configure the location of the Badmail director, however, the default setting should suffice:

pic21

15.  Next, go to the Delivery tab:

pic22

Outbound Security section allows you to provide credential for receiving server. Since we are using local SMTP server you can set this as Basic authentication. Type your User name and Password and click the TLS encryption.

pic23

Outbound Connection section you can change the default port.

pic24

Advanced.. section you need specify the Smart host for forwarding the email to Gmail SMTP server (smtp.gmail.com).

pic25

You can find the Gmail SMTP server settings here  .

Then start the SMTP virtual server.

pic26

Restart the SMTP Service and set the service for Automatic Start. Open up the Services Management Console. Double Click on the Simple Mail Transfer Protocol service. Stop and then Start the service. Set the Startup type to Automatic.

pic27

16. Add a new firewall Inbound Rule. (Right Click on Inbound Rule, and select New Rule)

pic28

Select Port.

pic29

Type in 25 as the local port.

Click Next (Allow the Connection).

pic30

Uncheck Public. (Prevents external access to the server)

pic31

Give the rule a name, and click Finish to create the rule.

pic32

You should now see a new rule enabled in the firewall management console.

pic33

Restart the SMTP Service and set the service for Automatic Start. Open up the Services Management Console. Double Click on the Simple Mail Transfer Protocol service. Stop and then Start the service. Set the Startup type to Automatic.

pic34

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: