mail limit

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
kaidorf
Forum Newbie
Posts: 1
Joined: Mon Aug 21, 2006 11:24 am

mail limit

Post by kaidorf »

hi,
is it possible to limit a user's mail count?
i mean, one of users mails 10.000 per day, but i want to limit it to 100 per day server wide
php has an option for it?
or mail daemon?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

PHP has no control over it. It is a server level setting.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You need to run PHP under the userid of the account holder (suexec). This way, everytime sendmail is started in "-t" mode it will run under that same userid and thus, you can track the count.
Post Reply