In this tutorial, we will see how to set up an SMTP server with Windows Server. This feature allows you to send e-mails either directly over the Internet or to transfer to another SMTP server such as Exchange or Office 365.
The SMTP server is often used with copiers for scan to mail functionality or by email notification (GLPI) applications.
SMTP server configuration
Now that the SMTP server is installed, it must be configured. The configuration given in the tutorial will allow any computer to send messages through the service. It is obviously necessary to adapt to your situation the configuration.
By default, the message is sent by reading the MX record (s) of the receiving domain. In the configuration we will also see how to send the message to another SMTP server to relay.
It is possible to create multiple virtual SMTP servers that will be differentiated either by a different IP address or by using a different port.
The restart of the SMTP server is done in two stages, first it is necessary to stop this one then to start it.
Back to the Access tab, apply the changes then click on Connection and verify that the configuration is identical to the relay. On the Messages tab 1 there are several important settings such as message size 2 or number of recipients per message 3 .
In active host 1 enter the IP address or FQDN name of the relay server (here office 365). It is also here that you can change the name of the server that will be present in the message header 2 . In the case where an active host is configured, check that the box Attempt direct delivery before sending to the active host is unchecked 3 . Validate the parameters by clicking OK 4 .
Your SMTP server is now ready to send e-mails. Remember to restart the virtual STMP server when you make changes.