On Sat, Jul 11, 2009 at 7:01 PM, ad...@gg-lab.net<ad...@gg-lab.net> wrote: > Hi, > > i have benn googling for hours today, and can't solve this problem: > > I'm working on a free-hosting platform. As MTA, of course, i've > choosen postfix. Now, to prevent abuse, i want to limit the number of > email each user can send in an our. > > Any idea? > > Thankyou >
We solved the problem by using a wrapper around /usr/bin/sendmail (basically just a php script that checks posix_getcwd and tries to establish on that what is the hosting user that's sending the email. The script would increment values in a mysql db for each mail sent, once it had hit a certain number of sent email it would exit. The nice thing about it is that it's mta agnostic and you can also get some stats since all the values are kept in db. The idea came to me after reading http://www.unixro.net/?_m=articles&_a=view&id=17