[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Etch + Postfix, limiting the sent emails per hour



George Dorobantu wrote:
> postfix-policyd can't throttle in the way I need.
> It can throttle based on "from" domain.
> I need to throttle based on "to" domain because the remote servers
> accept a certain rate per hour.
>
> George A. Dorobantu
>
I think limiting NEW outgoing packets to port 25 in the firewall, with a
rule for each remote server you need to throttle, could do the trick.

something like:

for maillimit in ip_limited_1 ip_limited_2; do
  iptables -A OUTPUT -j ACCEPT -p tcp -d $maillimit -m state --state NEW
-m limit --limit 200/hour
done

might work for you.  Don't know if you should close or reject the
packets after the limit is set with this rule, or how that would affect
the postfix queues.

> On 2/28/08, *Michael Loftis* <mloftis@modwest.com
> <mailto:mloftis@modwest.com>> wrote:
>
>     Not exactly sure what you're asking but try postfix-policyd -- it
>     probably
>     can do what you want.  Not sure *why* you'd want to but it can
>     probably do
>     it.  It has throttling.
>
>     --
>     Michael Loftis
>     Modwest Operations Manager
>     Powerful, Affordable Web Hosting
>
>


-- 
Hector Gonzalez
cacho@genac.org
http://www.genac.org


Reply to: