From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 09:39:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 235251065672 for ; Tue, 21 Apr 2009 09:39:49 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9A2728FC21 for ; Tue, 21 Apr 2009 09:39:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n3L9ddW9013499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Apr 2009 10:39:46 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n3L9ddW9013499 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1240306786; bh=JRHJbDNyvSfgI2z0FbCfNWUAoNXHphX3B53k7BoaeJ8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<49ED9454.5030100@infracaninophile.co.uk>|Date:=20T ue,=2021=20Apr=202009=2010:39:32=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090414)|MIME-Vers ion:=201.0|To:=20Mel=20Flynn=20|CC:=20freebsd-questions@freebsd.org|Subject:=20Re:=20 Preventing=20ntpd=20from=20adjusting=20time=20(backwards)|Referenc es:=20<200904211106.01965.mel.flynn+fbsd.questions@mailing.thruher e.net>|In-Reply-To:=20<200904211106.01965.mel.flynn+fbsd.questions @mailing.thruhere.net>|X-Enigmail-Version:=200.95.7|OpenPGP:=20id= 3D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1 =3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boun dary=3D"------------enig9327804E6188709689C833AD"; b=qXvbZOi/7bZpFNKxeSdShZTm86qMIOuG25vLEtQMu34OPDZBZsE4h6HD9D4OlLEy5 ak9eEQwHf2jVODMDLfBJ7vsTlcBLtvVbuScknk7TSENQZUdDfoo86qCJYW1hAtduk0 9XBgwl2i43kGe5soWrkYyiHEjspjtyIoQZWQ6hiI= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <49ED9454.5030100@infracaninophile.co.uk> Date: Tue, 21 Apr 2009 10:39:32 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090414) MIME-Version: 1.0 To: Mel Flynn References: <200904211106.01965.mel.flynn+fbsd.questions@mailing.thruhere.net> In-Reply-To: <200904211106.01965.mel.flynn+fbsd.questions@mailing.thruhere.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9327804E6188709689C833AD" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: Preventing ntpd from adjusting time (backwards) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 09:39:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9327804E6188709689C833AD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mel Flynn wrote: > Hi, >=20 > Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to belie= ve it's=20 > possible to make ntpd *not* adjust the time. With adjust I don't mean t= he skew=20 > operation, but really change the time. Backwards is my primary concern = but if=20 > it can be turned off completely it's fine with me. >=20 > Reason being dovecot bailing out when this happens: > Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s >=20 > Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seco= nds.=20 > This might cause a lot of problems, so I'll just kill myself now.=20 > http://wiki.dovecot.org/TimeMovedBackwards >=20 This seems to be a bete-noir for the dovecot developer. Whatever, it is a royal pain in the arse, as my mailserver always steps the time backwards on each reboot, and then dovecot does it's dying swan thing. Three choices: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. * Don't run dovecot. Other IMAP servers do not suffer in the same way. * Put up with it. Avoid reboots, and swear at all concerned any time you really do have to reboot. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig9327804E6188709689C833AD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkntlFkACgkQ3jDkPpsZ+VaoJQCfSseHH1zqD95e2vKKy5RWWbc/ COMAoLSDjR45jJntxvOO64+KiQsfCiPO =nK+B -----END PGP SIGNATURE----- --------------enig9327804E6188709689C833AD--