Email alerts are not sent after patching vCenter server 6.7.x
We observe similar message in journalctl logs:
DATE HH:MM:SS HOSTNAME sendmail[100316]: 05DEuIHH067542: to=<[email protected]>, delay=4+22:47:54, xdelay=00:00:00, mailer=esmtp, pri=10202474, relay=domain.com., dsn=4.0.0, stat=Deferred: Connection timed out with domain.com.
It can be observed the relay address is not the one set on vCenter Server. If mail server is set to mailbox.domain.com, we see relay server address as domain.com.
VMware vCenter Server Appliance 6.7.x
After applying patch, relay server address is modified as domain.com instead of actual relay server address. Hence, vCenter resolves domain.com for relay server address and reaches one of the domain controllers' addresses instead of mail server causing the connection timed out message.
Follow the below steps to re-configure SMTP configuration on the vCenter Server.