vCenter cannot send emails even though SMTP is configured correctly
vCenter 7.0
vCenter 8.0
syslog in /var/log/vmware/syslog.log shows entries similar to these:
2025-03-17T10:02:56.339090+00:00 localhost sendmail[54608]: My unqualified host name (localhost) unknown; sleeping for retry
2025-03-17T10:03:56.339391+00:00 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