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 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 1 - Set up an internal SMTP service for Windows Server 2012

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 201 2 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 3 - Set up an internal SMTP service for Windows Server 2012

8. Click Install to complete the installation

http blog powerbiz net au wp content uploads 201 4 - Set up an internal SMTP service for Windows Server 2012

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 201 5 - Set up an internal SMTP service for Windows Server 2012

2. Click Yes to User Account Control prompt.

http blog powerbiz net au wp content uploads 201 6 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 7 - Set up an internal SMTP service for Windows Server 2012

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 201 8 - Set up an internal SMTP service for Windows Server 2012

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 201 9 - Set up an internal SMTP service for Windows Server 2012

6. Add the same IP to the Relay list.

http blog powerbiz net au wp content uploads 201 10 - Set up an internal SMTP service for Windows Server 2012

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

 

word image 51 - Set up an internal SMTP service for Windows Server 2012

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 p - Set up an internal SMTP service for Windows Server 2012

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 201 11 - Set up an internal SMTP service for Windows Server 2012

10. Select Port.

http blog powerbiz net au wp content uploads 201 12 - Set up an internal SMTP service for Windows Server 2012

11. Type in 25 as the local port.

http blog powerbiz net au wp content uploads 201 13 - Set up an internal SMTP service for Windows Server 2012

12. Click Next > Allow the Connection.

http blog powerbiz net au wp content uploads 201 14 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 15 - Set up an internal SMTP service for Windows Server 2012

14. Give the rule a name and click Finish.

http blog powerbiz net au wp content uploads 201 16 - Set up an internal SMTP service for Windows Server 2012

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

http blog powerbiz net au wp content uploads 201 17 - Set up an internal SMTP service for Windows Server 2012

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.