Author Topic: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-re  (Read 10902 times)

Offline yk5515

  • Jr. Member
  • **
  • Posts: 12
[06-Apr-2010 16:03:35 +0800]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=show&_uid=3512&_mbox=INBOX)

[06-Apr-2010 16:03:59 +0800]: IMAP Error: Authentication for user@domain.com failed (LOGIN): "" (GET /?_task=mail&_action=check-recent&_t=1270541440885&_fromaction=compose&_remote=1&_=1270541440886&_unlock=1)

These come suddenly. It has run well about one month.

I saw this problem at the begin of building site. I reload the OS and resolved the problem.

But now, it happens to some user with nothing change, strange not all.  

I use postfix+devocot+mysql.

Any suggestion will be very appreciative.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Try enabling the debug_logger and see what information it gives.

Offline yk5515

  • Jr. Member
  • **
  • Posts: 12
Quote from: skaero;26634
Try enabling the debug_logger and see what information it gives.


Thank your for your suggestion, it is useful.

I found this in maillog.
Apr 6 00:58:16 hg02 postfix/scache[7737]: statistics: start interval
Apr 6 00:54:46
Apr 6 00:58:16 hg02 postfix/scache[7737]: statistics: domain lookup
hits=0 miss=2 success=0%
Apr 6 00:58:16 hg02 postfix/scache[7737]: statistics: address lookup
hits=0 miss=3 success=0%
Apr 6 00:58:16 hg02 postfix/scache[7737]: statistics: max simultaneous
domains=1 addresses=2 connection=2

Apr 6 00:58:21 hg02 postfix/postfix-script[9941]: refreshing the
Postfix mail system
Apr 6 00:58:21 hg02 postfix/postfix-script[9941]: refreshing the
Postfix mail system
Apr 6 00:58:21 hg02 postfix/master[14541]: reload -- version 2.6.5,
configuration /etc/postfix
Apr 6 00:58:21 hg02 postfix/anvil[7587]: statistics: max connection
rate 1/60s for (smtp:xxx.xxx.xxx.xxx) at Apr 6 00:57:44
Apr 6 00:58:21 hg02 postfix/anvil[7587]: statistics: max connection
count 1 for (smtp:xxx.xxx.xxx.xxx) at Apr 6 00:57:44
Apr 6 00:58:21 hg02 postfix/anvil[7587]: statistics: max cache size 3
at Apr 6 00:57:49

The postfix reload itself. Maybe this is the problem.

But i wonder why it reload auto.

yk

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Turn on Roundcube debuging and look in RC_dir/logs/...

Offline yk5515

  • Jr. Member
  • **
  • Posts: 12
Quote from: dziobak;26651
Turn on Roundcube debuging and look in RC_dir/logs/...


ok, i am trying.

Offline yk5515

  • Jr. Member
  • **
  • Posts: 12
Quote from: skaero;26634
Try enabling the debug_logger and see what information it gives.


It happened again.

[09-Apr-2010 09:06:21 +0800]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=mail&_action=moveto?_task=&_action=)
[09-Apr-2010 09:06:22 +0800]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1270775170625&_list=1&_fromaction=&_remote=1&_=1270775170671&_unlock=1)


$conn->fp = @fsockopen($host, $ICL_PORT, $errno, $errstr, 10);
   if (!$conn->fp) {
          $iil_error = "Could not connect to $host at port $ICL_PORT: $errstr";
          $iil_errornum = -2;
      return false;
   }

   stream_set_timeout($conn->fp, 10);
   $line = trim(fgets($conn->fp, 8192));

   if ($my_prefs['debug_mode'] && $line)
      write_log('imap', 'S: '. $line);

   // Connected to wrong port or connection error?
   if (!preg_match('/^\* (OK|PREAUTH)/i', $line)) {
      if ($line)
         $iil_error = "Wrong startup greeting ($host:$ICL_PORT): $line";
      else
         $iil_error = "Empty startup greeting ($host:$ICL_PORT)";
           $iil_errornum = -2;
           return false;
   }

Seems IMAP return a empty response. Why?

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
what version of RC do you have and what plugins are installed?
what version of dovecot?