Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th November 2009, 18:52
pesale86 pesale86 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Limit outgoing number of messages in postfix

Is there some good way to limit outbound mail in postfix? Exactly, I want to limit number of send messages by domain per some time interval.

Imaginary example:

I have email accounts in 3 different domains: tld1, tld2 and tld3. It is not relevant how many accounts in what domain.
All accounts in tld1 can send at most 20 messages per hour.
All accounts in tld2 can send at most 10 messages per hour.
All accounts in tld3 can send at most 25 messages per hour.

Does that can be done? And how?
Reply With Quote
Sponsored Links
  #2  
Old 19th November 2009, 12:13
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Postfix does not have built in support for rate limiting, you will have to use a policy daemon for that. a good one is policyd http://www.policyd.org/tiki-index.ph...ModuleFeatures
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
useo6 (8th July 2010)
  #3  
Old 19th November 2009, 15:59
pesale86 pesale86 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot
Reply With Quote
  #4  
Old 7th July 2010, 23:32
useo6 useo6 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I followed the instructions of the install-file but I can't get it to work. I always get the following error when I try to start the daemon:

Base class package "Net::Server::PreFork" is empty.
(Perhaps you need to 'use' the module which defines that package first.)
at /usr/local/sbin/cbpolicyd line 30
BEGIN failed--compilation aborted at /usr/local/sbin/cbpolicyd line 30.

When I try to install "perl-Net-Server.noarch" by using "yum install perl-Net-Server.noarch", yum says that there is nothing to do.

OS: CentOS 5.5 64Bit
Reply With Quote
  #5  
Old 8th July 2010, 14:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

You can open a Perl shell...
Code:
perl -MCPAN -e shell
... and install the module as follows:
Code:
install Net::Server::PreFork
Type
Code:
q
afterwards to leave the Perl shell.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
useo6 (9th July 2010)
  #6  
Old 8th July 2010, 21:21
useo6 useo6 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default

works great, thanks
Reply With Quote
Reply

Bookmarks

Tags
limit, postfix

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
Attacks on MTA dclardy Installation/Configuration 4 29th September 2009 17:50
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 06:39
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36


All times are GMT +2. The time now is 03:07.


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