[exim] Exim 4.x not adding missing "Date:" header ?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Olaf Hopp
Data:  
Para: exim-users
Asunto: [exim] Exim 4.x not adding missing "Date:" header ?
Dear collegues,

I (finally) went from Exim 3.x to 4.x.
But from now on Exim does not add a missing
"Date:"-header as you can see below.
With the drawback that MUAs will sort them in
at 1.1.1970 at the very bottom of the INBOX.
Below you will find two telnet sessions: one with
an Exim-3.x and one with an Exim-4.5 host and also
both resulting mails.
OK it's bad not having a Date:-Header and you can say
simply add one but I have RAIDs and different network
equipment all of them sending mails without a Date-header
so I can't fix it at the source. I worked fine for me with 
Exim-3.x, silently adding a missing Date-header. But is is broken
for me with Exim 4.5 (also tried 4.43). 
The manual clearly says:
    If a locally-generated or submission-mode message has
    no Date: header line, Exim adds one, using the current
    date and time.


TIA,

Olaf


Telnetting to an Exim-4.5 host:
------------------------------
#telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 XXX.YYY.ZZZ.de ESMTP Thu, 12 May 2005 09:35:03 +0200
mail from: XXX@???
250 OK
rcpt to: XXX@???
250 Accepted
data
354 Enter message, ending with "." on a line by itself
Subject: test

test
.
250 OK id=1DW8EB-0004Wj-4a
quit
221 XXX.YYY.ZZZ.de closing connection
Connection closed by foreign host.


and the resulting mail (no Date:header):
----------------------------------------
Envelope-to: XXX@???
Received: from localhost ([127.0.0.1])
        by XXX.YYY.ZZZ.de with smtp
        for <XXX@???>
        id 1DW8EB-0004Wj-4a; Thu, 12 May 2005 09:35:36 +0200
Subject: test
Status: OR


test


And the more or less same telnet session to an Exim-3.x:
--------------------------------------------------------
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 XXX.YYY.ZZZ.de ESMTP Thu, 12 May 2005 09:39:35 +0200
mail from: XXX@???
250 <XXX@???> is syntactically correct
rcpt to: XXX@???
250 <XXX@???> verified
data
354 Enter message, ending with "." on a line by itself
Subject: test

test
.
250 OK id=1DW8IR-0006IK-00
quit
221 XXX.YYY.ZZZ.de closing connection
Connection closed by foreign host.


And the resulting mail (with Date:-header):
-------------------------------------------
Envelope-to: XXX@???
Received: from localhost.localdomain ([127.0.0.1])
        by XXX.YYY.ZZZ.de with smtp
        id 1DW8IR-0006IK-00
        for <XXX@???>; Thu, 12 May 2005 09:39:56 +0200
Subject: test
Message-Id: <E1DW8IR-0006IK-00@???>
From: XXX@???
Bcc:
Date: Thu, 12 May 2005 09:39:56 +0200


test
--------------------------------------------------

--

==============================================================================
     __0
   _-\<,_     Dipl.-Geophys. Olaf Hopp
  (_)/ (_)    ATIS - Abteilung Technische Infrastruktur


University of Karlsruhe          EMail: Olaf.Hopp@???
Faculty of Computer Science      WWW  : http://www.atis.uka.de
Building 50.34 Room-No. 009
Am Fasanengarten 5               Fon  : +49 (721) 608-3973
D-76131 Karlsruhe / Germany      Fax  : +49 (721) 608-6699


==============================================================================