Skip Menu |

This queue is for tickets about the Mail-Sendmail CPAN distribution.

Report information
The Basics
Id: 20358
Status: resolved
Priority: 0/
Queue: Mail-Sendmail

People
Owner: Nobody in particular
Requestors: acli [...] ada.dhs.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.74
  • 0.77
  • 0.78
  • 0.78_2
  • 0.78_3
  • 0.78_5
  • 0.78_6
  • 0.79
Fixed in: 0.79_16



CC: bug-Mail-Sendmail [...] rt.cpan.org
Subject: [REGRESSION?] Mail::Sendmail generates non-RFC-compliant MAIL commands
Date: Sat, 8 Jul 2006 01:38:40 -0400
To: Milivoj Ivkovic <mi [...] alma.ch>
From: Ambrose LI <acli [...] ada.dhs.org>
Hi, I noticed a regression in Mail-Sendmail-0.79. (I previously reported the problem on 2004/03/01.) The module currently does a socket_write("MAIL FROM: <$fromaddr>$CRLF") which outputs an SMTP command in the form MAIL FROM:<foo@example.org> This is invalid SMTP according to both the newer RFC 2821 (section 4.1.1.2) and the older RFC 821 (section 3.1); in particular, RFC 2821 specifies that the syntax for MAIL should be "MAIL FROM:" ("<>" / Reverse-Path) [SP Mail-parameters] CRLF There should be no SP between "MAIL FROM:" and the Reverse-Path, and neither RFC 2821 nor RFC 821 allows a space to be inserted after the colon. When the recipient server is strictly RFC complaint (e.g., ZMailer-based systems in "strict" mode), the recipient will reject MAIL commands generated by Mail::Sender, because they are syntactically invalid. The above-mentioned line in the module should be corrected to socket_write("MAIL FROM:<$fromaddr>$CRLF") Best regards, -- Ambrose LI Cheuk-Wing <a.c.li@ieee.org> http://ada.dhs.org/~acli/ See also: [rt.cpan.org #20357]
CC: bug-Mail-Sendmail [...] rt.cpan.org
Subject: Re: [REGRESSION?] Mail::Sendmail generates non-RFC-compliant MAIL commands [rt.cpan.org #20358]
Date: Sat, 8 Jul 2006 10:54:53 -0400
To: Milivoj Ivkovic <mi [...] alma.ch>
From: Ambrose LI <acli [...] ada.dhs.org>
On Sat, Jul 08, 2006 at 01:38:40AM -0400, Ambrose LI wrote: Show quoted text
> The module currently does a > > socket_write("MAIL FROM: <$fromaddr>$CRLF") > > which outputs an SMTP command in the form > > MAIL FROM:<foo@example.org>
I mean the module is currently outputting SMTP commands in the form MAIL FROM: <foo@example.org> which is invalid SMTP; MAIL FROM:<foo@example.org> is the correct form. Show quoted text
> When the recipient server is strictly RFC complaint (e.g., > ZMailer-based systems in "strict" mode), the recipient will > reject MAIL commands generated by Mail::Sender, because they > are syntactically invalid.
I mean the recipient will reject MAIL commands generated by Mail::Sendmail. Sorry for the numerous typos in my previous mail. Perhaps I should not try to submit bug reports around 0130 in the morning. :-( Regards, Ambrose Li