On Thu, 2003-11-06 at 22:45, Sam Varshavchik wrote:
> Eduardo Roldan writes:
> 
> > On Thu, 2003-11-06 at 21:25, Martin Arrieta wrote:
> >> Hi all 
> >> 
> >> i have one problem when i try to send one mail with one line with more
> >> than 5000 characters.
> >> 
> >> for example ..
> >> 
> >> 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.
> > 
> > You aren't generating a  well formed message in that way.
> > But investigating what you say, I agree. *ANY* line with a long size
> > (header or body) causes this error message. It's OK to limit the length
> > of the headers, but why courier imposes a limit in the body?
> 
> Because any message transferred over SMTP cannot have lines larger than 1022 
> characters.

Good to know.
I don't find the RFC where this limit is specified, RFC 2821 and 2822
seems to requiere a limit of 1000 characters (personal note:
'characters' is an ambigous word since UTF-8)
Anyway that doesn't matter.

The error message is a bit misleading, since maybe neither of the
headers or recipient list is too long.
Why not add a RFC mention as other error messages do?

Thank you for your time, Sam.



-------------------------------------------------------
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

Reply via email to