On Friday 07 November 2003 12:16, Rodrigo Severo wrote:
> >>> ruby -e "5000.times {print 'a'}" | sendmail [EMAIL PROTECTED]
> >>>
> >>> it is fine.. but
> >>>
> >>> ruby -e "5001.times {print 'a'}" | sendmail [EMAIL PROTECTED]
> >>>
> >>> 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.
Jeff Jansen
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users