LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   BYE Clock skew detected. Check the clock on the file server (https://www.linuxquestions.org/questions/linux-server-73/bye-clock-skew-detected-check-the-clock-on-the-file-server-720619/)

Guardian-Mage 04-21-2009 05:44 AM

BYE Clock skew detected. Check the clock on the file server
 
When I telnet localhost imap and try to login I get

BYE Clock skew detected. Check the clock on the file server

How I the linux time protocol or whatever installed, all my files are on one hard drive, and I've tried some debugging techniques. My courier version is courier-imap-4.2.1-1.i386 and I've looked, and none of my users have the same uid that I can see.

date && touch test && stat test
Code:

[vmail@cl-t112-271cl ~]$ date && touch test && stat test
Tue Apr 21 07:12:03 EDT 2009
  File: `test'
  Size: 0              Blocks: 0          IO Block: 4096  regular empty file
Device: 305h/773d      Inode: 72450050    Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 5000/  vmail)  Gid: ( 5000/  vmail)
Access: 2009-04-21 07:12:03.000000000 -0400
Modify: 2009-04-21 07:12:03.000000000 -0400
Change: 2009-04-21 07:12:03.000000000 -0400


Could it be caused if courier is running on a different user that the owner of my virtual mail users folder?

datopdog 04-21-2009 06:15 AM

Code:

yum install ntp
echo "ntpdate -s 0.centos.pool.ntp.org" > /etc/cron.hourly/time_sync
/etc/init.d/crond reload


Guardian-Mage 04-21-2009 06:21 AM

That did not work

Code:

[root]/home # echo "ntpdate -s 0.centos.pool.ntp.org" > /etc/cron.hourly/time_sync
[root]/home # /etc/init.d/crond reload
Reloading cron daemon configuration:                      [  OK  ]

ntp-4.2.2p1-9.el5.centos.1.i386 is the ntp version I have

datopdog 04-21-2009 06:22 AM

Run this on the command line /etc/cron.hourly/time_sync

Guardian-Mage 04-21-2009 06:26 AM

First I had to run chmod +x on it, then I ran it, and I still get the error.

datopdog 04-21-2009 06:27 AM

Quote:

Originally Posted by Guardian-Mage (Post 3516050)
First I had to run chmod +x on it, then I ran it, and I still get the error.

Did you restart courier to get it to use the new time ?

Guardian-Mage 04-21-2009 06:29 AM

I restarted both imap and auth daemons

Code:

[root]/etc/cron.hourly # /etc/init.d/courier-authlib restart
Stopping Courier authentication services: authdaemond
Starting Courier authentication services: authdaemond
[root]/etc/cron.hourly # /etc/init.d/courier-imap restart
Stopping Courier-IMAP server: imap imap-ssl pop3 pop3-ssl
Starting Courier-IMAP server: imap imap-ssl pop3 pop3-ssl
[root]/etc/cron.hourly # telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
01 LOGIN brandon@sabotix.com <password removed>
* BYE Clock skew detected. Check the clock on the file server
Connection closed by foreign host.
[root]/etc/cron.hourly #


Guardian-Mage 04-21-2009 09:48 AM

Wow. The precompiled rpms were the problem. I compiled from source and it works great now


All times are GMT -5. The time now is 04:22 AM.