我正在使用Xenserver 6.2并将ssmtp.confconfiguration为mail_alert.conf,以便通过电子邮件接收警报。 我遵循http://support.citrix.com/servlet/KbServlet/download/34969-102-706058/reference.pdf文件中的说明。 我使用Gmail邮件发送电子邮件。 当我尝试:
[root@xen /]# ssmtp [email protected]
从命令行并尝试发送电子邮件,没问题。 这是正确的路上。 但是当我设置一些虚拟机来生成警报时,会生成警报。 我在XenCenter中看到,但电子邮件不起作用。 我在/ var / log / maillog文件中看到这个:
May 27 16:17:09 xen sSMTP[30880]: Server didn't like our AUTH LOGIN (530 5.7.0 Must issue a STARTTLS command first. 18sm34990758wju.15 - gsmtp)
从命令行,每件事情都很好。 这是上述命令行操作的日志logging:
May 27 15:55:58 xen sSMTP[27763]: Creating SSL connection to host May 27 15:56:01 xen sSMTP[27763]: SSL connection using RC4-SHA May 27 15:56:04 xen sSMTP[27763]: Sent mail for emailaddress@gmail.com (221 2.0.0 closing connection ln3sm34863740wjc.8 - gsmtp) uid=0 username=root outbytes=495
有任何想法吗?
发布/etc/ssmtp/ssmtp.conf和/etc/mail_alert.conf文件的内容是很有用的。
无论如何,你是否试图在/etc/mail_alert.conf包含UseTLS=YES ?