Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 11th June 2009, 17:10
davew davew is offline
Junior Member
 
Join Date: May 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can set something similar up with fail2ban using the supplied postfix filter assuming you are running fail2ban,

In /etc/fail2ban/jail.conf add something like the following...
Code:
[postfix-tcpwrapper]

enabled  = true
filter   = postfix
action   = hostsdeny
           sendmail[name=Postfix, dest=you@yourdomain.net]
logpath  = /var/log/maillog
maxretry = 3
bantime  = 900
findtime  = 900
then restart fail2ban

Code:
service fail2ban restart
This will block access to all services on your server for 15 minutes to anyone who tries to send mail to 3 unknown recipients within a 15 minute period.
Obviously you can tweak the settings to suit your own preferences.

Don't forget to change the email address for notifications and maybe add known safe IPs to the
Code:
ignoreip = 127.0.0.1
value near the top of the file.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i dont recive any mail of any domain chua_jose Installation/Configuration 18 10th November 2008 18:55
ISPConfig Postfix question morganew Installation/Configuration 6 8th April 2008 16:37
ISPconfig after installation cannot reach www.xyz.de:81 Figth4Linux Installation/Configuration 23 6th March 2008 22:38
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
ISPConfig Postfix ERROR (Relay access denied) burzumishi Installation/Configuration 1 3rd August 2006 09:47


All times are GMT +2. The time now is 08:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.