IMAPD : authentication error: Input/output error

Bonjour,

ma conf:
debian 4.0 2.6.18-4-amd64
courier-imap VERSION: $Id: imapd.dist.in,v 1.38 2006/02/24
postfix mail_version = 2.3.8
auth par db postgresql
clients horde3, horde4, outlook, mobiles
~300 utilisateurs, 450G de mails

Ce serveur a toujours bien fonctionné, mais depuis quelques jours,
par intermitances, le serveur messagerie freeze completement et le seul moyen d’y remedier (que j’ai trouvé) est de restart authdaemon

voici ce que donne un ps aux | grep imap:

root     21090  0.0  0.0   3876   420 ?        S    Oct01   0:03 /usr/sbin/courierlogger -pid=/var/run/courier/imapd.pid -start -name=imapd /usr/sbin/couriertcpd -address=0 -maxprocs=200 -maxperip=100 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     21091  0.0  0.0   6024   628 ?        S    Oct01   0:07 /usr/sbin/couriertcpd -address=0 -maxprocs=200 -maxperip=100 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     24469  0.0  0.0   3880   424 ?        S    Oct01   0:00 /usr/sbin/courierlogger -pid=/var/run/courier/imapd-ssl.pid -start -name=imapd-ssl /usr/sbin/couriertcpd -address=0 -maxprocs=200 -maxperip=100 -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     24470  0.0  0.0   6028   628 ?        S    Oct01   0:00 /usr/sbin/couriertcpd -address=0 -maxprocs=200 -maxperip=100 -nodnslookup -noidentlookup 993 /usr/bin/couriertls -server -tcpd /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
1701     15596  0.0  0.0  14080  1520 ?        S    11:10   0:00 /usr/bin/imapd mail
1256     15967  0.0  0.0  15108  1560 ?        S    11:10   0:00 /usr/bin/imapd mail
1734     16575  0.2  0.0  15108  2636 ?        S    11:11   0:00 /usr/bin/imapd mail
1556     16890  2.3  0.0  18560  6168 ?        S    11:12   0:04 /usr/bin/imapd mail
1724     17688  0.2  0.0  14472  1992 ?        S    11:13   0:00 /usr/bin/imapd mail
1637     17747  0.4  0.0  15508  3064 ?        S    11:13   0:00 /usr/bin/imapd mail
1730     17831  0.3  0.0  15280  2824 ?        S    11:13   0:00 /usr/bin/imapd mail
root     19109  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
1761     17833  0.0  0.0  14080  1572 ?        S    11:13   0:00 /usr/bin/imapd mail
1724     18322  1.0  0.0  15240  1820 ?        S    11:14   0:00 /usr/bin/imapd mail
1309     18448  1.0  0.0  17436  4708 ?        S    11:14   0:00 /usr/bin/imapd mail
1560     18458  0.0  0.0  14084  1576 ?        S    11:14   0:00 /usr/bin/imapd mail
1341     18460  0.0  0.0  15104  1608 ?        S    11:14   0:00 /usr/bin/imapd mail
root     19109  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
1100     18474  0.0  0.0  14436  1940 ?        S    11:14   0:00 /usr/bin/imapd mail
root     19110  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     19111  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     19112  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     19113  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     19114  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir
root     19115  0.0  0.0   6008   540 ?        S    11:15   0:00 /usr/lib/courier/courier/imaplogin /usr/bin/imapd Maildir

et les processus imaplogin restent presents 1 min, puis sont tués mais ont “l’air” d’être remplacés immédiatement.

mail.err:

14:58:42 localhost courierpop3login: authentication error: Input/output error Oct 1 14:58:49 localhost imapd: authentication error: Input/output error Oct 1 14:59:25 localhost last message repeated 12 times Oct 1 15:00:26 localhost last message repeated 20 times Oct 1 15:01:29 localhost last message repeated 15 times Oct 1 15:02:30 localhost last message repeated 35 times Oct 1 15:03:10 localhost last message repeated 117 times Oct 1 15:04:31 localhost last message repeated 8 times Oct 1 15:05:23 localhost last message repeated 10 times Oct 1 15:06:31 localhost last message repeated 11 times Oct 1 15:07:23 localhost last message repeated 6 times
(sans plus d’explications)

conf imapd

ADDRESS=0 PORT=143 MAXDAEMONS=200 MAXPERIP=100 PIDFILE=/var/run/courier/imapd.pid TCPDOPTS="-nodnslookup -noidentlookup" LOGGEROPTS="-name=imapd" IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE" IMAP_KEYWORDS=1 IMAP_ACL=1 IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 AUTH=CRAM-SHA256 IDLE" IMAP_PROXY=0 IMAP_PROXY_FOREIGN=0 IMAP_IDLE_TIMEOUT=60 IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN" IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN" IMAP_DISABLETHREADSORT=0 IMAP_CHECK_ALL_FOLDERS=0 IMAP_OBSOLETE_CLIENT=0 IMAP_UMASK=022 IMAP_ULIMITD=65536 IMAP_USELOCKS=1 IMAP_SHAREDINDEXFILE=/etc/courier/shared/index IMAP_ENHANCEDIDLE=0 IMAP_TRASHFOLDERNAME=Trash IMAP_EMPTYTRASH=Trash:7 IMAP_MOVE_EXPUNGE_TO_TRASH=0 SENDMAIL=/usr/sbin/sendmail HEADERFROM=X-IMAP-Sender IMAPDSTART=YES MAILDIRPATH=Maildir

Si quelqu’un a une piste, ou une solution car je suis completement perdu là,
j’ai ecumé google jusqu’aux pages en russe et chinois,
je ne sais même plus quoi chercher…

si besoin je poste d’autres logs ou confs

Salut,
Dans mon cas il fallait que j’ajoute le column homedir dans la table mysql utilisée pour l’authentification.