Roundcube Community Forum

 

roundcube 0.3.1 - IMAP Error: Empty startup greeting

Started by toetag, November 04, 2009, 05:09:45 PM

Previous topic - Next topic

toetag

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.
<[ a desert to an irishman is an empty glass. ]>

SKaero


toetag

Quote from: skaero;22782Does 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. ]>

toetag

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. ]>

toetag

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. ]>

rosali

Snippet of hMailServer documentation:

QuotePotential 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

toetag

Quote from: rosali;22878Snippet 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. ]>

vtzan

Quote from: skaero;22782Does 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?