Email output with mandrill


(Clay Gorman) #1

Hello,

I am running logstash 2.0 and I configured email output for mandrill and emails dont send and debug info doesnt seem very helpful.

My settings are basically

  output {
             email {
                     address => "smtp.mandrillapp.com"
                     port => 587 
                     use_tls => true
                     username => "user@domain.com"
                     password => "apikey"
                     authentication => "plain"
                     domain => "domain.com"
                     from => "user@domain.com"
                     to => "myemail@domain.com"
                     via => "smtp"
                     debug => true
                     subject => "CRITICAL test"
                     body => "test again"
             } 
}

And when i run in foreground I only thing I see is

Creating mail with these settings :  {:via=>"smtp", :options=>nil, :from=>"user@domain.com", :to=>"myemail@domain.com", :cc=>nil, :subject=>"CRITICAL test", :body=>"test again", :content_type=>"text/html; charset=UTF-8", :htmlbody=>"", :attachments=>[], :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"109", :method=>"receive"}
Sending mail with these values :  {:from=>["user@domain.com"], :to=>["myemail@domain.com"], :cc=>[], :subject=>"CRITICAL test", :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"138", :method=>"receive"}

I was wondering if any of my settings seem obviously wrong? I omitted usernames/passwords for security but message is otherwise copy and paste. I also run ngrep on port 587 and see nothing so seems like its not even trying.

Any help is appreciated.


(Clay Gorman) #2

looks like getting rid of authentication option fixes it


(system) #3