9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Maximal length of...
FromSent OnAttachments
pawe...@poczta.fmJun 28, 2004 4:07 am 
Sander Holthaus - Orange XLJun 28, 2004 5:27 am 
pawe...@poczta.fmJun 28, 2004 6:26 am 
Sam VarshavchikJun 28, 2004 3:30 pm 
pawe...@poczta.fmJun 29, 2004 1:29 am 
Alessandro VeselyJun 29, 2004 1:29 am 
pawe...@poczta.fmJun 29, 2004 1:43 am 
Sam VarshavchikJun 29, 2004 4:09 am 
pawe...@poczta.fmJun 29, 2004 4:39 am 
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] Maximal length of To: headerActions...
From:Alessandro Vesely (ves@tana.it)
Date:Jun 29, 2004 1:29:53 am
List:net.sourceforge.lists.courier-users

Isn't this the same as

Problem (and patch for) "534 Message header size, or ..." error 22 Jan 2004 05:51:42 +0100 http://sourceforge.net/mailarchive/message.php?msg_id=7102594

pawe@poczta.fm wrote:

Hello!

I would like to know why the real maximal length of To: header is only 5000 characters?

I found the following conditions in getrcpts function from courier/submit.C source file, but I don't understand that:

if (l > headerlimit || l > 5000) headercnt=0;

In my opinion the first condition is OK, because headerlimit is big enough (100000 characters). Unfortunately, the second condition can make troubles with long To: header.

Why? One user of my mail system was trying to send message to about 180 recipient. The length of To: header was greater than 5000 characters and the webmail showed him the following error:

511 Headers specify no receipients. sendmail: Unable to submit message.

The appropriate code from getrcpts function gets 5000 characters chunk of header. If the header is longer, the code gets next chunk and lost previous. The user showed the error, because second chunk of header To: didn't contain "To: ".

I think that first condition (l > headerlimit) is enough and the code should _add_ all line chunk to line buffer.

My best regards!