Re: Rewrite 'Date' header to include timezone?

From: Ralf Hildebrandt (no email)
Date: Mon Apr 02 2007 - 14:05:39 EDT

  • Next message: Otavio Exel: "check_sender_access actions"

    * David Hoekman <>:
    > I need Postfix to relay mail generated by legacy software (i.e.
    > inflexible & hard to change) which sends a 'Date' header that
    > lacks timezone information, e.g. this:
    > Date: Mon, 1 Apr 2007 09:15:00
    >
    > instead of this:
    > Date: Mon, 1 Apr 2007 09:15:00 -0800 (PDT)
    >
    > The problem with this is that in the absence of a specific timezone,
    > mail clients typically show this as having been sent from GMT,
    > which can make the chronology of mail exchanges hard to follow.
    >
    > If no 'Date' header were present, I know that Postfix would add
    > a correct one,

    So You can remove it using header_checks:

    /^Date:/ IGNORE

    But BEWARE, this strips ALL Date: headers of ALL mails.

    > but how can I rewrite an existing one?

    Removing headers loses information (that may help in debugging,
    filtering, etc.).

    Rewrite it instead. use header_checks for that:

    /^(Date:.*)$/ REPLACE X-$1

    That would rewrite the Date:... header to an X-Date:... header.

    -- 
    Ralf Hildebrandt ()             
    Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
    http://www.arschkrebs.de
    Applying computer technology is simply finding the right wrench to
    pound in the correct screw. 
    

  • Next message: Otavio Exel: "check_sender_access actions"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD