Set up an internal SMTP service for Windows Server 2012

How to set up an internal SMTP service for windows server 2012

IF you want to have network devices to send emails that do not support the encryption or authentication protocols required by WorldPosta

The solution is to set up a mail rely server, and configure it to accept email inside the network either anonymously or with basic authentication over unencrypted connection and then to the email onward via WorldPosta servers.

The idea is to enable SMTP service that is built into Windows Server 2012

How to install the SMTP service

1. Launch the Server Manager.

2. Select Manage > Add Roles and Features from the upper right menu. A wizard will start.

Select the installation type

3. Click Next, then select Role-based or feature-based installation

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa3.png

4. Select the Essentials Server (highlighted by default).

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa4.png

5. Click Next to bypass the Server Roles selections.

6. In the feature part, scroll down and check SMTP Server.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa6.png

7. A new window will appear to inform you that other services will also be installed.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa7.png

8. Click Install to complete the installation

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa9.png

9. When the installation finishes, click Close.

Configuring Microsoft SMTP Server

Next step we need to configure the SMTP server. Notice that one of the dependencies installed is (IIS 6 management tools)

1. Open search then type IIS, run Internet Information Services (IIS) 6.0 manager.
http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa10.png

2. Click Yes to User Account Control prompt.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa11.png

3. Expand the SMTP Virtual Server, Then right-click and select Properties.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa12.png

4. In General Tab, under IP Address, set the IP address to the server’s IP Address.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa13.png

Note: You can also enable logging is required.

5. In the Access tab, set the IP for the internal devices in the connection button.
http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa14.png

6. Add the same IP to the Relay list.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa15.png

7. In the Delivery tab, set an external domain > Advanced…
In fully qualified domain name type: servername.example.com

In smart host type smtpapp.worldposta.com

 

Next, open the Outbound Security window. Enter details of an account that is authorized to send through the server configured on the “Advanced Delivery” page – I’d recommend setting up an account specifically for this purpose with your email provider. You’ll also need to tick the “TLS encryption” checkbox, or we’ll be trying to authenticate in-the-plain against the provider’s server putting us right back to square one!

C:\Users\dell\AppData\Local\Temp\SNAGHTML3723e4f.PNG

8. From Search, Type Firewall to locate to run Windows Firewall.

9. Add a new Inbound Rule. (Right-click on Inbound Rule, and select New Rule)

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa18.png

10. Select Port.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa19.png

11. Type in 25 as the local port.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa20.png

12. Click Next > Allow the Connection.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa21.png

13. Uncheck Public to prevent external access to the server.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa22.png

14. Give the rule a name and click Finish.

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa23.png

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

http://blog.powerbiz.net.au/wp-content/uploads/2013/04/041813_0636_Howtosetupa24.png

16. Restart the SMTP Service and set the service for Automatic Start.

17. Open up the Services Management Console.

18. Double-click on the Simple Mail Transfer Protocol service.

19. Stop and then Start the service, then Set the Startup type to Automatic.

Testing

To test the setup, simply:

1. Go to https://mxtoolbox.com/diagnostic.aspx

2. Enter the device IP in the Mail Server field, and then click Test Email Server.