时间问题导致 IMAP 服务器失败

时间问题导致 IMAP 服务器失败

当我执行以下操作时,我的系统时间出现了问题:
date && touch test && stat test

我得到了以下结果:

Sun Jan 22 17:52:07 MSK 2012
File: test
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 1dh/29d Inode: 5543372 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-22 17:19:39.000000000 +0400
Modify: 2012-01-22 17:19:39.000000000 +0400
Change: 2012-01-22 17:19:39.000000000 +0400

这导致我的 imap 服务器在登录时出现错误,也就是说,
* BYE Clock skew detected. Check the clock on the file server

我尝试使用 ntpdate 和 ntpd 守护程序解决这个问题,但尽管都没有出现错误,情况也没有改变。我试过 ubuntu 论坛,但似乎没人知道该怎么做。如果能得到任何帮助,我将不胜感激。

答案1

报告的时间和被触摸文件上的时间戳不同的原因只有一种date:您触摸的文件位于 NFS 服务器上,并且服务器的时间与客户端的时间不匹配。

检查 NFS 服务器上的时间。

相关内容