# Configuring Mail Server Settings OpManager allows you to configure e-mail alerts to get notified on any fault in your network. The email configured here will be the default setting for email alerts from OpManager. This settings is crucial for configuring e-mail alerts, authentication, and notifications within OpManager. This help document details the steps to configure mail server settings. - [Configuring mail server settings from version 126306](https://www.manageengine.com/network-monitoring/help/mail-server-settings.html#mail-settings-v126306) - [Configuring mail server settings before version 126306](https://www.manageengine.com/network-monitoring/help/mail-server-settings.html#mail-settings-pre-v126306) - [To verify configuration](https://www.manageengine.com/network-monitoring/help/mail-server-settings.html#verifying-configuration) **Important Note:** Prior to mail server configuration, go through [this mandatory check list](https://www.manageengine.com/network-monitoring/kb/Mail-Server-troubleshooting.html) to avoid connection issues. ## Configuring mail server settings from version 126306 ![Mail server settings in OpManager: From version 126306](https://www.manageengine.com/network-monitoring/help/images/ms-teams-1.jpg) To configure the SMTP server settings globally and to provide the secondary mail server settings, follow the steps given below: 1. Go to **Settings → General Settings**, click **Mail Server Settings**. 2. Enter the SMTP **Server name** and **Port** number. 3. Configure the **From** and **To Email ID** fields. 4. Enter a **Time Out** interval. 5. Select the **Authentication Type** as Basic or OAuth. - If the Authentication type is basic, configure the **User name** and **Password** details. - If you've chosen OAuth as the authentication type, configure the **User name** and **Authentication Provider** details. ![Mail server settings in OpManager: Authentication provider](https://www.manageengine.com/network-monitoring/help/images/ms-teams-2.jpg) - For secure authentication, select the **SSL Enabled** or **TLS Enabled** check-box according to your requirements. - Click **Save**. **Note:** Only Google and Microsoft OAuth providers are supported. To learn more about OAuth configuration, [click here](https://www.manageengine.com/network-monitoring/help/oauth-authentication.html). ## Configuring mail server settings before version 126306 ![Mail server settings in OpManager: Before version 126306](https://www.manageengine.com/network-monitoring/help/images/mail-server-settings.png) To configure the SMTP server settings globally and to provide the secondary mail server settings, follow the steps given below: 1. Go to **Settings → General Settings**, click **Mail Server Settings**. 2. Enter the SMTP **Server name** and **Port** number. 3. Configure the **From** and **To Email ID** fields. 4. Enter a **Time Out** interval. 5. Configure the **User name** and **Password** details, if the server requires authentication to send e-mail. 6. For secure authentication, select the **SSL Enabled** or **TLS Enabled** check-box according to your requirements. 7. Click **Save**. ### Verifying configuration - To test the settings, enter the **Email ID** and click **Send Test Mail**. This e-mail ID will be considered as the default To Email ID while creating Email and Email based SMS notification profiles. - If you have a secondary mail server in your network, select **Add a secondary mail server** and provide the details. In case of a failure in the primary mail server, OpManager uses the secondary mail server to send E-mails. Find more information on configuring [Gmail](https://www.manageengine.com/network-monitoring/how-to/configure-gmail.html) and [Office 365](https://www.manageengine.com/network-monitoring/how-to/configure-office365.html). If you are getting delayed email notifications, click [here to troubleshoot](https://www.manageengine.com/network-monitoring/faq/delayed-email-notifications.html).