Using classic Outlook for Windows in business environments
Based on the detailed technical data provided, I understand that your organization is experiencing intermittent delivery failures when sending replies or forwarded messages from Microsoft Outlook 16.0 via an SMTP relay. The messages are being rejected with the error "message has lines too long for transport (Status: 5.0.0)" because Outlook generates exceptionally long MIME, threading, and TNEF headers (such as References, Thread-Index, and X-MS-TNEF-Correlator) that exceed the maximum line-length limits enforced by your mail transport server.
Regarding the "message has lines too long for transport (Status: 5.0.0)" error, this issue occurs because your SMTP relay enforces strict line-length limits. Outlook automatically appends unique message identifiers to the References header (as well as its own proprietary Thread-Index header) every time you reply or forward an email. The References header expands significantly as the email chain grows longer, and Outlook is programmed to split (fold) this header line at around 1012 characters. However, standard RFC 5322 / SMTP protocols strictly permit a maximum of only 998 characters per header line.
As an immediate workaround, instead of using the reply or forward buttons, I highly encourage you to temporarily use a new email for these communications. Doing this will completely reset the message headers and prevent the line-length transport error from being triggered.
Please note that we are not Microsoft support; this is a user-to-user support forum. Moderators have no backend access and cannot directly intervene in Microsoft products. We provide only technical guidance and best-practice recommendations based on reported issues. Therefore, in this scenario, please contact official Microsoft support through your Microsoft 365 Admin Center so that their specialized engineers can utilize dedicated tools to assist you further.
Thank you for your understand.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.