logwatch: Add support for setting the mail sender address
This commit is contained in:
parent
79f7fe657c
commit
b8244798d3
2 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,10 @@
|
||||||
# === Global variables
|
# === Global variables
|
||||||
#
|
#
|
||||||
# $logwatch_mailto:
|
# $logwatch_mailto:
|
||||||
# Logwatch mail recipient.
|
# Logwatch mail recipient address.
|
||||||
|
#
|
||||||
|
# $logwatch_mailfrom:
|
||||||
|
# Logwatch mail sender address.
|
||||||
#
|
#
|
||||||
# $logwatch_level:
|
# $logwatch_level:
|
||||||
# Logwatch detail level for report. Valid values are
|
# Logwatch detail level for report. Valid values are
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
<% if @logwatch_mailto -%>
|
<% if @logwatch_mailto -%>
|
||||||
MailTo = <%= @logwatch_mailto %>
|
MailTo = <%= @logwatch_mailto %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% if @logwatch_mailfrom -%>
|
||||||
|
MailFrom = <%= @logwatch_mailfrom %>
|
||||||
|
<% end -%>
|
||||||
<% if @logwatch_level -%>
|
<% if @logwatch_level -%>
|
||||||
Detail = <%= @logwatch_level %>
|
Detail = <%= @logwatch_level %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue