View Single Post
  #8  
Old 24th May 2010, 21:17
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

The 'action' settings are shortcuts that need to be configured correctly. Another way to send an email is to add the mail-whois directive to the action part (action can be multiline).

example in jail.local:
Code:
[postfix]
enabled  = true
port	 = smtp,ssmtp
filter   = postfix
logpath  = /var/log/mail.log
bantime  = 7200
maxretry = 2
action = hostsdeny
         mail-whois[name=Postfix, dest=spam_notify@yourdomain.com]
Since I'm now getting well over 100 bans an hour from bad Postfix connects I don't want email about it. But without the ban some of the same servers try to connect 50~100 times in that same hour. Spam sucks.
__________________
System6Hosting.com, ISPConfig 3, Debian.

Last edited by BorderAmigos; 24th May 2010 at 21:20.
Reply With Quote