Qmail will not maintain connection.

Posted on 2005-04-14
Last Modified: 2010-04-20
We have a Qmail server here and it used to autmotically push messages to all IMAP users, but as of 2 nights a go, this feature has stopped our Mac users and our Support System are no longer receiving messages and they must click on Send/Receive to get their messages. On the Macs there's an option to maintain connections and the issue is fixed there, but our Support System doesn't have that feature and the Qmail server must push messages to it. Does anyone know what that feature is called or how to re enable it?

Question by:jumper4000
    LVL 7

    Accepted Solution


    It sounds to me like qmail is not "pushing" messages, but is simply delivering to the Maildir folders for each user.  The IMAP daemon is the component that is going to handle any announcement to the users.

    Chances are your FAM daemon died and is no longer running.  If you look at your mail logs (check /var/log/mail, /var/log/maillog, /var/log/messages) you'll see a number of errors about "FAM monitoring unavailable" or similar.  You may be able to restart FAM with an init script, e.g. "/etc/rc.d/init.d/fam restart" (may be famd vs. fam), or it may be called from xinetd in which case xinetd is probably dead or having problems.

    Author Comment

    Well there was something in init.d called imapd and once i started that everything started working. But Thanks for your help. I'll acceept the answer.
    LVL 7

    Expert Comment

    If IMAP wasn't running at all, then your Mac clients must've been falling back to POP3.  This is an unusual but convenient feature.

    For RedHat, you may wish to "chkconfig --list imapd"; use the command "/sbin/runlevel" to determine your current runlevel (second number is current, first number is previous).  The current runlevel should show an ON status for imapd.  E.g.:

    imapd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

    This would mean that imapd will turn on in runlevels 2, 3, 4 and 5.  If your current runlevel is any of those, you're fine.  Standard runlevels are 3 and 5 for network-enabled systems.

    If it shows as being on, but stopped working, this indicates the IMAP daemon crashed.  There may be clues about why in the logs... try:
    grep imapd /var/log/* | grep -v -e Login -e Logout -e "imap service init"

    That may yield an error message which would indicate what failed.  If the problem occurs again in the future, a more thorough investigation is warranted, and upgrading imapd as a corrective measure.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now