Tools
Configure an SMTP connection in Serv-U
This article describes common errors when configuring SMTP in Serv-U servers both at the Global Level and Serv-U Domain Level.
First published date
Last published date
Overview
In Serv-U, it is possible to configure basic SMTP connection to send emails for events configured to use email actions.
The Serv-U does not host the SMTP itself but uses an existing and working SMTP basic authentication to allow the use of SMTP.
This SMTP can be configured on the Global Leve or Domain level, or both. The SMTP configuration at the domain level can be inherited from the server level. The SMTP configuration dialog is located in the Events tab in the Domain pages.
Product section
Resolution
Click Configure SMTP to launch the dialog, and then specify the following details:
- SMTP Server: The name or IP address of the SMTP server.
- SMTP Server Port: The port the SMTP server is using.
- From Email Address: The email address to use for the outgoing email.
- From Name (optional): The name to use for the outgoing email.
- This server requires a secure connection (SSL): On some SMTP servers all incoming connections must be encrypted to protect against possible attacks. If your server requires that all incoming connections must be encrypted, enable this option. The default port for encrypted SMTP connections is 465.
- My server requires authentication: To enable authentication, select this option.
If your SMTP server requires authentication, enter the following information:
- Account Name: The account name associated with authentication for the SMTP server.
- Password: The password for the account.
Testing the SMTP configuration
Perform the following steps to test the SMTP configuration in Serv-U:
- After specifying the details of the SMTP server and the corresponding account, click Send Test Email to test your SMTP connection.
- In the Send Test Email window, specify the email address where you want to send the test email to, and then click Send. Optionally, you can edit the subject and content of the test message.
- If the email was sent successfully, click OK on the confirmation window to save your SMTP configuration, or click No to return to the SMTP Configuration window.
If an error occurs at any stage of the configuration test, Serv-U returns one of the following error messages in the SMTP error window.
| ERROR MESSAGE | EXPLANATION |
|---|---|
| SMTP connection failed. Please check your SMTP server and port settings. | The most common reason for the SMTP connection to fail is an invalid SMTP server address or port number. Verify that these details are correct. |
| Unable to send message due to authorization error. Please check user name and password. | The connection to the server is successful, but the provided user name, password, or both is incorrect. The error can also occur if incorrect server and port settings are specified, but the specified server is listening on the specified port. |
| Unable to send message due to recipient error. Please check that recipient email address is valid. | The connection to the server is successful, but the email address provided in the To Email Address field of the Send Test Email window is not valid. |
| Unable to send a message. Please try again later. | The connection to the server is successful, but an unspecified error occurred while sending the test email. |
| SMTP communication failed. Ensure that SMTP server settings are correct, and that the SMTP server is up and running. | An unspecified error occurred. Check your SMTP connection details, and try the test again. |
| Timeout while contacting SMTP server. Please check that the SMTP server address is correct. | The connection to the SMTP server timed out. |
For more information, see Configure Serv-U events
Troubleshooting Tips:
- Telnet {ip add of email server} 25, from windows command prompt. If using a different port, use it.
- Use Powershell to test if the email is possible with Basic Authentication:
-
Send-MailMessage -To '<recipient’s email address>' -From '<sender’s email address>' -Subject 'Your message subject' -Body 'Some important plain text!' -Credential (Get-Credential) -SmtpServer '<smtp server>' -Port 25 -- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation.
- Input basic credentials from the window above.
- A test email will be received if successful, and no error will appear on the PowerShell.
- If there are errors, there is an SMTP issue on the SMTP server connection. Contact your SMTP admin or provider for support.
-