Author Topic: roundcube 0.3.1 - IMAP Error: Empty startup greeting  (Read 13592 times)

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« on: November 04, 2009, 05:09:45 PM »
win2003
IIS, PHP 5.3, MySQL; hMail

Installed and configured fine.  2-3 users can login before this error starts popping in the error log.  users see: "connection to IMAP server failed".

If i wait 30 minutes or so, I can start logging back in as 2 or 3 users, then the cycle continues.

[04-Nov-2009 17:05:42 -0500]: IMAP Error: Empty startup greeting (mail.server:143) (POST /webmail/?_task=&_action=login)

I've downloaded the 2972 imap.inc from the trunk, that results in a blank web page.  Not sure it matters but i have $rcmail_config['default_host'] = array('domain3', 'domain2', 'domain1'); configured and have been testing with different users from different domains.

i've restarted IIS but that doesn't clear up the issue.  Any further suggestions would be much appreciate.

/note: i've have an Outlook profile configured for IMAP up and running against the server while these errors are popping, so i'm fairly certain that the connection isn't failing.
« Last Edit: November 04, 2009, 05:15:51 PM by toetag »
<[ a desert to an irishman is an empty glass. ]>

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #1 on: November 04, 2009, 07:28:21 PM »
Does this happen with RoundCube 3.1?

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #2 on: November 04, 2009, 09:56:33 PM »
Quote from: skaero;22782
Does this happen with RoundCube 3.1?


I suppose that little nugget of information should have been disclosed.

Yes, 0.3.1.

I only downloaded it and began installing it this morning.
<[ a desert to an irishman is an empty glass. ]>

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #3 on: November 05, 2009, 09:02:18 AM »
hmm, i'm completely stumped.

I hadn't made any changes since i posted the original thread.  The issue seems to have disappeared.  I've been logging in as multiple different users, from different domains.  It's been 30 minutes of testing and it all seems to work fine.

/now to tackle hMail plugins.....
<[ a desert to an irishman is an empty glass. ]>

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
fixed
« Reply #4 on: November 06, 2009, 02:16:38 PM »
Just thought i'd share my mistake.

as it turns out, hMail 5 has an "auto ban" feature.  3 invalid attempts, block the IP of the connection.  (the configuraiton page in hMail even says AutoBan will fark your webmail up)

the error is a bit misleading about a "Empty startup greeting", but it wasn't Roundcubes fault.
<[ a desert to an irishman is an empty glass. ]>

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #5 on: November 07, 2009, 01:12:18 AM »
Snippet of hMailServer documentation:

Quote

Potential problems
The Auto-ban functionality blocks IP addresses. If too many invalid logon attempts are made from the same IP address, the IP address will be banned. If you are using a webmail system, all connections to hMailServer from that webmail system will come from the same IP address. If too many invalid logon attempts are made on that webmail system, the IP address the webmail system is connecting from will be blocked.

To solve this problem, you can whitelist the webmail system. A workaround to this problem is to add a new IP range matching the shared IP address and give this IP range higher priority than any IP range added by the auto-ban functionality. The IP ranges added by auto-ban is given the priority 20, so if your own IP range has priority 25 it will take precedence.


I have auto ban enabled. To detect if a user is banned due to invalid login attempts to the webmail you can use my hmail_autoban plugin.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #6 on: November 07, 2009, 02:06:13 PM »
Quote from: rosali;22878
Snippet of hMailServer documentation:



I have auto ban enabled. To detect if a user is banned due to invalid login attempts to the webmail you can use my hmail_autoban plugin.


Danke rosali! I was wondering what the purpose of that plugin. I shall include that in my readme file updates.
<[ a desert to an irishman is an empty glass. ]>

Offline vtzan

  • Newbie
  • *
  • Posts: 4
roundcube 0.3.1 - IMAP Error: Empty startup greeting
« Reply #7 on: December 01, 2009, 05:30:54 AM »
Quote from: skaero;22782
Does this happen with RoundCube 3.1?


Yes this is happening to 3.1 too.

[01-Dec-2009 12:30:08 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663498990&_list=1&_quota=1&_remote=1&_=1259663499020&_unlock=1)
[01-Dec-2009 12:30:08 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663398386&_remote=1&_=1259663398386&_unlock=1)
[01-Dec-2009 12:30:08 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663395754&_list=1&_quota=1&_remote=1&_=1259663395754&_unlock=1)
[01-Dec-2009 12:30:08 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663373421&_list=1&_quota=1&_remote=1&_=1259663373437&_unlock=1)
[01-Dec-2009 12:30:09 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:11 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663406958&_remote=1&_=1259663406963&_unlock=1)
[01-Dec-2009 12:30:11 +0200]: IMAP Error: Empty startup greeting (localhost:143) (GET /?_task=mail&_action=check-recent&_t=1259663403063&_remote=1&_=1259663403063&_unlock=1)
[01-Dec-2009 12:30:12 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:12 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:12 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:15 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:16 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:17 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)
[01-Dec-2009 12:30:19 +0200]: IMAP Error: Empty startup greeting (localhost:143) (POST /?_task=&_action=login)


any idea on this?