Prevent 1 user from sending mail through PHP?

X-Hosted

Verified User
Joined
Aug 7, 2006
Messages
33
Location
Netherlands / Noord-Brabant / Roosendaal
Hi,

I was wondering if its possible to prevent 1 user/domain from sending mail through PHP.

I'm running plain php 5.2.3 and no suphp, can some modifications in the users httpd.conf like php_admin_value flags do this? :)
 
Hi,

Unless you set Apache to use a different PHP.INI for each user/virtual host (I've seen it done, but it requires a wrapper be written) I think your only other option is to limit the user in your Exim configuration. Using the PHP mail patch (which adds a header identifying the script sending the mail) you could probably configure Exim to intercept and drop the mail.

Phil
 
Last edited:
Back
Top