#1  
Old 20th April 2013, 19:38
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 429
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default SPAM & Postfix on a WWW server.

Hi all.

Old Joomla sites are causing me a lot of headaches.
We have denied direct emails from websites to internet but that just means that thousands of (SPAM) emails get stuck in the www server's mail que's because the sites are leaking like a sieve.

netstat -tapn example..

Quote:
tcp 0 1 10.10.103.117:45233 212.52.84.172:25 SYN_SENT 7976/smtp
tcp 0 1 10.10.103.117:46636 220.181.14.139:25 SYN_SENT 6564/smtp
tcp 0 1 10.10.103.117:43322 65.54.188.126:25 SYN_SENT 6584/smtp
tcp 0 1 10.10.103.117:38889 65.54.188.110:25 SYN_SENT 8026/smtp
tcp 0 1 10.10.103.117:51595 202.136.40.234:25 SYN_SENT 6580/smtp
Now since /smtp can not connect to out of the server without username and password these get stuck in the que.
Currently the que is only for 1 day but soon we are forced to lower that to just a few hours.
I was wondering if you have figured out a way to "limit" how many emails a "site" can send per/hour or maybe disable email entirely from some sites.
Our WWW servers have Postfix installed but it is only allowed to send email not receive any external mail.

(PS. If you know how to disable all those useless Postfix delivery error messages let me know
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent


Last edited by SamTzu; 20th April 2013 at 19:42. Reason: SPAM, Postfix, site
Reply With Quote
Sponsored Links
  #2  
Old 24th April 2013, 10:54
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

It is possible to limit e-mails for user per hour (or day) in postfix.
Reply With Quote
  #3  
Old 2nd May 2013, 21:45
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 429
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default

How can you limit it?
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #4  
Old 2nd May 2013, 22:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

You acn do that with e.g. policyd:

http://wiki.policyd.org/quotas

REgarding the original problem with old joomla installs, have you tried to use apache mod_security on that server. It can block most of the attacks against old / unpatched cms systems.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd May 2013, 11:39
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 429
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
 
Default

Thx 4 the tip Till. I did try mod_sec a while back but found it difficult to control. Maybe I will give it another shot soon.

Does anyone know of a way to prevent a website accessing SMTP?
Maybe with a "Apache Directives" or "Custom php.ini settings"
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

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
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
Sending email issue lezelf Installation/Configuration 15 9th August 2011 11:20
Can't receive mails baicunko Server Operation 12 3rd August 2011 22:02


All times are GMT +2. The time now is 02:33.


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