- August 31, 2019
- Posted by: Syed Shujaat
- Category: Uncategorized
No Comments
you can enable a SMTP service that is built into the core operating system for Windows Server 2012. Here how to do this.
Install the SMTP Service
-
Launch the Server Manager. From the Search charm, type in Server Manager to find it.
-
From the Dashboard, Add Roles and Features. The Add Roles and Features Wizard will begin. Click Next on the first screen.
-
Select Role-based or feature-based installation.
-
Select the Essentials Server (which should be highlighted by default).
-
Click Next to bypass the Roles selections.
-
Scroll down the list and tick the SMTP Server feature.
-
A new window will pop up to inform you that some other services will also be installed. Click Add Features to confirm and continue. Click Next to continue past the features selection screen.
-
Click Install to complete the Installation.
-
Click Close when the installation has completed.
Configure the SMTP Service
-
From the Search charm, type IIS. Hover your mouse over one of the selections, and run the Internet Information Services (IIS) 6.0 Manager.
-
Click Yes to the UAC Prompt.
-
Expand to SMTP Virtual Server #1, right click and select Properties.
-
General Tab: Set the IP Address to the server’s IP address.
Note: You can also enable logging is required.
-
Access Tab: Set the IP for the internal devices in the connection button.
Add the same IP to the Relay list.
-
Delivery Tab: Set an external domain – you can use the free customised domain from Microsoft, and you can also optionally add a Smart host, if required. Tick the Attempt direct delivery box, if you want the server to attempt to deliver the email directly first before trying the Smart host.
-
From the Search charm, type Firewall to locate and run the Windows Firewall with Advanced Security console.
-
Add a new Inbound Rule. (Right Click on Inbound Rule, and select New Rule)
-
Select Port.
-
Type in 25 as the local port.
-
Click Next (Allow the Connection).
-
Uncheck Public. (Prevents external access to the server)
-
Give the rule a name, and click Finish to create the rule.
-
You should now see a new rule enabled in the firewall management console.
-
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.
That’s it. The service is ready and waiting.