The amount of mail without the required 'Message-ID' and 'Date' headers crossed my annoyance-threshold.

Here's a solution, using postfix:

In postfix/

`always_add_missing_headers = yes

In postfix/header_checks.pcre:

`/^Date:[ ]*$/i STRIP`

This has two effects:

- if Date: header is blank, it will be stripped and logged that this is done
- missing required headers will be generated by postfix, including stripped ones

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!