|
|
@ -43,13 +43,12 @@ actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP} ;ADDRESSES=$(di
|
|
|
|
FROM=<sender>
|
|
|
|
FROM=<sender>
|
|
|
|
SERVICE=<service>
|
|
|
|
SERVICE=<service>
|
|
|
|
FAILURES=<failures>
|
|
|
|
FAILURES=<failures>
|
|
|
|
MATCHES='<matches>'
|
|
|
|
|
|
|
|
REPORTID=<time>@`uname -n`
|
|
|
|
REPORTID=<time>@`uname -n`
|
|
|
|
TLP=<tlp>
|
|
|
|
TLP=<tlp>
|
|
|
|
PORT=<port>
|
|
|
|
PORT=<port>
|
|
|
|
DATE=`LC_TIME=C date -u --date=@<time> +"%%a, %%d %%h %%Y %%T +0000"`
|
|
|
|
DATE=`LC_TIME=C date -u --date=@<time> +"%%a, %%d %%h %%Y %%T +0000"`
|
|
|
|
if [ ! -z "$ADDRESSES" ]; then
|
|
|
|
if [ ! -z "$ADDRESSES" ]; then
|
|
|
|
(printf -- %%b "<header>\n<message>\n<report>\n${MATCHES}\n";
|
|
|
|
(printf -- %%b "<header>\n<message>\n<report>\n";
|
|
|
|
date '+Note: Local timezone is %%z (%%Z)';
|
|
|
|
date '+Note: Local timezone is %%z (%%Z)';
|
|
|
|
printf -- %%b "<ipmatches>\n\n<footer>") | <mailcmd> <mailargs> ${ADDRESSES//,/\" \"}
|
|
|
|
printf -- %%b "<ipmatches>\n\n<footer>") | <mailcmd> <mailargs> ${ADDRESSES//,/\" \"}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|