<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.iredmail.org/wiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Addition/NTP - Revision history</title>
		<link>http://www.iredmail.org/wiki/index.php?title=Addition/NTP&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5</generator>
		<lastBuildDate>Mon, 20 May 2013 19:29:39 GMT</lastBuildDate>
		<item>
			<title>Mike.f:&amp;#32;/* date still stays seconds/minutes wrong */ it's offset :)</title>
			<link>http://www.iredmail.org/wiki/index.php?title=Addition/NTP&amp;diff=1408&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;date still stays seconds/minutes wrong:&amp;#32;&lt;/span&gt; it&amp;#39;s offset :)&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:40, 26 April 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;the row &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;delay&lt;/del&gt;&amp;quot; gives you the difference that needs to be catched up. Just leave it and recheck after a cup of coffee :)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;the row &amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;offset&lt;/ins&gt;&amp;quot; gives you the difference that needs to be catched up. Just leave it and recheck after a cup of coffee :)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== add to default runlevels ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== add to default runlevels ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-20 19:29:39 --&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 26 Apr 2011 17:40:40 GMT</pubDate>			<dc:creator>Mike.f</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:Addition/NTP</comments>		</item>
		<item>
			<title>Mike.f:&amp;#32;/* date still stays seconds/minutes wrong */ screen-output</title>
			<link>http://www.iredmail.org/wiki/index.php?title=Addition/NTP&amp;diff=1407&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;date still stays seconds/minutes wrong:&amp;#32;&lt;/span&gt; screen-output&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:39, 26 April 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== date still stays seconds/minutes wrong ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== date still stays seconds/minutes wrong ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;don't worry - this is a feature to keep applications like dovecot alive. The time will be synced in the background and &amp;quot;slowly&amp;quot; adjusted. &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;don't worry - this is a feature to keep applications like dovecot alive. The time will be synced in the background and &amp;quot;slowly&amp;quot; adjusted. &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; {{cmd|&amp;lt;pre&amp;gt;# ntpq -n -p&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/pre&amp;gt;}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; {{cmd|&amp;lt;pre&amp;gt;# ntpq -n -p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the row &amp;quot;delay&amp;quot; gives you the difference that needs to be catched up. Just leave it and recheck after a cup of coffee :)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;nbsp; &amp;nbsp;  remote&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  refid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; st&amp;nbsp;  t&amp;nbsp;  when poll reach&amp;nbsp;  delay&amp;nbsp;  offset&amp;nbsp; jitter&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;==============================================================================&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;+XX.XX.XX.XX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ATOM.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  1 u&amp;nbsp; &amp;nbsp; 2&amp;nbsp;  64&amp;nbsp; 377&amp;nbsp;  27.695&amp;nbsp;  -0.217&amp;nbsp;  0.518&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;*XXX.XXX.XXX.XXX&amp;nbsp; &amp;nbsp; &amp;nbsp; .ATOM.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  1 u&amp;nbsp;  44&amp;nbsp;  64&amp;nbsp; 377&amp;nbsp;  27.985&amp;nbsp; &amp;nbsp; 0.117&amp;nbsp;  0.381&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;+X.X.X.X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .ATOM.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  1 u&amp;nbsp;  32&amp;nbsp;  64&amp;nbsp; 377&amp;nbsp;  27.346&amp;nbsp; &amp;nbsp; 0.046&amp;nbsp;  0.273&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;the row &amp;quot;delay&amp;quot; gives you the difference that needs to be catched up. Just leave it and recheck after a cup of coffee :)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== add to default runlevels ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== add to default runlevels ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-20 19:29:39 --&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 26 Apr 2011 17:39:02 GMT</pubDate>			<dc:creator>Mike.f</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:Addition/NTP</comments>		</item>
		<item>
			<title>Mike.f:&amp;#32;initial</title>
			<link>http://www.iredmail.org/wiki/index.php?title=Addition/NTP&amp;diff=1404&amp;oldid=prev</link>
			<description>&lt;p&gt;initial&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Dovecot and OpenLDAP may react very ugly when your computer-time is not correct.&lt;br /&gt;
&lt;br /&gt;
OpenLDAP needs correct time-values if you want to implement replication.&lt;br /&gt;
And dovecot simply stops with an Error &amp;quot;time moved backwards&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This problem may be seen especially on virtualized Hosts (like ESX/ESXi/Xen/KVM/...).&lt;br /&gt;
But also &amp;quot;real server&amp;quot; may benefit of correct time-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== current time ==&lt;br /&gt;
if you want to know the current time on your server just type in&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;# date&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
compare the result with your own watch :)&lt;br /&gt;
&lt;br /&gt;
== installation ==&lt;br /&gt;
The NTP-daemon is not installed by default on every system.&lt;br /&gt;
&lt;br /&gt;
on debian you can install it using&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;# apt-get install ntp&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
on CentOS install the package using &lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;# yum install ntp&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== configuration ==&lt;br /&gt;
&lt;br /&gt;
afterwards you need to check the config-file for multiple lines starting with&lt;br /&gt;
{{cfg|/etc/ntp.conf|&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
server HOSTNAME-OF-NTP-SERVER ...&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
extend these lines to read like that&lt;br /&gt;
{{cfg|/etc/ntp.conf|&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
server HOSTNAME-OF-NTP-SERVER  ....  minpoll 4 maxpoll 10&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
the &amp;quot;maxpoll&amp;quot; interval is quite important: it tells ntp how often to talk to the ntp-server&lt;br /&gt;
&lt;br /&gt;
the last number '''10'''  (= every 1024 sec) is quite reasonable on real hardware&amp;lt;br&amp;gt;&lt;br /&gt;
maybe you want to set it to 8 in virtual environments&amp;lt;br&amp;gt;&lt;br /&gt;
please '''do not''' set it below 6 (= every 64 sec) as this might be seen as abusive&amp;lt;br&amp;gt;&lt;br /&gt;
if you really want to have a very good time sync just use more server as reference&lt;br /&gt;
&lt;br /&gt;
== start/restart the service ==&lt;br /&gt;
&lt;br /&gt;
afterwards remember to restart your ntp-daemon&lt;br /&gt;
debian {{cmd|&amp;lt;pre&amp;gt;# /etc/init.d/ntp restart&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
CentOS {{cmd|&amp;lt;pre&amp;gt;# /etc/init.d/ntpd restart&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== date still stays seconds/minutes wrong ==&lt;br /&gt;
don't worry - this is a feature to keep applications like dovecot alive. The time will be synced in the background and &amp;quot;slowly&amp;quot; adjusted. &lt;br /&gt;
 {{cmd|&amp;lt;pre&amp;gt;# ntpq -n -p&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
the row &amp;quot;delay&amp;quot; gives you the difference that needs to be catched up. Just leave it and recheck after a cup of coffee :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== add to default runlevels ==&lt;br /&gt;
&lt;br /&gt;
remember to add ntp to default runlevels&lt;br /&gt;
&lt;br /&gt;
on debian this is done automaticaly&amp;lt;br&amp;gt;&lt;br /&gt;
for CenOS type {{cmd|&amp;lt;pre&amp;gt;# chkconfig --level 345 ntpd on&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== want to know more ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://en.wikipedia.org/wiki/Network_Time_Protocol&amp;lt;br&amp;gt;&lt;br /&gt;
http://wiki1.dovecot.org/TimeMovedBackwards&amp;lt;br&amp;gt;&lt;br /&gt;
http://wiki2.dovecot.org/TimeMovedBackwards&amp;lt;br&amp;gt;&lt;/div&gt;</description>
			<pubDate>Tue, 26 Apr 2011 17:27:02 GMT</pubDate>			<dc:creator>Mike.f</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:Addition/NTP</comments>		</item>
	</channel>
</rss>