Koozali.org: home of the SME Server

imap problems

Offline osc

  • *
  • 13
  • +0/-0
imap problems
« on: July 24, 2013, 01:05:24 PM »
Hi,

i have some problems with my server.
After some time all imap/s clients (Mail, Outlook etc.) lose connection and get the error authentication failed.
I didn't find any erros in var/log/messages,  imap/current or /imaps/current.

Is there another logfile wehere i can find some hints on whats going on ?.

Thanks for your help.

Felix

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: imap problems
« Reply #1 on: July 24, 2013, 01:20:16 PM »
Are these local IMAP clients, or remote?

Is the authentication failure occurring during email download (imap /imaps) or when sending  (qpsmtpd / sqpsmtpd)?

Does webmail work?

Is there something you do to make it work again (wait? reboot? restart imap or imaps?)?

Do you have any contribs installed that might affect server access (eg denyhosts)?

Is your server up-to-date?


Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #2 on: July 24, 2013, 01:50:11 PM »
Thanks for the fast reply.

The clients are all remote.

Good that you mentioned webmail, when the clients lose connection webmail login is not longer working.

Restart the server is the only way to get it working again. I updatet the the server over the server manager.
It says up to date.

I reinstalled imp so webmail stopped working but thats an other problem...
No contribs installed that might affect the access.






Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: imap problems
« Reply #3 on: July 24, 2013, 01:57:10 PM »
You may be running into a "Path MTU Discovery" problem.

Check your MTU settings as described here for qpsmtpd errors:
http://wiki.contribs.org/Email#qpsmtpd_.22Connection_Timed_Out.22_errors

A problem with Path MTU Discovery does not generate any particularly meaningful errors anywhere...


Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: imap problems
« Reply #4 on: July 24, 2013, 01:59:32 PM »
...Also, (if your MTU is OK), I'd be curious if any of these get email working again:

signal-event email-update
(problem is in email services)

signal-event remoteaccess-update
(problem is in email services or firewall rules)

/etc/init.d/masq restart
(firewall became unstable for some reason - take a look at /var/log/iptables/current)

[edit: grammar, typo]
« Last Edit: July 24, 2013, 02:22:46 PM by mmccarn »

Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #5 on: July 24, 2013, 02:56:41 PM »
MTU is 1500. tracepath resume with 1500.

I will try the other steps later.

thanks a lot.


Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #6 on: July 26, 2013, 02:03:19 PM »
I tried signal-event email-update, signal-event remoteaccess-update and no errors in iptables.
I am still forcing the same problem.

I get my Webmail working again.
Thats the output from /var/log/messages.

[imp] FAILED LOGIN for username [x.x.x.x] to {localhost:143 [imap/notls]} [pid 7065 on line 139 of "/home/httpd/html/horde/imp/lib/Auth/imp.php







Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: imap problems
« Reply #7 on: July 26, 2013, 02:14:13 PM »
You might want to test your hardware - RAM, HDD, etc.

There's a RAM test on the SME server install CD.

Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #8 on: July 29, 2013, 09:34:28 AM »
SME is running on ESXI 4.1.
I made a RAM test but no erros.
Other Hardware is running well.

Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #9 on: July 29, 2013, 12:31:15 PM »
I tried telnet connection to imap.

Trying x.x.x.x...
Connected to x.x.x.x
Escape character is '^]'.
* OK imapfront ready. + stunnel
a1 login usernam password

Then it stucks.

After reboot its working and I can connect.

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: imap problems
« Reply #10 on: July 29, 2013, 01:01:42 PM »
Does the clock drift on your SME server?  There used to be a problem with severe clock drift on virtualized SME servers (hours of drift in a few minutes).

Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #11 on: July 30, 2013, 04:17:56 PM »
You are right.
I found in the IMAP Log.

imap(xxx): Fatal: Time just moved backwards by 97 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards.

I have add the kernel parameter notsc divider=10 nohpet.
Hope that will fix it.

Thank you
Felix


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: imap problems
« Reply #12 on: July 30, 2013, 06:42:58 PM »
Hope that will fix it.

Please edit the subject of this thread to include '[SOLVED]' if it does. Thanks.

Offline osc

  • *
  • 13
  • +0/-0
Re: imap problems
« Reply #13 on: July 31, 2013, 11:17:28 AM »
hi,
still the same problem.


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: imap problems
« Reply #14 on: July 31, 2013, 11:40:08 AM »
which one? time drifting?