diff --git a/logwatch/manifests/init.pp b/logwatch/manifests/init.pp index f1b33be..40f69ff 100644 --- a/logwatch/manifests/init.pp +++ b/logwatch/manifests/init.pp @@ -3,7 +3,10 @@ # === Global variables # # $logwatch_mailto: -# Logwatch mail recipient. +# Logwatch mail recipient address. +# +# $logwatch_mailfrom: +# Logwatch mail sender address. # # $logwatch_level: # Logwatch detail level for report. Valid values are diff --git a/logwatch/templates/logwatch.conf.erb b/logwatch/templates/logwatch.conf.erb index ab25923..d3b501a 100644 --- a/logwatch/templates/logwatch.conf.erb +++ b/logwatch/templates/logwatch.conf.erb @@ -2,6 +2,9 @@ <% if @logwatch_mailto -%> MailTo = <%= @logwatch_mailto %> <% end -%> +<% if @logwatch_mailfrom -%> +MailFrom = <%= @logwatch_mailfrom %> +<% end -%> <% if @logwatch_level -%> Detail = <%= @logwatch_level %> <% end -%>