LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2009, 05:44 AM   #1
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Rep: Reputation: 15
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?

Last edited by Guardian-Mage; 04-21-2009 at 06:14 AM.
 
Old 04-21-2009, 06:15 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
yum install ntp
echo "ntpdate -s 0.centos.pool.ntp.org" > /etc/cron.hourly/time_sync
/etc/init.d/crond reload
 
Old 04-21-2009, 06:21 AM   #3
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
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
 
Old 04-21-2009, 06:22 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Run this on the command line /etc/cron.hourly/time_sync
 
Old 04-21-2009, 06:26 AM   #5
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
First I had to run chmod +x on it, then I ran it, and I still get the error.
 
Old 04-21-2009, 06:27 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Quote:
Originally Posted by Guardian-Mage View Post
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 ?
 
Old 04-21-2009, 06:29 AM   #7
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
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 #
 
Old 04-21-2009, 09:48 AM   #8
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
Wow. The precompiled rpms were the problem. I compiled from source and it works great now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clock skew detected harsh.911 Linux - Newbie 4 08-23-2008 04:10 PM
MAKEing libgadu: 'Clock skew detected' uniQ Linux - Software 1 01-25-2004 06:12 PM
clock skew detected bm1 Linux - Software 2 04-29-2003 06:19 AM
Sendmail + Clock skew Detected Evolution6 Linux - Newbie 0 04-22-2003 07:14 AM
clock skew detected mechatron Linux - Newbie 2 01-17-2003 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration