Re: limit mail() function

From: Date: Tue, 08 Apr 2008 18:04:49 +0000
Subject: Re: limit mail() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272734@lists.php.net to get a copy of this message
Jordi Moles wrote: > I've got a server with apache2 and postfix and php5 providing hosting > to some clients. I've got this big problem about clients sending spam > massively, either consciously or because they website have been > hacked. The main way to spam is by using the "mail()" function. > So far, i've only found how to disable the use of the mail() function > completely in the php.ini file, but it's not a really good option to > me, cause i run some server scripts to check for some things and they > send some mails when they find something wrong. > > So... i would like to know what options i have if i want to limit this > function... > > can i disable the function only for some users? > may be i can set a rate limit for it? Check your mail-server config - rate limits and such are probably best done there. /Per Jessen, Zürich

« previous php.general (#272734) next »