#28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
From: Ruben at e-builds dot com Date: Thu, 10 Nov 2005 14:57:08 +0000 Subject: #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-87992@lists.php.net to get a copy of this message
ID: 28038
Comment by: Ruben at e-builds dot com
Reported By: jordi at jcanals dot net
Status: Open
Bug Type: Mail related
Operating System: win32
PHP Version: 5CVS, 4CVS (2005-08-08)
New Comment:
The sames happens when using mail() with the 'From' part of the extra
headers.
php uses this Header From part (and others for RPath etc..) for the
"MAIL FROM" address in the SMTP protocol, at least if you didn't
specify the sendmail_from setting in php.ini.
But for one reason or another, php (I thínk it's php) wraps this part
in "<" and ">" again!
The workaround is not to use the special format -User <xxx@yy.zzz>-,
but just the e-mail address "xxx@yyy.zzz". Of course then php
scripters who like a professional approach and want to use this special
format, ..well..they can't, at least not per php script.
I use a Domino SMTP server on Win32.
P.S. I saw several bugs of the same kind allover. Some are even
wrongly closed, I presume.
Previous Comments:
------------------------------------------------------------------------
[2005-11-02 00:05:27] php-louis at steelbytes dot com
can we at least just implement stripping of leading and trailing white
space on what is extracted from the headers? (as that'll fix 35013).
------------------------------------------------------------------------
[2005-11-01 11:37:04] sniper@php.net
See also bug #35013, one more way how headers are parsed wrong.
------------------------------------------------------------------------
[2005-11-01 11:36:36] sniper@php.net
See also bug #32600 (rpath set wrong too)
------------------------------------------------------------------------
[2005-01-25 00:26:34] sniper@php.net
The above patch is wrong. Only acceptable form for RCPT TO:
is:
RCPT TO:<mailbox@example.com>
Notice the brackets. Do not confuse yourself with RFC2822..
It does not obsolete 2821 as it talks about different thing.
So the fix is to drop the outside brackets stuff out of the addresses.
------------------------------------------------------------------------
[2004-08-06 01:59:45] papercrane at reversefold dot com
Here's a possible patch for it. It's pretty simplistic, bit it should
work:
http://www.reversefold.com/sendmail.c.patch
Full file:
http://www.reversefold.com/sendmail.c
NOTE: I haven't actually *tested* this, it may not even compile. If it
doesn't, please send me a note and I'll try to fix it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/28038
--
Edit this bug report at http://bugs.php.net/?id=28038&edit=1
Thread (45 messages)
- #28038 [Opn->Bgs]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Bgs->Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn->Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn->Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Opn->Asn]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Asn->Csd]: Sent incorrect RCPT TO commands to SMTP server
- #28038 [Csd]: Sent incorrect RCPT TO commands to SMTP server
- Bug #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
- Bug #28038 [Com]: Sent incorrect RCPT TO commands to SMTP server
| « previous | php.bugs (#87992) | next » |
|---|