[Eisfair] mail: exim rejecting mail mit zu langen Zeilen

Marcus Röckrath marcus.roeckrath at gmx.de
Mo Feb 1 13:20:02 CET 2021


Hallo,

gerade stelle ich fest, nachdem ein Mail aus der Schule hier nicht eintraf,
dass exim Mail mit zu langen Zeilen rejected:


2021-02-01 11:35:26 ... F=<...> rejected after DATA: 
maximum allowed line length is 998 octets, got 2048

2021-02-01 12:10:36 ... F=<...> rejected after DATA: 
maximum allowed line length is 998 octets, got 2048

Danach habe ich per Google mal nach dieser Meldung gesucht und stieß dabei 
auf Hinweise, dass diese Limits offenbar Standard sein sollen:

[Zitat]
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.
[/Zitat]

Falls sich an den RFCs nichts geändert hat bzw. sie weiterhin noch gültig
sind, wäre das auch völlig in Ordnung.

In der Mailkonfiguration gibt es den zusätzlichen Parameter

+SMTP_CHECK_LINE_LENGTH

der diesen Check abschaltet, wovor ich mich ein wenig scheue; wieso
Standards abschalten?

-- 
Gruß Marcus
[eisfair-Team]


Mehr Informationen über die Mailingliste Eisfair