Hi! Thanks for your answer!
On Mon, Aug 23, 2010 at 3:34 AM, Ansgar Wiechers <li...@planetcobalt.net> wrote: > On 2010-08-22 Jose Ildefonso Camargo Tolosa wrote: >> I got a curiosity, I have noted that the Date header the mail takes >> comes from the client computer, so, if my computer have a wrong date, >> my mail will go out with a wrong date too. >> >> I know the server will put its own timestamp when it process the >> message, but the destination mail client will use the Date header to >> order messages, and thus, if someone's computer has a date of now-3 >> days, there is a risk that the mail he/she sends is overseen by the >> receiver. >> >> I also know that there should be a policy to keep all of the company's >> PCs clock synchronized to a central server: but that's not the case, >> and there are a few PCs with failing BIOS batteries (which shouldn't >> happen). > > NTP should take care of both issues. Yes, but this is not an option when you don't have control over all the PCs. I know it is the correct thing to do: just have all the computers synchronize their clock (I already said so, I just omited the technology, as a matter of fact, there is an NTP server, and I use it for all the servers). > >> I have to ask: is there a way of making postfix rewrite Date header to >> server's time for authenticated mail? (or at list for a range of IPs), >> off course, a general header rewrite would not be good, because that >> would overwrite header for mail coming from the Internet (that would >> be really bad). I took a quick look at the docs, and found nothing on >> this matter, nevertheless, if someone can point me to a doc where this >> is explained, that will be enough for me. >> >> What do you think on this? > > Fix the problem rather than the symptom. Yes, I know, but it is not always an option. As I said: you don't always have control over the people's computer (say, the case of an ISP, where you have lots of clients, but you don't touch a client's computer, it is not the case, but I can think of that as an example). Still, I want to know if is there a way of selectively rewriting headers, actually, MS Exchange does this: it has an option to use server's time for outgoing mail from local users (no: I will not use Exchange). Once again, thanks for taking the time to answer me! Sincerely, Ildefonso.