You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

A Proposal for Storing Envelope-Sender Data in Received Headers

Traditionally, the envelope-sender data has been added to messages as they pass through MTAs, but in varying ways (the Return-Path header, X-Envelope-From, etc.), and generally in terms of one header in the message.

A very helpful addition to support MUAs and MUA-level filters, would be if this was added to the Received header for the MTA handover, e.g.

  Received: from portent.listbox.com (portent.listbox.com [208.58.1.195])
        by amgod.boxhost.net (envelope-from
        <owner-foo-discuss(AT)example.com>)
        (Postfix) with ESMTP id 12CE931024F for <foo(AT)example.org>;
        Wed, 28 Jan 2004 08:54:19 +0000 (GMT)

(replaced @ with (AT) to avoid spambots)

This would allow filters like SpamAssassin to pick up the envelope-from used at each step of the chain, which is very valuable especially when intermediate steps tend to rewrite it. (For example, fetchmail makes some incorrect assumptions, and will add an *incorrect* Return-Path header if an X-Envelope-From header exists, even from an earlier handover.)

If I recall correctly, some versions of exim seem to support this.

We already have support for this in SpamAssassin – we detect it using this regexp matched against Received lines:

        /envelope-(?:sender|from)[ =](\S+)\b/

MTA authors/packagers, please consider adding this to your default configurations.

MTAs That Do This

If you know of an MTA package that will add the envelope-sender data to the Received header, or can write a configuration stanza to add to config files to do this in any given MTA, please add a note about it on this page using the "EditText" button below.

  • No labels