Email alerts for alarms are not delivered on vCenter Server Appliance 6.5
search cancel

Email alerts for alarms are not delivered on vCenter Server Appliance 6.5

book

Article ID: 328764

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to replace the config_sendmail.sh script that has compatibility issues with vCenter Server Appliance 6.5.

Symptoms:
  • Configuring Mail Server in the web client completes without error.
  • In the /var/log/vmware/vmware-vpx/vpxd.log file, there are entries similar to:

    Cannot set SMTP relay server:Error code configuring sendmail: 2

  • Running the mailq command on the vCenter Server Appliance displays pending emails.


Cause

This issue occurs due to compatibility issues with the config_sendmail.sh in vCenter Server Appliance 6.5.

Resolution

This issue is resolved in VMware vCenter Server Appliance 6.5 b, available at VMware Downloads.

Note: By design from vSphere 6.0 , vCenter Server prefers DNS record before it uses its internal mail server entry.

To work around this issue, replace the config_sendmail.sh file on the vCenter Server Appliance.
  1. Download the 2148396_config_sendmail.zip file attached to this Knowledge Base article.
  2. Extract the config_sendmail.sh file from the 2148396_config_sendmail.zipfile and transfer it to the /tmp/ folder of vCenter Server Appliance using WinSCP/SCP.
  3. Log in to vCenter Server Appliance console or connect with SSH as root.
  4. Type shell and press Enter.
  5. Backup the /usr/lib/vmware-vpx/config_sendmail.sh file with this command:

    mv /usr/lib/vmware-vpx/config_sendmail.sh /usr/lib/vmware-vpx/config_sendmail.sh.old

  6. Move the config_sendmail.sh script to /usr/lib/vmware-vpx folder with this command.

    mv /tmp/config_sendmail.sh /usr/lib/vmware-vpx/

  7. Run this command to make the file executable:

    chmod a+x /usr/lib/vmware-vpx/config_sendmail.sh

  8. Configure the Mail Sender settings. For more information, see the Configure Mail Sender Settings section of the vCenter Server and Host Management guide.


Additional Information

Attachments

2148396_config_sendmail.zip get_app