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.
Reply
 
Thread Tools Display Modes
  #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
  #12  
Old 18th September 2009, 12:38
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

I've got a somewhat related problem:

a customer is sending a huge newsletter and even though he is sending it in batches it still clogs down my server. using mytop I can see when he is sending his newsletter that I have between 30-1500 qps :-( and it is always the dbispconfig DB that is accessed...

how do other people handle the sending of huge newsletters?

I am not sure what the problem is, should I increase the max connections? the server is not running our of RAM its just that when the sending is in progress, different random Db queries fail, so I guessed its the max conection settign that I coudl up? the caches are effective, but well, the problem still persists...
Reply With Quote
  #13  
Old 18th September 2009, 12:47
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

I've got a somewhat related problem:

a customer is sending a huge newsletter and even though he is sending it in batches it still clogs down my server. using mytop I can see when he is sending his newsletter that I have between 30-1500 qps :-( and it is always the dbispconfig DB that is accessed...

how do other people handle the sending of huge newsletters?

I am not sure what the problem is, should I increase the max connections? the server is not running our of RAM its just that when the sending is in progress, different random Db queries fail, so I guessed its the max conection settign that I coudl up? the caches are effective, but well, the problem still persists...
Reply With Quote
  #14  
Old 9th February 2011, 22:10
cyrus1977 cyrus1977 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Any one still using this on debian ?? Mine somehow stoped working running it by hand i get:

[root@xxxxx postfix-scripts]$ ./postfixblocks_hand.sh
blocking the spammer at from with 244 attempts
iptables v1.4.2: host/network `from' not found
Try `iptables -h' or 'iptables --help' for more information.

It seems the script is getting back a wrong value from the sed scriptlines in the posted scripts. Since im not a expert i cant get it to work and spent more then 5 hours searching for a solutions.

Any suggestions would be more then welcome.
Reply With Quote
  #15  
Old 9th February 2011, 23:12
bl4ckb1rd bl4ckb1rd is offline
Member
 
Join Date: Feb 2009
Posts: 36
Thanks: 2
Thanked 6 Times in 4 Posts
Default

did you try the "fixed" version ? Even if it's in slovene, i can translate it if it works for you.
Reply With Quote
  #16  
Old 10th February 2011, 19:43
cyrus1977 cyrus1977 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by bl4ckb1rd View Post
did you try the "fixed" version ? Even if it's in slovene, i can translate it if it works for you.
Yes i did gives the same output error. Seems like postfix loglines or something have changed which causes the errors but i cant figure out why. Do you have it working still ?
Reply With Quote
Reply

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 16:17.


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