Normally for a log line containing the contents of a Message-Id, it is logged like the following Nov 29 11:41:27 xxx dovecot[211]: lmtp(lee)<30167><XXXXX>: sieve: msgid=<xxxx at example.net>: stored mail into mailbox 'Notifications' However, if there is CFWS other than a space, it changes the format of the log line (potentially making the logs harder to process - eg via ?logcheck" rules) Nov 29 11:50:09 xxx dovecot[401]: lmtp(lee)<55724><XXXXX>: sieve: msgid=? <xxxx at example.com>: stored mail into mailbox ?Notifications' A message-id line broken up is valid per RFC 5322 and header whitespace shouldn?t be significant for logging purposes https://tools.ietf.org/html/rfc5322#section-3.6.4 https://tools.ietf.org/html/rfc5322#section-3.2.2
Op 30-11-2018 om 14:06 schreef Lee Maguire:> Normally for a log line containing the contents of a Message-Id, it is logged like the following > > Nov 29 11:41:27 xxx dovecot[211]: lmtp(lee)<30167><XXXXX>: sieve: msgid=<xxxx at example.net>: stored mail into mailbox 'Notifications' > > However, if there is CFWS other than a space, it changes the format of the log line (potentially making the logs harder to process - eg via ?logcheck" rules) > > Nov 29 11:50:09 xxx dovecot[401]: lmtp(lee)<55724><XXXXX>: sieve: msgid=? <xxxx at example.com>: stored mail into mailbox ?Notifications' > > A message-id line broken up is valid per RFC 5322 and header whitespace shouldn?t be significant for logging purposes > > https://tools.ietf.org/html/rfc5322#section-3.6.4 > https://tools.ietf.org/html/rfc5322#section-3.2.2Yes, that is a bug. Regards, Stephan.
Op 03/01/2019 om 17:29 schreef Stephan Bosch:> > Op 30-11-2018 om 14:06 schreef Lee Maguire: >> Normally for a log line containing the contents of a Message-Id, it >> is logged like the following >> >> ?? Nov 29 11:41:27 xxx dovecot[211]: lmtp(lee)<30167><XXXXX>: sieve: >> msgid=<xxxx at example.net>: stored mail into mailbox 'Notifications' >> >> However, if there is CFWS other than a space, it changes the format >> of the log line (potentially making the logs harder to process - eg >> via ?logcheck" rules) >> >> ?? Nov 29 11:50:09 xxx dovecot[401]: lmtp(lee)<55724><XXXXX>: sieve: >> msgid=? <xxxx at example.com>: stored mail into mailbox ?Notifications' >> >> A message-id line broken up is valid per RFC 5322 and header >> whitespace shouldn?t be significant for logging purposes >> >> ?? https://tools.ietf.org/html/rfc5322#section-3.6.4 >> ?? https://tools.ietf.org/html/rfc5322#section-3.2.2 > > > Yes, that is a bug.Internally tracked as DOP-870. Regards, Stephan.
Possibly Parallel Threads
- Request: Pigeonhole - strip CWFS from message-id logs
- Message-id parsing by sieve
- Bug#489172: logcheck: please add Auto-Submitted header field to mailouts
- DKIM fail if WHM adds Message-ID, should be Message-Id
- Released Pigeonhole v0.4.9.rc1 for Dovecot v2.2.19.rc1