Discussion:
How to configure postfix so that mail are received using time from the server
(too old to reply)
Metropolitan College
2016-01-16 07:04:49 UTC
Permalink
Good day folk,
I ran Postfix with Dovecot as a mailbox for years now.
I noticed that, when a sender sent mails, the mailbox received it using
the date and time from the sender machine not a server one.
Which make the receiver mailbox saving the mails at the wrong time.
Please can someone help me if something have to be done regarding this
issue?
Thanks
d***@gmail.com
2016-01-16 14:04:02 UTC
Permalink
Hi

Like the From field and other fields, the Date field which is part of the mail header is manage by the sender machine (the MUA) and can not be certified. Postfix (the MTA) should not modify this header. Nevertheless, postfix may add it if it's not present according to RFC 2476 ยง8.2.

A system administrator can determine the server time by looking at Received From headers.

In practice you can modify the Date using a postfix filter which will call an external application (a bash script or a binary one).
http://www.postfix.org/FILTER_README.html

But the real question is how can you determine the right date ? The sender may be in a different timezone or the message may have been delayed (stuck in to send foder or stuck in a overload MTA).


Regards

Victor d'Agostino
Post by Metropolitan College
Good day folk,
I ran Postfix with Dovecot as a mailbox for years now.
I noticed that, when a sender sent mails, the mailbox received it using
the date and time from the sender machine not a server one.
Which make the receiver mailbox saving the mails at the wrong time.
Please can someone help me if something have to be done regarding this
issue?
Thanks
Loading...