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:Sander Holthaus - Orange XL (in@orangexl.com)
Date:Jun 28, 2004 5:27:51 am
List:net.sourceforge.lists.courier-users

Off topic here, but users should not be sending messages with 180 recipients.

a) many MTA's will refuse mails with 180 recipients b) cause's a huge overhead making, for instance, mobile receivers very unhappy

This, of course, doesn't mean that it should not be possible to send messages to 180 recepients or that the webmail-function should contain bugs that prevent send messages to huge number of receipients. But in any case, let you client know that when sending messages to a large group of people he/she should use the BCC-field or use a mailling-list.

Kind regards, Sander Holthaus

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] On Behalf Of pawe@poczta.fm Sent: Monday, June 28, 2004 1:07 PM To: cour@lists.sourceforge.net Subject: [courier-users] Maximal length of To: header

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!