Follow

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

Here's a solution, using postfix:

In postfix/main.cf:

`always_add_missing_headers = yes
header_checks=pcre:$config/header_checks.pcre`

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
Mastodon.nl

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