This is another issue I see from time to time in Support Requests showing up in my team
This time the DNS settings are fine but the Appliance is still not able to send the emails, and a reboot of the appliance is not helping.
So let’s have a look at the /var/log/messages
.
2018-01-15T12:44:41.259549+01:00 vcenter sendmail[35923]: w0FBifp0035923: from=server+bfr-vcsa-01@int.bens.systems size=535, class=0, nrcpts=1, msgid=<201801151144.w0FBifp0035923@vcenter.example.com>, relay=root@localhost 2018-01-15T12:44:41.275104+01:00 vcenter sendmail[35923]: w0FBifp0035923: to=admin@bens.systems, ctladdr=server+bfr-vcsa-01@int.bens.systems (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30535, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
OK, so we will get a Connection refused by [127.0.0.1]
when the vpxd process is trying to send the email to the local sendmail server for delivery to the relay host.
When checking for the port with netstat -tulpen | grep :25
we will get no result.
In this case, restarting the service using systemctl
will not help, as there will be a conflict regarding the port.
The easiest way to fix the issue is to simply open the web client, go to the vCenter email settings and remove them, save the changes and re-add them.
This will restart the sendmail daemon using the vCenter internal way of managing system services.
Now you vCenter should send emails again.
Thanks for your solution – I encountered exactly the same issue…..
LikeLike
Hi Roland,
thanks you very much for the feedback.
– Ben
LikeLike
Hi Benedikt
Thanks for the publication. JFYI – it seems like the issue reappears after VCSA rebooted.
LikeLike
Upgrade with 6.5u1f. Result no mail send. Log in messages :
…
….
0, xdelay=00:00:00, mailer=relay, pri=30568, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
2018-03-07T02:38:54.265210+01:00 vcsli cli: twisted “127.0.0.1” – – [07/Mar/2018:01:38:53 +0000] “POST /api HTTP/1.1” 200 2783 “-” “vAPI http client”
Thanks for your solution @BenediktFrenzel
LikeLike