OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: PATCH: Mail sitting around for several minutes

From: Chris Hastie (listsoak-wood.co.uk)
Date: Mon Apr 14 2003 - 08:26:41 CDT


On Sat, 12 Apr 2003, Wietse Venema <wietseporcupine.org> wrote
>Chris Hastie:
>> I think this may be the problem. The file time is ahead of the time
>> given in the output of mailq:
>
>Wietse Venema:
>> Below is a patch that resets the queue file time stamp to "NOW"
>> after the message is stored. This makes Postfix slightly slower
>> but it makes Postfix more robust against file server clock drift.
>
>This version auto-detects file system clock drift, and thereby
>minimizes the performance impact for normal sites. The extra
>fstat() call should have unmeasurable impact.

Many thanks for your help in resolving this problem.

As it turns out I haven't needed to apply your patch (which I wasn't
looking forward to since I installed Postfix the lazy way using apt-get
on Debian).

The machine in question is a 'virtual mini-server', one of several such
things running on the same box. It turns out that the file system set
times according to the host system clock, but the mini-server system
clock was different (and hopefully correct as I was using ntp to sync
it). My service provider has now applied a kernel patch to the system so
that the file time stamps are now based on the mini-server clock rather
than the host system clock.
--
Chris Hastie