Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在monit安装程序中,出现错误->;Sendmail:身份验证失败--找不到支持的身份验证方法_Sendmail_Monit - Fatal编程技术网

在monit安装程序中,出现错误->;Sendmail:身份验证失败--找不到支持的身份验证方法

在monit安装程序中,出现错误->;Sendmail:身份验证失败--找不到支持的身份验证方法,sendmail,monit,Sendmail,Monit,在/etc/monit/monitrc I中添加了以下块: set mailserver 'smtp.gmail.com' port 587 username 'xy@z.com' password 'whatever' 但它在日志中显示上述错误: Sendmail: Authentication failed -- no supported authentication methods found 使用以下命令: set mailserver

在/etc/monit/monitrc I中添加了以下块:

set mailserver 'smtp.gmail.com' port 587
            username 'xy@z.com'
            password 'whatever'
但它在日志中显示上述错误:

Sendmail: Authentication failed -- no supported authentication methods found
使用以下命令:

set mailserver smtp.gmail.com port 587
    username "xy@z.com" password "whatever"
    using tlsv1

注意:您需要启用
Gmail
帐户中的
IMAP
设置,以便通过第三方软件发送邮件。查看以了解更多信息。

不确定在上述配置中为“使用”参数设置什么值。