vCenter cannot send emails even though SMTP is configured correctly.
VMware vCenter Server 7.0
VMware vCenter Server 8.0
syslog in /var/log/vmware/syslog.log shows entries similar to these:
YYYY-MM-DD HH:MM:SS localhost sendmail[54608]: My unqualified host name (localhost) unknown; sleeping for retry
YYYY-MM-DD HH:MM:SS localhost sendmail[54608]: unable to qualify my own domain name (localhost) -- using short name
The issue here is that the host has no FQDN, but only a shortname (localhost). Sendmail, the MTA that vCenter uses, requires an FQDN in the format <host>.<domain>.<tld> in order to be able to send email.
> shell
hostname
Japanese version of this KB : "unable to qualify my own domain name (localhost)" のエラーで vCenter Server アラートのメール送信に失敗する