14 messages in net.sourceforge.lists.courier-usersRE: [courier-users] Re: 534 Message h...
FromSent OnAttachments
Martin ArrietaNov 6, 2003 4:25 pm 
Eduardo RoldanNov 6, 2003 4:48 pm 
Sam VarshavchikNov 6, 2003 5:45 pm 
Eduardo RoldanNov 6, 2003 7:33 pm 
Bill MichellNov 7, 2003 1:36 am 
Bill HackerNov 7, 2003 3:40 am 
Rodrigo SeveroNov 7, 2003 4:16 am 
Jeff JansenNov 7, 2003 5:54 am 
Mitch (WebCob)Nov 7, 2003 8:33 am 
Jeff JansenNov 7, 2003 9:13 am 
Papo NapolitanoNov 7, 2003 9:40 am 
Mitch (WebCob)Nov 7, 2003 9:54 am 
Martin ArrietaNov 7, 2003 1:43 pm 
Sam VarshavchikNov 7, 2003 8:46 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [courier-users] Re: 534 Message header sizeActions...
From:Mitch (WebCob) (mit@webcob.com)
Date:Nov 7, 2003 8:33:05 am
List:net.sourceforge.lists.courier-users

I think everyone has missed the issue! (or maybe it's just me ;-)

ruby -e "5001.times {print 'a'}" | sendmail te@test.com

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/

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Jeff Jansen Sent: Friday, November 07, 2003 5:52 AM To: cour@lists.sourceforge.net Subject: Re: [courier-users] Re: 534 Message header size

I think we've missed the issue here. (Or I've missed the issue. :-) When you pump 5000 characters to sendmail without a newline in there somewhere then courier is going to the think the entire thing is a header, right? So in that case what you are hitting here is courier's compiled 5000 character header limit.

To disable it you need to edit courier/submit.C in the source code and remove the check for 5000 characters in the header. Look for the line that says

if (l > headerlimit || l > 5000)

and change it to say

if (l > headerlimit)

Now you've got a 100k limit.