Does Exchange 2010 impose a maximum length for individual headers? If so, what is it?

6,322

Solution 1

Found the answer here: http://technet.microsoft.com/en-us/library/bb124345.aspx

By default, Microsoft imposes a limit of 64 KB as well.

Solution 2

As per RFC 5321 a line during SMTP dialog must not exceed 1000 characters: https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3.1.6

This is also true for email header lines according to RFC2822 ff. The same RFC introduces multi-line headers to get around that limit. Therein there is no limit for a single header.

So if there is a limit, then it is an Exchage "problem". The best would be to test for yourself and give feedback.

Share:
6,322

Related videos on Youtube

Mike B
Author by

Mike B

Technology Enthusiast, Gamer, Sci-Fi Addict, and DIY-er in training. =)

Updated on September 18, 2022

Comments

  • Mike B
    Mike B over 1 year

    Does Exchange 2010 impose a maximum length for individual headers? If so, what is it?

    Let's say a user sends an email to 200 recipients, resulting in a TO: field having 200 email addresses (very bad idea I know). Or let's say an upstream content filter adds an X-header that has a lot of information.

    At what point would Exchange reject the message. Would it reject the message?

    The reason I ask is because I've seen other MTAs have issues with large headers and am curious about Exchange. For example, by default, SendMail milter communication fails if a single header is larger than 64K (as per http://ftp.sunet.se/pub/unix/mail/sendmail/KNOWNBUGS).

    • Ward - Reinstate Monica
      Ward - Reinstate Monica over 12 years
      It's beside the point, but Exchange lets you limit the number of recipients of a message.
  • Philip
    Philip over 12 years
    There has to be some limit, even it's it simply the disk space available to store a header while the e-mail is in transit. He just wants to know if there's something else.
  • mailq
    mailq over 12 years
    @ChrisS Sure there is a limit. But who sends mails with 2GB of data in one header? Even if it is 1MB it is a ridiculous big header.
  • Mike B
    Mike B over 12 years
    @mailq Here's a use case example, lets say an email was sent to large distribution list. For auditing purposes, it's important to know who was exactly a part of that group email address at the time the message was sent. So the archiving solution breaks apart and displays all the recipients who belong to that group address at the time. This results in a massive recipient header.