{"id":10861,"date":"2018-06-28T16:05:28","date_gmt":"2018-06-28T16:05:28","guid":{"rendered":"https:\/\/www.itwriting.com\/blog\/?p=10861"},"modified":"2018-06-28T16:05:28","modified_gmt":"2018-06-28T16:05:28","slug":"notes-from-the-field-windows-time-service-interrupts-email-delivery","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/10861-notes-from-the-field-windows-time-service-interrupts-email-delivery.html","title":{"rendered":"Notes from the field: Windows Time Service interrupts email delivery"},"content":{"rendered":"<p>A business with Exchange Server noticed that email was not flowing. The internet connection was fine, all the servers were up and running including Exchange 2016. Email has been fine just a few hours earlier. What was wrong?<\/p>\n<p>The answer, or the beginning of the answer, was in the Event Viewer on the Exchange Server. Event ID 1035, only a warning:<\/p>\n<blockquote>\n<p>Inbound authentication failed with error UnexpectedExchangeAuthBlobCheckForClockSkew for Receive connector Default Mailbox Delivery <\/p>\n<\/blockquote>\n<p>Hmm. A clock problem, right? It turned out that the PDC for the domain was five minutes fast. This is enough to trigger Kerberos authentication failures. Result: no email. We fixed the time, restarted Exchange, and everything worked.<\/p>\n<p>Why was the PDC running fast? The PDC was configured to get time from an external source, apparently, and all other servers to get their time from the PDC. Foolproof?<\/p>\n<p>Not so. If you typed:<\/p>\n<blockquote>\n<p>w32tm \/query \/status<\/p>\n<\/blockquote>\n<p>at a command prompt on the PDC (not the Exchange Server, note), it reported:<\/p>\n<blockquote>\n<p>Source: Free-running System Clock<\/p>\n<\/blockquote>\n<p>Oops. Despite efforts to do the right thing in the registry, setting the Type key in HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters to NTP and entering a suitable list of time servers in the NtpServer key, it was actually getting its time from the server clock. This being a Hyper-V VM, that meant the clock on the host server, which \u2013 no surprise \u2013 was five minutes fast.<\/p>\n<p>You can check for this error by typing:<\/p>\n<blockquote>\n<p>w32tm \/resync<\/p>\n<\/blockquote>\n<p>at the command prompt. If it says:<\/p>\n<blockquote>\n<p>The computer did not resync because no time data was available.<\/p>\n<\/blockquote>\n<p>then something is wrong with the configuration. If it succeeds, check the status as above and verify that it is querying an internet time server. If it is not querying a time server, run a command like this:<\/p>\n<blockquote>\n<p>w32tm \/config \/update \/manualpeerlist:&#8221;0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8 3.pool.ntp.org,0x8&#8243; \/syncfromflags:MANUAL <\/p>\n<\/blockquote>\n<p>until you have it right. <\/p>\n<p>Note this is ONLY for the server with the PDC Emulator FSMO role. Other servers should be configured to get time from the PDC. <\/p>\n<p>Time server problems seem to be common on Windows networks, despite the existence of lots of documentation. There are also various opinions on the best way to configure Hyper-V, which has its own time synchronization service. There is a piece by Eric Siron <a href=\"https:\/\/www.altaro.com\/hyper-v\/hyper-v-time-synchronization\/\" target=\"_blank\">here<\/a> on the subject, and I reckon his approach is a safe one (Hyper-V Synchronization Service OFF for the PDC Emulator, ON for every other VM).<\/p>\n<p>I love his closing remarks:<\/p>\n<blockquote>\n<p>The Windows Time service has a track record of occasionally displaying erratic behavior. It is possible that some of my findings are not entirely accurate. It is also possible that my findings are 100% accurate but that not everyone will be able to duplicate them with 100% precision. If working with any time sensitive servers or applications, always take the time to verify that everything is working as expected.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A business with Exchange Server noticed that email was not flowing. The internet connection was fine, all the servers were up and running including Exchange 2016. Email has been fine just a few hours earlier. What was wrong? The answer, or the beginning of the answer, was in the Event Viewer on the Exchange Server. &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/10861-notes-from-the-field-windows-time-service-interrupts-email-delivery.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Notes from the field: Windows Time Service interrupts email delivery<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,1519],"tags":[374,466,996],"class_list":["post-10861","post","type-post","status-publish","format-standard","hentry","category-notes-from-the-field","category-tech","tag-exchange","tag-hyper-v","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=10861"}],"version-history":[{"count":1,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10861\/revisions"}],"predecessor-version":[{"id":10862,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/10861\/revisions\/10862"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=10861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=10861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=10861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}