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]