mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Set sendmail as valid transport
This commit is contained in:
parent
8e4216dc4d
commit
ef28018494
1 changed files with 6 additions and 2 deletions
|
@ -38,11 +38,11 @@ require "logstash/namespace"
|
|||
class LogStash::Outputs::Email < LogStash::Outputs::Base
|
||||
|
||||
config_name "email"
|
||||
plugin_status "beta"
|
||||
plugin_status "experimental"
|
||||
|
||||
# the registered fields that we want to monitor
|
||||
# A hash of matches of field => value
|
||||
config :match, :validate => :hash, :required => true
|
||||
config :match, :validate => :hash
|
||||
|
||||
# the To address setting - fully qualified email address to send to
|
||||
config :to, :validate => :string, :required => true
|
||||
|
@ -176,6 +176,10 @@ class LogStash::Outputs::Email < LogStash::Outputs::Base
|
|||
:enable_starttls_auto => tls,
|
||||
:debug => debug }
|
||||
end
|
||||
elsif @via == 'sendmail'
|
||||
Mail.defaults do
|
||||
delivery_method :sendmail
|
||||
end
|
||||
else
|
||||
Mail.defaults do
|
||||
delivery_method :@via, @options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue