9 messages in net.sourceforge.lists.courier-users[courier-users] Maximal length of To:...
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:[courier-users] Maximal length of To: headerActions...
From:pawe...@poczta.fm (pawe@poczta.fm)
Date:Jun 28, 2004 4:07:40 am
List:net.sourceforge.lists.courier-users

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!

Pawel Tecza