QMail-ToasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

QMail-Toaster:Bug reports

From QMail-Toaster

Symptom
1. Error in squirrelmail:
ERROR
Error connecting to IMAP server: localhost.
111 : Connection refused

2. Received constant stream of errors in /var/log/qmail/imap4/current log:
tcpserver: fatal: unable to figure out port number for /usr/sbin/imaplogin

3. qmailctl stat shows imap not running:
authlib: up (pid 2339) 13653 seconds
clamd: up (pid 2367) 13653 seconds
imap4: up (pid 21165) 0 seconds
imap4-ssl: up (pid 22170) 0 seconds
pop3: up (pid 2371) 13653 seconds
pop3-ssl: up (pid 22171) 0 seconds
send: up (pid 2363) 13653 seconds
smtp: up (pid 2341) 13653 seconds
spamd: up (pid 2347) 13653 seconds
submission: up (pid 2393) 13652 seconds
authlib/log: up (pid 2361) 13653 seconds
clamd/log: up (pid 2403) 13652 seconds
imap4/log: up (pid 2343) 13653 seconds
imap4-ssl/log: up (pid 2414) 13652 seconds
pop3/log: up (pid 2348) 13653 seconds
pop3-ssl/log: up (pid 2346) 13653 seconds
send/log: up (pid 2365) 13653 seconds
smtp/log: up (pid 2342) 13653 seconds
spamd/log: up (pid 2351) 13653 seconds
submission/log: up (pid 2356) 13653 seconds

4. Abnormally high load on server. Load average was over 0.5 with no user, no mail, no web traffic. Should have been well under 0.10.

The Fix
Isolated problem down to the tcpserver parameters are not correct. These are specified in /var/qmail/supervise/imap4/run, which looks like this:
"#!/bin/sh

HOSTNAME=`hostname --fqdn`
rm -rf ./env/*;

cat /etc/courier/imapd | /usr/bin/envconv
exec /usr/bin/envdir ./env/ \
/usr/bin/softlimit -m 9000000 \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME 0 143 \
/usr/sbin/imaplogin \
/usr/bin/imapd Maildir 2>&1

This mod (deleting the '-l $HOSTNAME') brings imap up:
'#!/bin/sh

HOSTNAME=`hostname --fqdn`
rm -rf ./env/*;

cat /etc/courier/imapd | /usr/bin/envconv
exec /usr/bin/envdir ./env/ \
/usr/bin/softlimit -m 9000000 \
/usr/bin/tcpserver -v -R -H 0 143 \
/usr/sbin/imaplogin \
/usr/bin/imapd Maildir 2>&1


The same fix addresses imap-ssl and pop3-ssl . . .
cd /var/qmail/supervise/imap4
cp -p run run.orig
sed -e "s/ -l \$HOSTNAME//g" run.orig > run

cd /var/qmail/supervise/imap4-ssl
cp -p run run.orig
sed -e "s/ -l \$HOSTNAME//g" run.orig > run

cd /var/qmail/supervise/pop3-ssl
cp -p run run.orig
sed -e "s/ -l \$HOSTNAME//g" run.orig > run

George Toft

Retrieved from "http://wiki.qmailtoaster.com/index.php/QMail-Toaster:Bug_reports"

This page has been accessed 1,728 times. This page was last modified 13:28, 8 July 2007. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...