summaryrefslogtreecommitdiff
path: root/config/action.d/sendmail-buffered.conf
diff options
context:
space:
mode:
authorAlexander Dietrich <alexander@dietrich.cx>2013-07-02 20:30:41 +0200
committerAlexander Dietrich <alexander@dietrich.cx>2013-07-02 20:30:41 +0200
commitda594075f3f59476ef055a6387634468fa839036 (patch)
tree54f5634bd735eb472543972ac8c9f4dae9d3490d /config/action.d/sendmail-buffered.conf
parente6ebcf66872a769c485a693273022d090cc0ae4e (diff)
downloadfail2ban-da594075f3f59476ef055a6387634468fa839036.tar.gz
Move sendmail settings to common file, make sender name configurable
Diffstat (limited to 'config/action.d/sendmail-buffered.conf')
-rw-r--r--config/action.d/sendmail-buffered.conf18
1 files changed, 7 insertions, 11 deletions
diff --git a/config/action.d/sendmail-buffered.conf b/config/action.d/sendmail-buffered.conf
index bec1e91c..f5ca6c10 100644
--- a/config/action.d/sendmail-buffered.conf
+++ b/config/action.d/sendmail-buffered.conf
@@ -4,6 +4,10 @@
#
#
+[INCLUDES]
+
+before = sendmail-common.conf
+
[Definition]
# Option: actionstart
@@ -11,7 +15,7 @@
# Values: CMD
#
actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
- From: Fail2Ban <<sender>>
+ From: <sendername> <<sender>>
To: <dest>\n
Hi,\n
The jail <name> has been started successfully.\n
@@ -25,7 +29,7 @@ actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
#
actionstop = if [ -f <tmpfile> ]; then
printf %%b "Subject: [Fail2Ban] <name>: summary
- From: Fail2Ban <<sender>>
+ From: <sendername> <<sender>>
To: <dest>\n
Hi,\n
These hosts have been banned by Fail2Ban.\n
@@ -58,7 +62,7 @@ actionban = printf %%b "`date`: <ip> (<failures> failures)\n" >> <tmpfile>
LINE=$( wc -l <tmpfile> | awk '{ print $1 }' )
if [ $LINE -ge <lines> ]; then
printf %%b "Subject: [Fail2Ban] <name>: summary
- From: Fail2Ban <<sender>>
+ From: <sendername> <<sender>>
To: <dest>\n
Hi,\n
These hosts have been banned by Fail2Ban.\n
@@ -82,14 +86,6 @@ actionunban =
#
name = default
-# Destination/Addressee of the mail
-#
-dest = root
-
-# Sender of the mail
-#
-sender = fail2ban
-
# Default number of lines that are buffered
#
lines = 5