|
|
@ -38,18 +38,17 @@ actionstop =
|
|
|
|
|
|
|
|
|
|
|
|
actioncheck =
|
|
|
|
actioncheck =
|
|
|
|
|
|
|
|
|
|
|
|
actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP} ;ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs}
|
|
|
|
actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); IFS=${oifs}
|
|
|
|
IP=<ip>
|
|
|
|
IP=<ip>
|
|
|
|
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
|
|
|
|