Re: [Exim] trusted_users apache and php_admin_value sendmail…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Andreas Metzler
Ημερομηνία:  
Προς: Exim Users List
Αντικείμενο: Re: [Exim] trusted_users apache and php_admin_value sendmail_from
On Thu, Jan 15, 2004 at 11:16:15AM +0000, Jez Hancock wrote:
> I'm trying to configure apache (php actually) on a per vhost basis
> to send email from the local user that owns the vhost/domain.

[...]
>     php_admin_value sendmail_path "/usr/local/sbin/exim -f webmaster@???"
> </VirtualHost>

[...]
> However when I enter any email address in the address form field, the
> mail is not processed by Exim at all - let alone sent with the 'From:'
> header set correctly.


> Are there any glaring problems with the above?

[...]

Hello,
I do not do php, but the above setting of sendmail_path will probably
not execute /usr/local/sbin/exim with the two arguments -f and
webmaster@??? but will try to execute the nonexisting
command
"/usr/local/sbin/exim<SPACE>-f<SPACE>webmaster@???".

Quoting from PHP doc:
| Example 3. Sending mail with extra headers and setting an additional command
| line parameter.

|
| mail("nobody@???", "the subject", $message,
|     "From: webmaster@$SERVER_NAME", "-fwebmaster@$SERVER_NAME");

|
|    Note: This fifth parameter was added in PHP 4.0.5.

However this is disabled with "Safe-Mode"

Perhaps setting "sendmail_from=webmaster@???" is
translated by php to the respective -f option?
                 cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"