----- Original Message ----- 
From: "Mitch (WebCob)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 13:32
Subject: RE: [courier-users] Re: 534 Message header size


> I think everyone has missed the issue! (or maybe it's just me ;-)
>
> > >>> ruby -e "5001.times {print 'a'}" | sendmail [EMAIL PROTECTED]
>
> Is really sending 5000 characters of a line of BODY text - right?
>
> So really, what is being viewed as a header problem is a body problem, but
> really it's not even that.
>
> There is a line length limit in place for email. It is assumed what is
> feeding "sendmail" will be smart enough to respect that rule?
>
> Perhaps this is a mechanism to prevent buffer overflow, and what you are
> seeing (assuming the test works on the real "sendmail") is Courier trying
to
> be more secure by preventing huge lines which could lead to those
> overflows...
>
> You could always pipe your input to awk - and if you are communicating via
> smtp, then those long lines are illegal anyways.
>
> m/

Try this:

perl -e 'print"Blah: blah\n\n";print"A"x50000' | sendmail [EMAIL PROTECTED]

And tell me if you get the 534.
Bah, never mind, I'll tell you... IT WORKS.

The problem is you're sending a message WITHOUT headers and Courier expects
at least ONE header, so (to Courier) that's not the body, that's the first
header.
I don't have the RFCs at hand neither I feel like searching/reading them,
but I'm pretty sure a message without headers ISN'T RFC compliant.

HTH.-



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to