RE: [Exim] trusted_users apache and php_admin_value sendmail…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Eli
Fecha:  
A: exim-users
Asunto: RE: [Exim] trusted_users apache and php_admin_value sendmail_from
>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@???".


Nope - spaces are allowed and work fine in the sendmail_path paramater. It
doesn't execute the string as a program, but as the string itself - passing
the whole thing to exec() or whatever it is, so it's all good.

My sendmail_path setting includes -t and -i options which I believe are
required for it to send email properly. Maybe that's your problem? The -t
option is what is important:

       -t        When Exim is receiving a locally-generated, non-SMTP
message
                 on its standard input, the -t option causes the recipients
of
                 the message to be obtained from the To:, Cc:, and Bcc:
header
                 lines  in  the message instead of from the command
arguments.
                 The addresses are extracted before any rewriting takes
place.


Eli.

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On Behalf
Of Andreas Metzler
Sent: Thursday, January 15, 2004 6:46 AM
To: Exim Users List
Subject: 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"


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##

---
[This E-mail scanned for viruses]


---
[This E-mail scanned for viruses]