atom feed14 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 
Subject:Re: [courier-users] Re: 534 Message header size
From:Jeff Jansen (ivb_@sil.org)
Date:Nov 7, 2003 5:54:05 am
List:net.sourceforge.lists.courier-users

On Friday 07 November 2003 12:16, Rodrigo Severo wrote:

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

it is fine.. but

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

return :

534 Message header size, or recipient list, exceeds policy limit. sendmail: Unable to submit message.

How does the SMTP limit of 1022 characters per line translates to Courier's limit of 5000 characters per line?

I'm asking this because if the SMTP limit of 1022 characters per line can be streched to 5000 characters per line, it might be streched further, can it? May be to a compile time configurable limit...

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.