[Dovecot] Server Time 45min ahead
Hi,
I have the issue that my server clock is 45min fast. Therefore I would like to install ntp. I read a lot on the internet about dovecot and ntp. My issue is that 45 min are a lot an I would like to minimize mail server downtimes as much as possible. I don't care if the time corrections with ntp takes more than a few month.
Does anyone know how I should proceed (e.g. how I have to setup ntp -> no time jump during installation and afterwards).
Thanks a lot for your help!
View this message in context: http://old.nabble.com/Server-Time-45min-ahead-tp33126760p33126760.html Sent from the Dovecot mailing list archive at Nabble.com.
- maximus12 info_postfix@gmx.ch:
Hi,
I have the issue that my server clock is 45min fast. Therefore I would like to install ntp. I read a lot on the internet about dovecot and ntp. My issue is that 45 min are a lot an I would like to minimize mail server downtimes as much as possible. I don't care if the time corrections with ntp takes more than a few month.
Does anyone know how I should proceed (e.g. how I have to setup ntp -> no time jump during installation and afterwards).
stop dovecot & postfix ntpdate timeserver start dovecot & postfix start ntpd
the time jump is only really critical when the programs are running.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
Thanks a lot for your quick response.
I thought that dovecot won't start until the server time reaches the time before the "time jump".
From your point of view dovecot will start normally if I adjust the time when dovecot is stopped?
Thanks a lot for clarification.
Ralf Hildebrandt wrote:
- maximus12 info_postfix@gmx.ch:
Hi,
I have the issue that my server clock is 45min fast. Therefore I would like to install ntp. I read a lot on the internet about dovecot and ntp. My issue is that 45 min are a lot an I would like to minimize mail server downtimes as much as possible. I don't care if the time corrections with ntp takes more than a few month.
Does anyone know how I should proceed (e.g. how I have to setup ntp -> no time jump during installation and afterwards).
stop dovecot & postfix ntpdate timeserver start dovecot & postfix start ntpd
the time jump is only really critical when the programs are running.
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
-- View this message in context: http://old.nabble.com/Server-Time-45min-ahead-tp33126760p33127262.html Sent from the Dovecot mailing list archive at Nabble.com.
- maximus12 info_postfix@gmx.ch:
Thanks a lot for your quick response.
I thought that dovecot won't start until the server time reaches the time before the "time jump".
From your point of view dovecot will start normally if I adjust the time when dovecot is stopped?
Don't take my word for it, but I think the behaviour is this:
- dovecot is running, time jumps backwards -> dovecot exits
- dovecot is not running, time jumps backwards -> dovecot can be started
It also depends on your dovecot version, see http://wiki.dovecot.org/TimeMovedBackwards
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt@charite.de | http://www.charite.de
Hi Ralf,
Thanks for your help. Dovecot stop Change the server time Dovecot start
Got a warning but it worked! Thanks a lot for your help. (With dovecot 1.x)
-- View this message in context: http://old.nabble.com/Server-Time-45min-ahead-tp33126760p33137241.html Sent from the Dovecot mailing list archive at Nabble.com.
Ralf wrote:
stop dovecot & postfix ntpdate timeserver start dovecot & postfix start ntpd
Speaking as stenn@ntp.org, I recommend:
- run 'ntpd -gN' as early as possible in the startup sequence (no need for ntpdate)
then as late as possible in the startup sequence, run:
- ntp-wait -v -s 1 ; start dovecot and postfix (and database servers)
H
On Thu, 2012-01-12 at 07:47 -0500, Harlan Stenn wrote:
then as late as possible in the startup sequence, run:
- ntp-wait -v -s 1 ; start dovecot and postfix (and database servers)
I'll +1 that advice, I introduced ntp-wait sometime ago when dovecot kept bitching, not a single glitch since.
participants (4)
-
Harlan Stenn
-
maximus12
-
Noel Butler
-
Ralf Hildebrandt