LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-01-2009, 10:13 AM   #1
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, FC, Ubuntu
Posts: 115

Rep: Reputation: 17
Webmail connections dropped by imap server (new thread)


Hi. For clarity, I'm closing a similar, related thread of mine and starting this one, which eliminates some info I now know is misleading.

I've got a mailserver running RHEL 4 (kernel 2.6.9-78.0.17) and SquirrelMail version 1.4.8-5.el4_8.5.

Infrequently some users complain that when they try to connect to webmail
they get "connection dropped by IMAP server". This got way out of control last week when it went from rare to about 90% of the time. Dell had just had me install their OpenManage software to fix another problem, and I noticed it installed and started a ton of new services which made the server much slower to reboot. I hunted down and turned them all off and the SEVERE problem has vanished. No drops since. But I've put this on the "front burner" now, looking to change this from a rare problem to eliminating it altogether.

I'm at a loss as to how to troubleshoot this though. /var/log messages never has anything besides routine messages when it happens. /var/log/maillog shows nothing different as well. There is no "imap.log" or anything else mail-related in /var/log. And the http access and error logs (and the ssl equivalents of both) showed nothing out of the ordinary either.

Anyone had this problem and have some advice? What's the best way to attack this?


- Van
 
Old 06-01-2009, 01:34 PM   #2
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 63

Rep: Reputation: 16
Check the server and see if you are running dovecot:

rpm -qa | grep dove

If so try rpm -qc dovecot and look at the configuration file for logging and settings
should be /etc/dovecot.conf.

The file is pretty straight forward.

Hope this helps
 
Old 06-02-2009, 10:04 AM   #3
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, FC, Ubuntu
Posts: 115

Original Poster
Rep: Reputation: 17
Your instructions are quite clear and work fine, but I'm not sure if they're applicable.

Yes, Dovecot's on the server and I found the configuration files, but does that mean it's my actual running imap server? I don't see it running with the ps command. If it's not running, adjusting its config files won't do a thing.

I know that xinetd is handling imap and in xinetd.d I see it's using /usr/sbin/imapd to do that, which I also never see running if I use PS. Why? How can I?

FWIW, I ran rpm -qa | grep imap and come up with cyrus-imapd-utils-2.2.12-9.RHEL4 and imap-2002d-12, but am not sure if either is my imap server.
 
Old 06-02-2009, 10:34 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
# netstat -antp | grep imap (to check imap listners available)
# telnet your-server 143 (to check your actual imap listening server)

if you are using dovecot
# cat /etc/dovecot.conf
 
Old 06-02-2009, 10:45 AM   #5
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, FC, Ubuntu
Posts: 115

Original Poster
Rep: Reputation: 17
While working on an unrelated issue I found something that helped me find that my imap server, /usr/sbin/imapd, is part of the imap-2002d-12 package and the config file I ironically had already found at /etc/xinetd.d/imap apparently is IT. There's nothing else.

Code:
# default: off
# description: The IMAP service allows remote users to access their mail using \
#              an IMAP client such as Mutt, Pine, fetchmail, or Netscape \
#              Communicator.
service imap
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/imapd
        log_on_success  += HOST DURATION
        log_on_failure  += HOST
}
So that's pretty sparse. Nothing much to play with. Where do I go from here? Are there other options that simply aren't listed that I could include?
 
Old 06-02-2009, 11:12 AM   #6
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
I was going to be happy if you had followed my troubleshooting logic, esp the first two commands (sorry I do it in steps and usually i dont like to 'break' my sequency)
 
Old 06-02-2009, 11:19 AM   #7
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 63

Rep: Reputation: 16
The netstat will definately give you the info

I don't know if this will help but you can run rpm -qc imap-2002d-12 to find the config file for the imap daemon. This may give you a place to start.

If xinet.d is running the daemon then you can configure some settings it in xinetd too
 
Old 06-02-2009, 12:01 PM   #8
Vanyel
Member
 
Registered: Jul 2007
Location: NY, NY
Distribution: RHEL, CentOS, FC, Ubuntu
Posts: 115

Original Poster
Rep: Reputation: 17
BENNY,

Here's the output of your commands -

Code:
[root@server ~]# netstat -antp | grep imap
tcp        0      0 127.0.0.1:143               127.0.0.1:51012             ESTABLISHED 30665/imapd         

root@server ~]# telnet 127.0.0.1 143  
(note:I do not allow telnet from outside of the server)
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] localhost.localdomain IMAP4rev1 2003.338rh at Tue, 2 Jun 2009 12:28:07 -0400 (EDT)
Does that say anything that helps?
As you know, Dovecot is not involved.


BATTLEROLL,

I did run that rpm command. That's how I found that /etc/xinetd.d/imap is the config file. Actually, I got all of these

Code:
/etc/pam.d/imap
/etc/pam.d/pop
/etc/xinetd.d/imap
/etc/xinetd.d/imaps
/etc/xinetd.d/ipop2
/etc/xinetd.d/ipop3
/etc/xinetd.d/pop3s
but the others have nothing relevant to this.
 
Old 06-02-2009, 12:35 PM   #9
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Quote:
@Vanyel:
tcp 0 0 127.0.0.1:143 127.0.0.1:51012 ESTABLISHED 30665/imapd
Your imap server is only listening on the lo interface why???
I thing your imap server is not configured correctly.
Quote:
# telnet 127.0.0.1 143
this isn't it, you should have used 'real' ip address of your server or its hostname.
i.e.
Quote:
# telnet ip.add.re.ss 143
from another server, where ip.add.re.ss is the ip address of your imap server eg. 10.1.1.* or 192.168.*.* etc

do:
Quote:
# updatedb && locate imap*.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Connection dropped by IMAP server ravin Red Hat 1 08-31-2008 12:46 AM
ERROR: Connection dropped by IMAP server satimis Linux - Server 2 02-14-2008 11:00 PM
Connection Dropped by IMAP Server Chiragrs Linux - Networking 2 05-14-2007 03:36 PM
Connection dropped by imap-server max_tcs Linux - Software 0 03-29-2005 01:05 PM
Squirrelmail: Connection dropped by imap-server debuser Debian 2 11-23-2004 05:10 AM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration