How do i prevent abuse of the PHP mail() function?
How do i prevent users from using the mail() function to spam and mailbombsI just cleared under 20000 outgoing emails from my sendmail queue that someone tried to send the same message to one email address
I know i could just disable the mail function but i dont want to do that, because then my own scripts cant use it either
Does anyone know a way to help prevent this kind of abuse
Is there a way to make PHP only allowed to send a few mails per process? or make sendmail/php only allowed to send email from a specified from address (like it denies sending of all mail that does not come from nobody@hostultra.com)
Any help would be appreciated