Home > Blogs > VMware SMB Blog


From the Bloggers Bench: Relay vCenter Alert Emails Externally

Post by Craig Kilborn, Technical Consultant

When configuring your vCenter environment, most if not all VMware Administrators will set up email alerting. I covered the configuration of this in Setting Up & configuring Alarms In vCenter Part 1.

Unfortunately, if you leave Exchange 2010 using its Default Receive Connector, you will only receive alerts internally e.g. to the domains which Exchange 2010 is authoritative. This causes a problem if you need to send alerts to a third party e.g. Managed Service Provider.

To demonstrate the issue, I have connected to a vCenter server and then I’m going to telnet to an Exchange 2010 CAS Server on port 25 by issuing the command:

telnet VMF-EX01 25

Once in enter the following:

EHLO
MAIL FROM: vmware@testdomain.co.uk
<Press Enter>
RCPT TO: craig@vmfocus.com
<Press Enter>

Here we have the failure 550 5.7.1 Unable to relay:

So let’s hop onto Exchange 2010 and create a Receive Connector under Server Configuration > Hub Transport. I have called this one VMware and I have given it a FQDN to respond.

 Under network enter the IP addresses of your vCenter server and only these.

We already know that vCenter isn’t authenticating with Exchange 2010 as we haven’t had to enter any Active Directory credentials to enable relaying. So we want to choose Externally Secured under Authentication.

Under Permission groups we need to select Anonymous Users and Exchange Servers as you can’t just have Anonymous Users by itself.

Apply and OK the new Receive Connector. Next let’s hop back onto vCenter and telnet to the Exchange Server again using:

telnet VMF-EX01 25

EHLO
MAIL FROM: vmware@testdomain.co.uk
<Press Enter>
RCPT TO: craig@vmfocus.com
<Press Enter>
DATA
<Press Enter>
Subject: vCenter Test Email
<Press Enter>

Voila, we have now enabled vCenter to successfully send email alerts externally.

If you want to find out more, hop over to http://vmfocus.com…Or get in touch via twitter @vmfcraig.

Get to know Craig: 10 Questions with…Craig Kilborn

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>