VMware Cloud Community
hgabbassi69
Contributor
Contributor

vCenter Appliance 6.7U1 Email Alerts Not Working

I upgraded from vCenter 6.0 for Windows to VCSA 6.7 U1 and cannot get the SMTP notifications working.

Every treads I found about that kind of issue are for 6.5 or older and the solutions provided dont work.

In vSphere > Manage > General > Mail > Mail server,  I tried both fqdn and IP address without success

I found this command to test mail from the appliance in SSH

echo "subject: sendmail test" | sendmail -v name@cie.com

Not shure how to understand the output...

I do see the errors (in red) witch normaly point to a misconfiguration on the mail server side but my Exchange server has a properly configured receive connector

name@cie.com... Connecting to 192.168.168.97. via relay...

220 mail.domain.local Microsoft ESMTP MAIL Service ready at Thu, 13 Dec 2018 15:01:36 -0500

>>> EHLO VCENTER.domain.local

250-mail.domain.local Hello [192.168.168.201]

250-SIZE 41943040

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-STARTTLS

250-AUTH

250-8BITMIME

250-BINARYMIME

250 CHUNKING

>>> STARTTLS

220 2.0.0 SMTP server ready

>>> EHLO VCENTER.domain.local

250-mail.domain.local Hello [192.168.168.201]

250-SIZE 41943040

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-AUTH

250-8BITMIME

250-BINARYMIME

250 CHUNKING

>>> MAIL From:<root@VCENTER.domain.local> SIZE=23

250 2.1.0 Sender OK

>>> RCPT To:<name@cie.com>

>>> DATA

550 5.7.1 Unable to relay

503 5.5.2 Need rcpt command

>>> RSET

250 2.0.0 Resetting

root... Connecting to [127.0.0.1] via relay...

220 VCENTER.domain.local ESMTP Sendmail 8.15.2/8.15.2; Thu, 13 Dec 2018 15:01:54 -0500

>>> EHLO VCENTER.domain.local

250-VCENTER.domain.local Hello VCENTER.domain.local [127.0.0.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-EXPN

250-VERB

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-AUTH GSSAPI CRAM-MD5

250-STARTTLS

250-DELIVERBY

250 HELP

>>> VERB

250 2.0.0 Verbose mode

>>> STARTTLS

220 2.0.0 Ready to start TLS

>>> EHLO VCENTER.domain.local

250-VCENTER.domain.local Hello VCENTER.domain.local [127.0.0.1], pleased to meet you

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-EXPN

250-VERB

250-8BITMIME

250-SIZE

250-DSN

250-ETRN

250-AUTH GSSAPI CRAM-MD5

250-DELIVERBY

250 HELP

>>> VERB

250 2.0.0 Verbose mode

>>> MAIL From:<> SIZE=1047

250 2.1.0 <>... Sender ok

>>> RCPT To:<root@VCENTER.domain.local>

>>> DATA

250 2.1.5 <root@VCENTER.domain.locall>... Recipient ok

354 Enter mail, end with "." on a line by itself

>>> .

050 <root@VCENTER.domain.local>... Connecting to local...

050 <root@VCENTER.domain.local>... Sent

250 2.0.0 wBDK1sHg037546 Message accepted for delivery

root... Sent (wBDK1sHg037546 Message accepted for delivery)

Closing connection to [127.0.0.1]

>>> QUIT

221 2.0.0 VCENTER.domain.local closing connection

Closing connection to 192.168.168.97.

>>> QUIT

221 2.0.0 Service closing transmission channel

You have new mail in /var/mail/root

Any help woud be appreciated

2 Replies
gopinathan
Contributor
Contributor

Not sure if these steps will work. I will try sometime next week,

https://www.ictstuff.info/vsphere-6-7-no-e-mail-notifications-from-vcenter/

Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

Hi,

Error messages refer to the Exchange Server.

Just make sure that you have entered all the SMTP configuration data of the relay server and the user account with the permissions

Solved: Exchange SMTP Error 550 5.7.1 Unable To Relay

https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vcenterhost.doc/GUID-467DA288-7844-...

Configure Mail Sender Settings

Best Regards

Alessandro Romeo

Blog: https://www.aleadmin.it/