LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2012, 09:40 AM   #1
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Rep: Reputation: Disabled
Dovecot refuses to authenticate after time-glitch shutdown


I have postfix and dovecot on a CentOS5 VPS. For some unknown reason, in the middle of the night one night the system clock lept forward and then back again, and when it went back, dovecot shut down (TimeMovedBackwards complaint). Okay, fine, so I started it again. But ever since then, I get "Authentication failed" from the server whenever I try to POP my mail. Dovecot seems to be running, but it refuses to let me in.

I set up the server about a year ago and don't remember all the details, but no doubt following some tutorial, I configured it to authenticate against the file /var/spool/vmail/mydomain/passwd. I tried changing that setting to authenticate against the system shadow file (and I reset my system password to make sure it matched what is in Thunderbird), but that didn't help. Does someone have a suggestion as to where to look for problems, or what troubleshooting steps to take? I have Webmin, and can also just check whatever via SSH.
 
Old 06-26-2012, 07:40 AM   #2
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Any ideas? Manual mail checking is getting old... Also, because of the same lack of authentication I can't send from that account either.

I'm happy to share info from logs, configuration files, etc., if you'll tell me what you need to see.
 
Old 07-01-2012, 03:40 AM   #3
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ah, come on - no one even has a suggestion as to where on my server to look for anomalies? I chose this forum community because it looked like it had a lot of activity, but my first question is either not phrased to attract attention or has stumped everyone...
 
Old 07-01-2012, 04:27 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Probably checking /var/log/dovecot.err and dovecot.info (or wherever they are on centOS) may shed some light on the issue.
 
Old 07-01-2012, 09:28 AM   #5
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for responding - it's nice to know there isn't a plot to give me the silent treatment!

I had already looked at the email logs - that was how I figured out that time had done a weird thing and that was the reason dovecot had shut down. As for the two files you mentioned, there are no files named like that anywhere on my server. The only file starting with "dovecot" and sounding like a log of any kind is /home/user/mail/.imap/INBOX/dovecot.index.log. (The "INBOX" in that path is not actually used for any mail, because I don't use IMAP). The timestamp on that file is the night before the incident happened (matching one of the last times I checked mail successfully, although interestingly not the very last time), so that's not relevant.

The maillog entries that are relevant are:
Code:
Jun  6 01:44:21 myVPS postfix/postfix-script: stopping the Postfix mail system
Jun  6 01:44:21 myVPS postfix/master[1607]: terminating on signal 15
Jun  6 01:44:21 myVPS dovecot: Killed with signal 15
Jun  6 14:06:35 myVPS dovecot: Dovecot v1.0.7 starting up
Jun  6 14:07:03 myVPS postfix/postfix-script: starting the Postfix mail system
Jun  6 14:07:06 myVPS postfix/master[722]: daemon started -- version 2.3.3, configuration /etc/postfix
Jun  6 05:07:00 myVPS dovecot: Time just moved backwards by 32417 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards
When I discovered it a couple hours later, I restarted dovecot, but after that I was always refused authentication, with a maillog entry like this:
Code:
Jul  1 23:04:14 myVPS dovecot: pop3-login: Disconnected: user=<myuser>, method=PLAIN, rip=::ffff:IP.of.my.ISP, lip=::ffff:IP.of.my.server, TLS
I have no idea why postifx and dovecot shut down at 1:44, or why sometime while they were shut down the system time jumped forward (presumably by the same 9 hours that it then jumped backward right after postfix and dovecot restarted themselves). The server did not reboot.
 
  


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
PLZ Fix the CAPS LOCK response time glitch in Linux Distros! cedricsm Linux - Newbie 56 10-06-2011 12:02 PM
Apple iPhones hit by summer time alarm glitch Jeebizz Linux - News 0 03-28-2011 08:57 AM
Can't authenticate using via POP3 for Dovecot grob115 Fedora 3 07-05-2010 12:52 PM
Authenticate as alias via IMAP (Dovecot / Postfix) winairmvs Linux - Software 2 03-17-2010 11:30 AM
intermezzo refuses to sync after a shutdown/restart of the client malcart Linux - Networking 1 04-02-2004 09:34 AM

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

All times are GMT -5. The time now is 09:53 PM.

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