Benny,

i want to limit mail sent via php mainly, so i can't limit via sasl
simply because users aren't authenticated.

Of course i can't limit the host ip (all mail sent from my webserver).

The most beautiful thing would be limiting system user (each user has
an entry in /etc/passwd). Limiting the sender would be unuseful,
because all spammers randomiza the sender, bypassing the limit.

Now, i know that cPanel with Exim has a limit of this tipe. I'll
request them WHAT is exactly limited (maybe we can replicate with
postfix).

I'll also write to the postfix-policyd mailing list.

Sahil, maybe we can continue here? Postfixfw rules are completely in
topic and maybe we can help someone else...

Thankyou all

2009/7/12 Sahil Tandon <sa...@tandon.net>:
> On Sat, 11 Jul 2009, ad...@gg-lab.net wrote:
>
>> And, i've also found postfwd, but i can't see how can i use it to
>> limit mails in number.
>
> Assuming you want to limit mails per envelope sender, the following
> (untested) rule should work:
>
>  id=MAX_PER_HOUR ; protocol_state=END-OF-MESSAGE ; \
>    action==rate($$sender/100/3600/450 4.7.1 max 100 mails per hour)
>
> With this, query postfwd in smtpd_end_of_data_restrictions.  If you have more
> questions about postfwd, follow-up off-list or on the postfwd mailing list.
>
> --
> Sahil Tandon <sa...@tandon.net>
>

Reply via email to