I have to configure the sending of email alerts on
Vcenter version 6.7.0.42
My mail server wants the password in clear text.
I configured the mail settings both on Configure->Settings->General and
Configure->Settings->Advanced Settings.
In neither of them there is the possibility to set the authentication mode.
I opened a shell on vcenter and saw in the directory /usr/lib/ vmware-vpx the script config_sendmail.sh which receives the authentication mode as a parameter and generates the files sendmail.cf email configuration in /etc/mail.
In order to have a log with more information I have inserted the followinf line in config_sendmail.sh
echo "define (\`confLOG_LEVEL ', \ `15') dnl"
I would like to know :
Update 2020/12/02
In Configure->Settings->General and in
Configure->Settings->Advanced Settings I changed server to use google's open relay server smtp.gmail.com, on /var/mail/root I get the answer:
---- Transcript of session follows -----
... while talking to smtp.gmail.com.:
>>> MAIL From:<xxxxx@gmail.com> SIZE=1157 AUTH=<>
<<< 530-5.7.0 Authentication Required. Learn more at
<<< 530 5.7.0 https://support.google.com/mail/?p=WantAuthError b14sm2069969wrx.35 - gsmtp
554 5.0.0 Service unavailable
it seems that the credentials set are not used.
I also had to manually edit the
/etc/mail/sendmail.cf
file adding the smtp server to the line
# "Smart" relay host (may be null)
DS smtp.gmail.com
otherwise the server was not addressed.
Despite what has been done I cannot receive emails
Moderator: Moved to vCenter Server Discussions