大网数据广告活动
服务器运维问答

Exim limiting number of emails and cc

· 52CE 我爱测

550 maximum allowed line length is 998 octets, got 1014 Getting this error in emails bouncing back. Is there a setting in exim to solve this problem? Tried to google it up but cannot find any solution.

问题原文

原帖链接 · Fabrizio Mazzoni · CC BY-SA 3.0

550 maximum allowed line length is 998 octets, got 1014

Getting this error in emails bouncing back. Is there a setting in exim to solve this problem?

Tried to google it up but cannot find any solution.

已采纳解答

原帖链接 · Esa Jokinen · CC BY-SA 3.0

The error you got is based on RFC 2822 / RFC 5322 (Internet Message Format):

2.1.1. Line Length Limits

There are two limits that this specification places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

The 998 character limit is due to limitations in many implementations that send, receive, or store IMF messages which simply cannot handle more than 998 characters on a line.

2.2.3. Long Header Fields

Each header field is logically a single line of characters comprising the field name, the colon, and the field body. For convenience however, and to deal with the 998/78 character limitations per line, the field body portion of a header field can be split into a multiple-line representation; this is called "folding". The general rule is that wherever this specification allows for folding white space (not simply WSP characters), a CRLF may be inserted before any WSP.

As every decent email client probably conforms to this standard you probably won't reject anything but SPAM if you don't even consider this as a problem and try to solve it.

If you have a long list of addresses in CC: field, your email client should add line breaks before the 988 character line length limit. As the mean email address length is 23 characters, that would be approximately 43 addresses per line. If you need to send an email to this many recipients, please consider using BCC: field (or a mailing list software with opt-out possibility) instead.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。