Imap and php on server

firejake

Verified User
Joined
May 4, 2011
Messages
56
Hello! I wiil be install imap-2007e and recompile php (./build php) on two servers. And in results, i have problem on 2th server.

When i run test php-script on server`s:
On 1th server:
Code:
AUTHENTICATIONFAILED
(so ok)

On 2th Server:
Code:
Error opening mailbox: Unable to create selectable TCP socket (2182 >= 1024)

Firewall do not block connecting, in sysctl i not found such restrictions.

Tell me where the error is possible?


OS: centos 5.6
Kernel:
1th server: 2.6.18-238.12.1.el5 from repos
2th server: 2.6.37.2, installed manually (config some as on 1th server).
 
2th and 1th...jajaj

Unable to create selectable TCP socket (2182 >= 1024)
 
Wonderful answer, the main information. What exactly to look for? And where. Regarding Google's go and look for private information onto, nothing intelligent will not find it.
 
I have no any guess, and have nothing to suggest accept asking Google with "Error opening mailbox: Unable to create selectable TCP socket" (Sorry, but I won't spent my time to teach anybody how to use Google). But I'm sure, if I have root access, I would solve the problem. Even if it would take more time, than I think. As I've never seen this error before, I won't give you any guide.

So, you don't give enough information. What's your PHP versions? How did you install imap-2007e? What's there in your test php script? What's there in your iptables rules? And so on.

Did you try to run your php script with full error_reporting

Code:
error_reporting(E_ALL)

? Without @ mark before function names?
 
You read what I found Google? I know how to Use Google, teach me not to.
If you would read the error did not even ask me about Iptables or ERROR_REPORTING. New soked life can not set up as exceeded a limit (1024), which in apache/php/imap-2007e does not exist.
Ulimit, Kernel anything about it, too, do not know.
 
I did not get any answer on my question from you. So, I'm going outta here. None doctor would ever help anybody, if one wants to tech doctor how to treat patients.
 
If you do not know the answer to my question is, what the hell do you write? And yet, treat yourself.
 
Hello! I wiil be install imap-2007e and recompile php (./build php) on two servers. And in results, i have problem on 2th server.
If you're running DirectAdmin you shouldn't be using imap-2007e, but rather Dovecot. If you're not using DirectAdmin you're definitely on the wrong forum.

Jeff
 
My reply was meant to be informative and not confrontational. I'm sorry if it appeared otherwise. You can add IMAP functionality to PHP and use it with the Dovecot IMAP server you should be using on your DirectAdmin servers.

If you're not using Dovecot on your servers you should continue doing so; most of us have moved to Dovecot some time ago; because it uses Maildir instead of mbox, it's much more efficient in handling larger mailboxes, which people using IMAP are more likely to have.

Jeff
 
I can not understand what role plays dovecot to create a bridge between PHP and IMAP? How to remove a limit of 1024 connections?
Where is the limit specified?
 
Dovecot and imap-2007e are both IMAP servers. DirectAdmin works well with Dovecot. That was my only point. I'm not a PHP programmer, nor do I play one on television (but I do hire them as required), so other questions will need to be answered by others.

Jeff
 
I do not understand how to relate to my problem your messages. I do not PHP programmer, but I know that is the problem with the server.
 
imap-2007e is needed for php to link to the libc-client (or something similar), this provides the imap_* functions in php. It has nothing to do with the server it is connecting to, it just provides the framework to connect, send/receive commands and communicate with an RFC compliant IMAP server.

What you are hitting is actually a bug in the uw-imap code, they are using a hard coded max value (required by select()) instead of using the dynamic value of allowed open sockets. See this link on a discussion of the bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478193

I don't see it getting fixed any time real soon, the select() function calls would have to be changed to use something like poll(), which may require a re-architecting.
 
I watched the bugtracker, this is the first link in Google. Why am I writing here, because there is no solution to the problem description on the site.
 
Back
Top