Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 20357
Status: resolved
Priority: 0/
Queue: Mail-Sender

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: bug-Mail-Sender [...] rt.cpan.org
Subject: Mail::Sender generates non-RFC-compliant MAIL commands
Date: Sat, 8 Jul 2006 01:28:21 -0400
To: Jan Krynicky <Jenda [...] Krynicky.cz>
From: Ambrose LI <acli [...] ada.dhs.org>
Hi, I noticed a standards compliance bug in Mail-Sender-0.8.13. The module currently does a $_ = send_cmd $s, "MAIL FROM: <$self->{'fromaddr'}>"; 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 $_ = send_cmd $s, "MAIL FROM:<$self->{'fromaddr'}>"; Best regards, -- Ambrose LI Cheuk-Wing <a.c.li@ieee.org> http://ada.dhs.org/~acli/
CC: bug-Mail-Sender [...] rt.cpan.org
Subject: Re: Mail::Sender generates non-RFC-compliant MAIL commands [rt.cpan.org #20357]
Date: Sat, 8 Jul 2006 10:52:28 -0400
To: Jan Krynicky <Jenda [...] Krynicky.cz>
From: Ambrose LI <acli [...] ada.dhs.org>
On Sat, Jul 08, 2006 at 01:28:21AM -0400, Ambrose LI wrote: Show quoted text
> The module currently does a > > $_ = send_cmd $s, "MAIL FROM: <$self->{'fromaddr'}>"; > > 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. Sorry for the typo in my previous mail. Perhaps I should not try to submit bug reports around 0130 in the morning. :-( Regards, Ambrose Li
You seem to be right. Thanks, I never noticed this. And you are the first to report that this causes any problems. It's fixed in an upcomming version of the module. I'll test it a bit more and release it. Please find attached the new version.

Message body is not shown because it is too large.