diff options
Diffstat (limited to 'config/action.d/sendmail-buffered.conf')
-rw-r--r-- | config/action.d/sendmail-buffered.conf | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/config/action.d/sendmail-buffered.conf b/config/action.d/sendmail-buffered.conf index 80eb20a3..37bc642d 100644 --- a/config/action.d/sendmail-buffered.conf +++ b/config/action.d/sendmail-buffered.conf @@ -10,11 +10,14 @@ before = sendmail-common.conf [Definition] +# bypass ban/unban for restored tickets +norestored = 1 + # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # -actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on `uname -n` +actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on <fq-hostname> From: <sendername> <<sender>> To: <dest>\n Hi,\n @@ -28,7 +31,7 @@ actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on `uname -n` # Values: CMD # actionstop = if [ -f <tmpfile> ]; then - printf %%b "Subject: [Fail2Ban] <name>: summary from `uname -n` + printf %%b "Subject: [Fail2Ban] <name>: summary from <fq-hostname> From: <sendername> <<sender>> To: <dest>\n Hi,\n @@ -38,7 +41,7 @@ actionstop = if [ -f <tmpfile> ]; then Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest> rm <tmpfile> fi - printf %%b "Subject: [Fail2Ban] <name>: stopped on `uname -n` + printf %%b "Subject: [Fail2Ban] <name>: stopped on <fq-hostname> From: Fail2Ban <<sender>> To: <dest>\n Hi,\n @@ -61,7 +64,7 @@ actioncheck = 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 `uname -n` + printf %%b "Subject: [Fail2Ban] <name>: summary from <fq-hostname> From: <sendername> <<sender>> To: <dest>\n Hi,\n |