Re: Re[2]: [PHP-DEV] sendmail_from in linux installation

From: Date: Fri, 14 Dec 2001 20:30:15 +0000
Subject: Re: Re[2]: [PHP-DEV] sendmail_from in linux installation
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-73841@lists.php.net to get a copy of this message

>> I don't understand this. I can set headers in fourth argument to mail
>> function so I can send
>>
>> mail("somebody@foo.bar","Hello","msgbody","From:spammer")
>> If user does not set 4th argumment mail is sent with from
>> nobody@dsland.org
> 
> if you omit the 4th argument, it's your MAIL TRANSFER AGENT (i.e.
> qmail, sendmail, exim, ...) which puts in the nobody@dsland.org and
> not PHP. have a look at your MTA's manual for this problem.

I know, And that's my problem. All mail is sent by nobody (this is ok) or 
whatever is passed in 4th to mail function (this also is ok).

Perhaps forget to comment. I'm hosting multiuser virtual server domains 
in my apache server. All of them php enabled, and not all users are 
well known. 

I would like to a) prevent an user of sending mail spam and to discriminate 
mail sent by each user in order to ask for responsabilities b) accounting 
mail use from php users.

In addition I would like to enable/disable mail use (as other many 
functions) in a per virtual fashion but up to I know disable_function 
doesn't work in httpd.conf.

Thanks Daniel, and all.




Thread (8 messages)

« previous php.dev (#73841) next »