VMware Cloud Community
ThriveTP
Contributor
Contributor

VCSA 6.7 SMTP Setup

Hi-

Trying to configure vcenter server to send smtp alerts using the following article, Configure Mail Sender Settings​, but getting stuck at step 3 (pasted below)--i do not see a General tab under Configure for the VCenter VM. I'm probably misunderstanding, but any guidance would be a help. It's a VSphere 6.7 Essentials license, if that matters. Thanks.

Procedure

  1. In the vSphere Client, navigate to the vCenter Server instance.
  2. Select the Configure tab.
  3. Under Settings, select General.
  4. Click Edit.
  5. Select Mail.
  6. In Mail server, type the SMTP server information.

    The SMTP server is the DNS name or IP address of the SMTP gateway to use for sending email messages.

  7. In Mail sender, type the sender account information.

    The sender account is the email address of the sender.

    Note: You must type the full email address, including the domain name.

    For example, mail_server@example.com.
  8. Click Save.
Tags (2)
22 Replies
diegodco31
Leadership
Leadership

Hi

You could try this:

pastedImage_0.png

Configure vCenter Mail Sender and E-mail Alerts - VirtuBytes

Diego Oliveira
LinkedIn: http://www.linkedin.com/in/dcodiego
IRIX201110141
Champion
Champion

Hehehe..... you have select the VM it self. The manual means that you have to select the vCenter application which is the top level object within the tree on the left side of your screen.

Regards,
Joerg

Reply
0 Kudos
ThriveTP
Contributor
Contributor

Ah... thank you. I see. So that's sorted. Now where do I find the where to configure the SMTP relay settings like authentication, port, etc.?

Reply
0 Kudos
NathanosBlightc
Commander
Commander

You can do it in "Advanced Settings" section of the vcenter server configure tab.

Search for smtp, then you can find username, password and port settings

Please mark my comment as the Correct Answer if this solution resolved your problem
josesolis49
Contributor
Contributor

THANKS !

Reply
0 Kudos
mahmn
Enthusiast
Enthusiast

Hello

I have set SMTP information. How can I test for a successful send?

Reply
0 Kudos
IRIX201110141
Champion
Champion

Edit an existing alarm like  Host Memory and reduce the warning threshold down to 1%.  Be sure that you have select "email" as action.

When the yellow alarm sign popped up on in the GUI just check the Events on Cluster/Host level for the notification of sending an email.

Regards,
Joerg

mahmn
Enthusiast
Enthusiast

I did that for a gmail account which I know the smtp works. Please see that hosts memory is above 50% (most of the time they are >50%).

hosts.png

Then I created an alarm like this:

alarm.png

Please note that the smtp configuration in the GENERAL and ADVANCED sections are shown below.

advanced.png

general.png

Please note that sender and receiver are different (black and red bars).

Is there any way to check the logs? I can not find that.

Maybe it is trying to send email but there are some errors which I can not see.

Reply
0 Kudos
mahmn
Enthusiast
Enthusiast

Excuse me. Please see the alarm tab below that it can has been triggered.

alarm2.png

Reply
0 Kudos
IRIX201110141
Champion
Champion

Check the Events on cluster level.... there will be notification about sending the mail for every single alarm.

Regards,

Joerg

Reply
0 Kudos
mahmn
Enthusiast
Enthusiast

Don't see anything informative about email problems here.

Please see three event:

1- From green to yellow

2- Triggered an action

3- Sent email

e1.png

e2.png

e3.png

Reply
0 Kudos
IRIX201110141
Champion
Champion

As you see..... the VCSA tried to send an E-Mail.

If you dont get the mail

Regards,
Joerg

Reply
0 Kudos
mahmn
Enthusiast
Enthusiast

I tried to login to the vCenter via ssh. As you can see there are no sign of smtp or gmail in /var/log

$ ssh root@10.1.1.2

VMware vCenter Server Appliance 6.7.0.40000

Type: vCenter Server with an embedded Platform Services Controller

root@10.1.1.2's password:

Warning: untrusted X11 forwarding setup failed: xauth key data not generated

Last login: Sat May 16 20:00:52 2020 from 10.1.1.1

Connected to service

    * List APIs: "help api list"

    * List Plugins: "help pi list"

    * Launch BASH: "shell"

Command> shell

Shell access is granted to root

root@10 [ ~ ]# cd /var/log

root@10 [ /var/log ]# grep -ri smtp .

Binary file ./journal/36ab8ece4c2f4e359fba9c3a9481c82a/system@28829f1b349643cda72b81fe09807a39-0000000000698e51-0005a337c8a02994.journal matches

Binary file ./journal/36ab8ece4c2f4e359fba9c3a9481c82a/system.journal matches

Binary file ./journal/36ab8ece4c2f4e359fba9c3a9481c82a/system@28829f1b349643cda72b81fe09807a39-0000000000722d92-0005a4b3af155426.journal matches

root@10 [ /var/log ]# grep -ri gmail .

Binary file ./journal/36ab8ece4c2f4e359fba9c3a9481c82a/system.journal matches

root@10 [ /var/log ]#

Where are the detailed logs then?

Reply
0 Kudos
lynxtech
Contributor
Contributor

Although I found the general section and the see the Mail area, there's no Edit button anywhere so that I can modify anything.  I must be missing something simple.

Reply
0 Kudos
mahmn
Enthusiast
Enthusiast

Look at the blue text EDIT in the upper right side of the screen

Untitled.png

Reply
0 Kudos
klutch14u
Enthusiast
Enthusiast

Trying to get mine working with gmail smtp, believe it's all set correctly but never receive the messages.  Anyone get this working correctly?

Reply
0 Kudos
zulkiradz
Contributor
Contributor

I have same problem. This nice vmware employee told me to open ticket in official support center.@@

I am using VCSA 7

 

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee

@zulkiradz 

This nice VMware employee (who doesn't work in the support team) was merely giving you guidance that VMTN is a user community forum after you started a post "Hi Support team".


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
hamtaz
Contributor
Contributor

Hello anyone can help ?

I would like to know if smtp.google.com is supported by vCenter v6.7 ? 

Can anybody provide the steps how do i configure if is possible ?

Thanks

Reply
0 Kudos