0 votes
by (120 points)

We have a scenario where we send to a customer and they are getting the following error from their SMTP endpoint: SMTP Headers too large (32768 max) (552). Customer has a long recipient list.

It was suggested by them that we look at 'header folding' as a possible way around the limitation. Is header folding implemented or is there a way to take advantage of this. (https://tools.ietf.org/html/rfc5322#section-2.2.3)

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (73.6k points)

The header folding is already implemented. You can try it for yourself by saving a MailMessage with long header, then look into produced data.

I think the problem "Headers too large" is caused by length of the unfolded header itself. So, you have 2 possibilities:

  1. Don't include so many recipients into mail headers. Correct me if I am wrong, but if you send an e-mail to thousands of recipients, you don't want to share addresses of all recipients between each other.

  2. Save space by omitting recipient's display name (just include only SMTP address). This will not solve the issue, but increase the limit of recipient count.

...