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
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users