Tag Archives: Email

Email Alerts not sending in vCenter 6.5

Symptoms

  • vCenter (in my case VCSA 6.5 ) is not sending alert emails even though the mail server appears to be configured properly (in the vSphere Web Client this is on the vCenter node under Configure, Settings, General).
  • Network connectivity between vCenter and port 25 on the SMTP server is fine and has been tested.
  • The logs on the SMTP server show no evidence of emails beings sent.
  • When connecting via SSH to the vCenter Server Appliance the sendmail logs are showing errors such as:
    cat /var/log/messages | grep sendmail

    2018-07-14T04:24:46.569978+00:00 my-vc sendmail[21502]: ……: [email protected], [email protected] (0/0),
      delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30528, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0,
      stat=Deferred: Connection refused by [127.0.0.1]
  • Cause

    The “Connection refused by [127.0.0.1]” in the logs is the giveaway here- the settings in the client have not been applied to the sendmail service and vCenter is trying to connect to the localhost as the SMTP server.

    Solution

    Go to the client and reconfigure the mail server to point at something else (it doesn’t have to be a real hostname). Then change it back to the correct settings. Normal alerts will be resumed automatically straight away.  You can test if it works by temporarily adding an additional trigger with a very low threshold to an existing alert with notification action.

    vCenter Mail Settings in vSphere Web Client

    vCenter Mail Settings in vSphere Web Client


    Thanks to vExpert Laurens van Duijin for sending me down the right path with this issue.

Removing Attachments to Save Space

If, like me, you use your email archive as a record of what’s happened and if, like mine, this means your email box is approaching capacity, here’s a trick that might free up some space.

In Microsoft Outlook (with an Exchange/ Office365 back end) the attachments are stored in your mailbox. Quite often I find I want to keep the content of the mail for posterity, but I don’t need the attachment- for example when I email a document to someone and have the original stored safely elsewhere.

In Outlook 2013 it’s possible to remove just the attachment, leaving the mailbox intact. To do this, locate the email in your mailbox, right-click on the attachment and choose “Remove Attachment” from the context menu.

image

You will be prompted to confirm this, and doing so will remove the attachment but keep the message.

image