[exim-dev] [Bug 567] PHP mail(); function not working withou…

Página Inicial
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
Para: exim-dev
Assunto: [exim-dev] [Bug 567] PHP mail(); function not working without headers.
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=567

Phil Pennock <exim-dev@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |exim-dev@???
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME





--- Comment #3 from Phil Pennock <exim-dev@???> 2008-08-13 05:18:31 ---
I have just tested with PHP 5.2.5 on FreeBSD, using the php cmdline binary, and
do not see this problem.

I'm fairly certain that the problem is that the sender address does not verify,
because it's invalid. Eg, the server.name domain is handled locally and there
is no routing for the user 'nobody' or server.name is not handled locally and
there's no routing for it (eg, not in DNS at all).

Generally, mail-systems shouldn't support sending mail with invalid senders
which can't receive return mail.

A reasonable work-around, for PHP under Apache, is to use
php_admin_value mail.force_extra_parameters -fsender@???
which is something that improves accountability by ensuring that there's always
a correct sender; this scales to multiple sites with different owners, too (eg,
ISP hosting). There should be an equivalent for whatever interface you're
using, if not Apache.

By setting the envelope sender in this way, the regular Exim submission fixups
will add a From: header for you. You'll probably also want to set the
untrusted_set_sender option in Exim.

Closing this bug.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email