On Sun, 15 Jan 2012, Wietse Venema wrote:

Barbara M.:

There is a settings/parameter that fix the date/time of a mail to the time
I start to compose it or when I sent it?

I noticied some differences after update of a server from 2.2 to 2.6.
Postfix 2.2 cron Job give this mail:
---------
Date: Mon, 2 Jan 2012 04:20:50
From: Cron Daemon <root@mail>
To: root@mail
Subject: Cron <root@mail> /etc/SCRIPTS/Backup

I.e. the time when mail submission completed.

Postfix 2.6 cron Job give this mail:
----------
Date: Sun, 15 Jan 2012 03:47:01
From: Cron Daemon <root@mail>
To: root@mail
Subject: Cron <root@mail> /etc/SCRIPTS/Backup

I.e. the time when mail submission started.

You can find the "submission completed" time in Received: message
headers, if you really need that.

Postfix 2.2 mail submission programs did not store any information,
so the rest of Postfix had to guess, by using the queue file
modification time. That was clumsy.

This was changed in Postfix 2.3, six years ago. It's a bit late to
complain about that.

In my limited kowledge of Postfix, I supposed something similar and checked other servers for confirm or hints. In another box that use the same version (a Scientific Linux 6.1 with postfix-2.6.6-2.2.el6_1.i686), I have a result very similar to the 2.2 version and this confuse my analisys ... ;-) ):

------------
Date: Sun, 15 Jan 2012 02:33:44
From: Cron Daemon <root@isp31>
To: root@isp31
Subject: Cron <root@isp31> /etc/SCRIPTS/Backup 2>&1 |grep -v "Removing"


Sun Jan 15 02:33:38 CET 2012
 . . . .

Sun Jan 15 02:33:44 CET 2012
Sync /home
Sun Jan 15 02:33:44 CET 2012
End
------------


Inserted a "sleep 5m" in the script for test:

------------
Date: Sun, 15 Jan 2012 16:38:35
From: Cron Daemon <root@isp31>
To: root@isp31
Subject: Cron <root@isp31> /etc/SCRIPT/Backup 2>&1 |grep -v "Removing"

Sun Jan 15 16:33:31 CET 2012

 . . .

Sun Jan 15 16:33:35 CET 2012
Sync /home
Sun Jan 15 16:38:35 CET 2012
End
------------


For "statistics":
I have the same result also on all the CentOS 5.x boxes (that use Postfix 2.3.3 so can be expected to in the "old way"), while in the Proxmox servers (postfix_2.5.5-1.1+lenny1_amd64.deb), mail date/time is as you said must be. Also on a CentOS 6.2 (64bit) that use the same Postfix version of Scientific Linux 6.1 mail date/time is as you said must be.

I am a bit confused ... ;-)

Thanks for interest.

Regards, B.


Reply via email to