Sieve: adding Date: header when missing
Daniele Nicolodi
daniele at grinta.net
Thu Jul 17 16:19:22 UTC 2014
On 17/07/2014 17:34, Jiri Bourek wrote:
> On 17.7.2014 16:40, Jochen Bern wrote:
>> On -10.01.-28163 20:59, Daniele Nicolodi wrote:
>>> Unfortunately I'm receiving some useful automated messages that lack a
>>> Date header and this screws up the sorting in my imap clients. I have a
>>> script to fix those acting on the Maildir storage, but I would prefer to
>>> have the thing solved more radically.
>>
>> RFC 5322 3.6. (and AFAIK *all* its predecessors) marks the Date: header
>> as mandatory. sendmail used to forcibly add one if missing, I'm not sure
>> about other MTAs (and MSAs). I'ld recommend to try fixing the problem as
>> early and globally as possible, rather than on the last yard into *one
>> specific* mailbox.
>>
>> Regards,
>> J. Bern
>>
>
> Postfix is able to add the header, if you configure it do so. According
> to its documentation "this may break DKIM signatures that cover
> non-existent headers", so it's off by default.
>
> (More in man 5 postconf - always_add_missing_headers.)
Thanks Jiri, this is the best solution.
Cheers,
Daniele
More information about the dovecot
mailing list