IMAP error with SquirrelMail Alternate SM Mod

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

IMAP error with SquirrelMail Alternate SM Mod

Post by Julien@TLD » 2005-09-19 19:17

Hello, it's yet me Martin :)

IIS 6.0 + PHP 5.0.5 + MySQL 4.1.14 + hMailServer 4.1 build 136

I just installed SquirrelMail (Alternate SM Mod) but I obtain an error when I want to login in SquirrelMail :

ERROR:
ERROR: Connection dropped by IMAP server.

IMAP Server is enabled and I can telnet it on the port 143.
I enabled IUSR user to write in the data directory.
I modifiy the following options in the config.php file :

$domain = 'my_domain';
$smtpServerAddress = 'the_public_ip_of_my_server';
$imapServerAddress = 'the_public_ip_of_my_server';

I read the original post (http://www.hmailserver.com/forum/viewtopic.php?t=1657) but I see nothing else to modify in this config file.

Anybody have an idea about my problem and the solution?
Thanks.

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-19 20:10

Why are you using the public IP? If you're in a LAN and hMailServer is running on one computer and Apache/PHPWebAdmin on another, you should enter the "internal Lan-IP" of the SMTP/IMAP server, not the public IP.

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-20 13:19

I am not on a LAN. The server is present on the web with a public IP only. This server is also a public web server with IIS 6.0.
An idea about this IMAP error?

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-20 22:05

The message simply means that the connection to the IMAP server was closed.

I suggest you do the following:
1) Turn on TCP/IP, Debug and IMAP logging.
2) Try to log on.
3) Post the log here.

This is probably an IIS6/PHP/session/cookie setup problem, but it's hard to say without the log.

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-21 15:20

I activated IMAP, TCP/Ip and DEBUG logging but now in the log file I see noting concerning my IMAP error with SquirrelMail Alternate SM Mod. I am going to install the official SquirrelMail distribution to see if it's run fine...

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-21 20:04

Alright. As I said, it's hard to say without the log. Do you know enough about the IMAP protocol to say it does not contain anything useful?

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-22 18:11

I tried the official SquirrelMail 1.4.5 distribution and I obtain the same error:

ERROR: Connection dropped by IMAP server.

In the log I do not see any reference to the IMAP server. Strange! the IMAP server is well activated. It is perhaps linked to my MySQL connection problem...

cmurphy54
Senior user
Senior user
Posts: 550
Joined: 2004-09-25 22:11
Location: Atlanta, GA
Contact:

Post by cmurphy54 » 2005-09-22 18:17

IMAP Server is enabled and I can telnet it on the port 143.
When you say you can telnet to it, you are testing from your webmail server? What do you see in the logs when you do that?

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-22 18:29

Yes I telnet the IMAP server on the same machine. In fact I am not sure that telneting the IMAP server function. When I try "telnet xxx.xxx.xxx.xxx 143", the screen of the cli window becomes blank and after a few seconds it's return on the "C:\>" prompt. Nothing yet in the logs :(

cmurphy54
Senior user
Senior user
Posts: 550
Joined: 2004-09-25 22:11
Location: Atlanta, GA
Contact:

Post by cmurphy54 » 2005-09-22 18:40

Then it isn't working and likely isn't an issue with hMailServer. It is probably a firewall or a router issue on one of your two boxes.

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-22 18:52

I telnet the IMAP server from the same PC where is installed hMailServer, so I think it's not a firewall problem. Pinging the IP address on which the IMAP server is listening works fine. Perhaps hMailServer 4.2 solves a similar problem Martin?
Thanks.

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-22 18:57

No, there's no such issues that are solved in 4.2. Considering you're the only one with the problem, I really doubt it's an hMailServer bug...

Have you done any modifications to the IP ranges? Or to the "maximum number of simultaneous IMAP connctions"? Does it work if you use another IMAP client? Does anything happen when you telnet the SMTP port (25) or POP3 port (110)?

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-22 19:32

I am so stupid :D
IMAP was not selected in the IP range. I do not remember there was an IMAP item in the IP range. Now I can log in well to SquirrelMail. Just a note, the Inbox page stay blank whereas I have emails inbox. There is just written:

Current Folder: INBOX Sign Out
Compose Addresses Folders Options Search Help Calendar

And nothing under that. An idea?

Sorry yet for my IMAP error and thanks you Martin to put me on the road!

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-22 19:38

What do you mean with "and nothing under that?" "Nothing at all", or "only some irrelevant parts that I don't think anyone cares about"? :)

No "toggle all" link or any buttons at all? Again, this isn't an hMailServer error. If there's nothing at all more, it's probably your PHP installation. You should turn on notices in php.ini to track the error. Also, make sure you're using a PHP version supported by SquirrelMail..

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-27 12:42

Hello,

Passed a great week-end?
Finaly, I activated the PHP errors and in effect the page display an error under the Squirrelmail header :

Fatal error: Only variables can be passed by reference in D:\www\hms_squirrelmail\functions\imap_messages.php on line 480

I use PHP 5.0.5 but on the Alternate SM Mod topic, I can see: "PHP 5 is now supported". What do you think about this PHP error? I precise that if the Inbox folder is empty, the error do not appears.

Thanks

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2005-09-27 15:04


Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Post by Julien@TLD » 2005-09-27 16:37

Ok, it's a PHP codding bug so. Thanks for the info martin. I am going to apply the patch.

Post Reply