Email alerts not working after upgrading to vCenter 6.5 U1
search cancel

Email alerts not working after upgrading to vCenter 6.5 U1

book

Article ID: 344813

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Unable to get email notification from vCenter for triggered alarms. 
  • In var/log/messages,You see these entries:
2017-09-26T16:40:10.116230+00:00 vcenter_fqdn systemd-resolved[16963]: Switching to system DNS server 172.29.0.11.

2017-09-26T16:42:06.505797+00:00 vcenter_fqdncli: twisted "127.0.0.1" - - [26/Sep/2017:16:42:06 +0000] "POST /api HTTP/1.1" 200 2783 "-" "vAPI http client" 

2017-09-26T16:43:04.259113+00:00 vcenter_fqdns endmail[13833]: v8QGh45Z013833: 
[email protected], size=749, class=0, nrcpts=1, msgid=, relay=root@localhost

2017-09-26T16:43:04.298028+00:00 vcenter_fqdns endmail[13835]: v8QGh4eb013835: ruleset=check_mail, arg1=, [email protected] [127.0.0.1], reject=553 5.1.8 ... Domain of sender address [email protected] does not exist

2017-09-26T16:43:04.298379+00:00 vcenter_fqdn sendmail[13833]: v8QGh45Z013833: to=vmwarealerts@[email protected], [email protected] (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30749, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error

2017-09-26T16:43:04.298573+00:00 vcenter_fqdn sendmail[13833]: v8QGh45Z013833: v8QGh45a013833: DSN: Data format error 

2017-09-26T16:43:04.342822+00:00 vcenter_fqdn sendmail[13835]: v8QGh4eb013835: from=, size=749, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, [email protected] [127.0.0.1] 

2017-09-26T16:43:04.362642+00:00 vcenter_fqdn sendmail[13835]: v8QGh4ec013835: from=, proto=ESMTP, daemon=MTA, [email protected] [127.0.0.1]
 
2017-09-26T16:43:04.378743+00:00 vcenter_fqdn sendmail[13834]: v8QGh45d013834: [email protected], size=743, class=0, nrcpts=1, msgid=, relay=root@localhost

2017-09-26T16:43:04.389267+00:00 vcenter_fqdn sendmail[13833]: v8QGh45a013833: [email protected], delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31773, relay=[127.0.0.1], dsn=2.0.0, stat=Sent (v8QGh4ec013835 Message accepted for delivery)
 
2017-09-26T16:43:04.389880+00:00 vcenter_fqdn sendmail[13836]: v8QGh4Sb013836: ruleset=check_mail, arg1=, [email protected] [127.0.0.1], reject=553 5.1.8 ... Domain of sender address [email protected] does not exist
 
2017-09-26T16:43:04.390636+00:00 vcenter_fqdn sendmail[13834]: v8QGh45d013834: to=coreit@[email protected], [email protected] (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30743, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error
 
2017-09-26T16:43:04.390821+00:00 vcenter_fqdn sendmail[13834]: v8QGh45d013834: v8QGh45e013834: DSN: Data format error
 
2017-09-26T16:43:04.413847+00:00 vcenter_fqdn sendmail[13838]: STARTTLS=client, [email protected]., version=TLSv1, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA, bits=256/256 

2017-09-26T16:43:04.434780+00:00 vcenter_fqdn sendmail[13836]: v8QGh4Sb013836: from=, size=743, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, [email protected] [127.0.0.1]

2017-09-26T16:43:04.454679+00:00 vcenter_fqdn sendmail[13836]: v8QGh4Sc013836: from=, proto=ESMTP, daemon=MTA, [email protected] [127.0.0.1] 

2017-09-26T16:43:04.489322+00:00 vcenter_fqdn sendmail[13834]: v8QGh45e013834: [email protected], delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31767, relay=[127.0.0.1], dsn=2.0.0, stat=Sent (v8QGh4Sc013836 Message accepted for delivery) 

2017-09-26T16:43:04.514419+00:00 vcenter_fqdn sendmail[13840]: STARTTLS=client, [email protected]., version=TLSv1, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA, bits=256/256

2017-09-26T16:43:04.525320+00:00 vcenter_fqdn sendmail[13840]: v8QGh4Sc013836: to=, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=123001, [email protected]. [x.x.x.x], dsn=2.0.0, stat=Sent ( [InternalId=59448788] Queued mail for delivery) 

2017-09-26T16:43:04.525634+00:00 vcenter_fqdn sendmail[13838]: v8QGh4ec013835: to=, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=123025, [email protected]. [x.x.x.x], dsn=2.0.0, stat=Sent ( [InternalId=59448787] Queued mail for delivery) 

2017-09-26T16:44:42.866192+00:00 vcenter_fqdn systemd-resolved[16963]: Switching to system DNS server x.x.x.x. 

2017-09-26T16:45:01.751432+00:00 vcenter_fqdn CROND[14584]: (root) CMD ( /usr/sbin/iiad.sh >/dev/null 2>&1)
 
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.


Environment

VMware vCenter Server Appliance 6.5.x

Resolution

To resolve this issue:
  1. Take a snapshot of the VCSA first Go to /etc/mail vi submit.cf
  2. Search for DS # "Smart" relay host (may be null) DS
  3. Change it to # "Smart" relay host (may be null)  DS[mail.server.entry] ---> FQDN of the mail server
  4. Save the file and Exit.
  5. Run the command to restart the sendmail service:
systemctl restart sendmail