Compare commits

...
3 changed files with 29 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
[INCLUDES]
# Load customizations if any available
after = common.local
[DEFAULT]
_LC_CTYPE = `locale | awk -F= '/LC_CTYPE/{ print $2; }'`
# To avoid duplication -- define useful header fields
_ContentTypeMailHeader = Content-Type: text/plain; charset=%(_LC_CTYPE)s
+9 -2
View File
@@ -2,8 +2,12 @@
#
# Author: Cyril Jaquier
#
# $Revision$
#
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
# common.local
before = common.conf
[Definition]
@@ -13,6 +17,7 @@
#
actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n
@@ -26,6 +31,7 @@ actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
#
actionstop = printf %%b "Subject: [Fail2Ban] <name>: stopped
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n
@@ -49,6 +55,7 @@ actioncheck =
#
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip>
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n
+9
View File
@@ -5,6 +5,12 @@
# $Revision$
#
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
# common.local
before = common.conf
[Definition]
# Option: actionstart
@@ -13,6 +19,7 @@
#
actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n
@@ -26,6 +33,7 @@ actionstart = printf %%b "Subject: [Fail2Ban] <name>: started
#
actionstop = printf %%b "Subject: [Fail2Ban] <name>: stopped
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n
@@ -49,6 +57,7 @@ actioncheck =
#
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip>
Date: `date -u +"%%a, %%d %%h %%Y %%T +0000"`
%(_ContentTypeMailHeader)s
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,\n