无法识别的身份验证类型-Logstash



我在通过Logstash电子邮件插件发送邮件时收到以下错误

←[31mSomething happen while delivering an email {:exception=>#<Net::SMTPAuthenticationError: 504 5.7.4 Unrecognized authentication type

以下是我的Logstash电子邮件插件Confifuration:

email {
    from => "mymail@domain.com"
    options => [ "smtpIporHost", "my ip",
         "port", "25",
         "userName", "mymail@domain.com",
         "password", "password"
       ]
  via => "smtp" # or pop or sendmail
  subject => "Alert from Logstash"
   body => "Here is the event line %{@message}"
   htmlbody => "<h2></h2><br/><br/><h3>Full Event</h3><br/><br/><div align='center'>%{@message}</div>"
}

但当我使用JAVA客户端(一个JAVA程序)发送邮件时,我可以发送邮件,但不能使用Logstash进行回复。

我错过了什么配置吗?以避免上述错误

我不知道你在logstash中使用的确切电子邮件插件版本,但你应该添加:

authentication => "login"

最新更新