Error: "Failed to send test email..." while configuring SMTP server for Aria Operations for Logs
search cancel

Error: "Failed to send test email..." while configuring SMTP server for Aria Operations for Logs

book

Article ID: 431072

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • Error message displayed while configuring SMTP server:

    [Failed to send test email] org.apache.commons.mail.EmailException: Sending the email to the following server failed

  • Telnet connection from Operations for Logs node to SMTP server terminates immediately after establishing.
  • Log file /var/log/loginsight/runtime.log contains:

    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: [IP_ADDRESS] port: 25, response: -1

Environment

VMware Aria Operations for Logs 8.18.x

Cause

The SMTP server is configured to reject unauthorized relaying. This occurs when the Aria Operations for Logs appliance IP address is not included in the SMTP server's trusted IP list or "allow" relay list.

Resolution

To resolve this issue ensure the SMTP server is configured to whitelist the Aria Operations for Logs appliance IPs for relaying.

Engage the SMTP server administrator or vendor for assistance with this action.    

After configuring the SMTP server to whitelist the Aria Operations for Logs IPs, test the SMTP connectivity.

Example steps would be as follows:

  1. Ensure the IP address of every node in the Aria Operations for Logs cluster is trusted by the SMTP server.
  2. Test connectivity from the Aria Operations for Logs CLI and confirm it now does not terminate immediately:

    curl -v telnet://[IP_ADDRESS]:25

  3. Attempt to configure the SMTP server once again in the Aria Operations for Logs UI.

Additional Information

Configure the SMTP Server for VMware Aria Operations for Logs