Commit 6e277d00 authored by Cool Fire's avatar Cool Fire

Added CC to abuse mail

parent b8995982
......@@ -7,6 +7,8 @@ require 'ipaddr'
fw_logfile = '/home/coolfire/fw_block.log'
f2b_logfile = '/var/log/fail2ban.log'
cc_address = 'coolfire@insomnia247.nl'
iplist = Array.new
# Get the date
......@@ -120,7 +122,7 @@ Fail2ban hits:
MESSAGE_END
# Send out mail
%x(echo '#{mail}' | mail -s "Abuse from #{ip.to_s}" "#{abuse_contact}" )
%x(echo '#{mail}' | mail -s "Abuse from #{ip.to_s}" -c "#{cc_address}" #{abuse_contact}" )
# Don't batter our upstram mail servers
sleep(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment