Logstash plugin mail error

Hi every body,
i use mail plugin in logstash but doesn't work.i get this error:

[ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: End of file reached

this my config:

input {
        file {
        path => "c:/logstash.log"
        start_position => "beginning"
        sincedb_path => "/dev/null"
        codec => multiline {
        pattern => "^%{TIMESTAMP_ISO8601}"
        #negate => true
        what => "previous"
   }}}
filter {
grok{
	  match => { "message" => "%{TIME:timestamp} %{LOGLEVEL:LEVEL} %{GREEDYDATA:errormsg}" }
	}
}
output {
 email {
  to => "receiver"
  codec => "plain"
  contenttype => "text/html; charset=UTF-8"
  body => "Here is the event line that occured: %{message}"
  address => "smtp.gmail.com"
  port => 465
  username => "mycompte"
  password => "password"
  use_tls => true
  }
  stdout { codec => rubydebug }
}

any help would be greatly appreciate.

I'm pretty sure you shouldn't be using port 465 with use_tls. The latter options enables SMTP with STARTTLS support which typically runs on port 25 or 587. Port 465 is SMTPS, i.e. SSL-wrapped SMTP.

Thank you so much @magnusbaeck.it works fine with the port 587.but deosn't work with 25.
Big Thanks.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.