Trans-IX B.V.
Verified User
Dear Support,
We are struggling with multiple IMAP connections for a long time and now we have decided to post our problem here on the forum. IMAP works perfect but we get 'Killed (lost mailbox lock)' errors when an IMAP mailbox is being used from multiple IP addresses. Also the user is getting the well known error message in his Outlook (see attachment).
In this example we are using a fresh install of Direct Admin on CentOS 5.x (32-bit) with xinetd installed. But we are also experiencing this problem on our other Direct Admin servers.
The following errors are being logged in the /var/log/maillog :
I found the following configuration files for xinetd and imap:
/etc/xinetd.conf
/usr/local/directadmin/scripts/imapd.sh
The following 2 files have the same configuration:
/usr/local/directadmin/data/templates/imap
/etc/xinetd.d/imap
Is there a way to get rid of these lost mailbox lock errors so that our users can use IMAP in a normal way?
If you need more information, please feel free to ask.
Thanks in advance!
We are struggling with multiple IMAP connections for a long time and now we have decided to post our problem here on the forum. IMAP works perfect but we get 'Killed (lost mailbox lock)' errors when an IMAP mailbox is being used from multiple IP addresses. Also the user is getting the well known error message in his Outlook (see attachment).
In this example we are using a fresh install of Direct Admin on CentOS 5.x (32-bit) with xinetd installed. But we are also experiencing this problem on our other Direct Admin servers.
The following errors are being logged in the /var/log/maillog :
Oct 14 11:25:37 web01 imapd[18765]: Killed (lost mailbox lock) [email protected] host=em1x-37.lhr.messaging.nokia.com [131.228.18.37]
Oct 14 11:26:15 web01 imapd[19151]: Killed (lost mailbox lock) [email protected] host=5ED4FBE.cm-7-5d.dynamic.ziggo.nl [94.212.25.22]
Oct 14 11:27:01 web01 imapd[19160]: Killed (lost mailbox lock) [email protected] host=em1x-71.lhr.messaging.nokia.com [131.228.18.71]
Oct 14 11:27:42 web01 imapd[19173]: Killed (lost mailbox lock) [email protected] host=5ED4FBE.cm-7-5d.dynamic.ziggo.nl [94.212.25.22]
Oct 14 11:28:07 web01 imapd[19179]: Killed (lost mailbox lock) [email protected] host=em1x-90.lhr.messaging.nokia.com [131.228.18.90]
Oct 14 11:28:52 web01 imapd[19193]: Killed (lost mailbox lock) [email protected] host=5ED4FBE.cm-7-5d.dynamic.ziggo.nl [94.212.25.22]
I found the following configuration files for xinetd and imap:
/etc/xinetd.conf
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
/usr/local/directadmin/scripts/imapd.sh
#!/bin/sh
DA_PATH=/usr/local/directadmin
FILE=${DA_PATH}/scripts/packages/imapd
DEST=/usr/sbin/imapd
INET=${DA_PATH}/data/templates/imap
if [ ! -e $FILE ]; then
echo "Unable to find: $FILE";
exit 1;
fi
if [ ! -e $INET ]; then
echo "Unable to find: $INET";
exit 2;
fi
/bin/cp -f $FILE $DEST
/bin/chmod 755 $DEST
/bin/chown root:root $DEST
/bin/cp -f $INET /etc/xinetd.d/imap
#up the limit.
perl -pi -e 's/instances\s+= 60/instances = 256/' /etc/xinetd.conf
/sbin/service xinetd restart
exit 0;
The following 2 files have the same configuration:
/usr/local/directadmin/data/templates/imap
/etc/xinetd.d/imap
# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
#log_on_success += DURATION USERID
#log_on_failure += USERID
nice = 10
}
Is there a way to get rid of these lost mailbox lock errors so that our users can use IMAP in a normal way?
If you need more information, please feel free to ask.
Thanks in advance!