I need a small script that will limit amount of php mails sent by nobody users. I have free hosting services and users only can send emails as nobody via php mail(). But sometimes users spam or abuse, sending too many emails. I want to limit emails sent per user ip per email provider - to prevent emails counted as spam.
I need this script for exim, currently used. If it will work with any mail server then better :)