From 07209d7833fda1dc3d762b42f163c7d9a06059e8 Mon Sep 17 00:00:00 2001 From: ale Date: Thu, 20 Jun 2019 12:22:33 +0000 Subject: [PATCH] clean --- fail2ban/entrypoint.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fail2ban/entrypoint.sh b/fail2ban/entrypoint.sh index 8661c37..766a5a0 100644 --- a/fail2ban/entrypoint.sh +++ b/fail2ban/entrypoint.sh @@ -29,10 +29,9 @@ fi # Send email if [ \$ABUSE_ADDR ]; then -#sendmail -t -i -f \$SENDER_MAIL \$ABUSE_ADDR << EOF -swaks -f \$SENDER_MAIL -t \"\$ABUSE_ADDR,webmaster@$DOMAIN\" --tlsc -au $USER -ap $PASS -s $SMTP -p 465 ---h-Subject \"[Urgent]: Automatic abuse report for IP address \$REMOTE_IP from $DOMAIN, please read\" --h-From \"Fail2Ban $DOMAIN <\$SENDER_MAIL>\" ---h-Bcc \"webmaster@$DOMAIN\" --h-To \$ABUSE_ADDR --body +swaks -f \$SENDER_MAIL -t \"\$ABUSE_ADDR,webmaster@$DOMAIN\" --tlsc -au $USER -ap $PASS -s $SMTP -p 465 \\ +--h-Subject \"[Urgent]: Automatic abuse report for IP address \$REMOTE_IP from $DOMAIN, please read\" --h-From \"Fail2Ban $DOMAIN <\$SENDER_MAIL>\" \\ +--h-Bcc \"webmaster@$DOMAIN\" --h-To \$ABUSE_ADDR --body \\ \"This is an automatic email abuse report about the IP address \$REMOTE_IP generated at \$DATE, please do not reply. You get this email because you are listed as the official and popular abuse email contact for this concrete IP address. @@ -47,7 +46,6 @@ Thanks for your time and curiosity... take care with botnets... together will do a better and free world :-) from postmaster@$DOMAIN by www.$DOMAIN\" -EOF fi" > fail2ban_abuse_mail.sh echo "[Definition]