[Dovecot] dovecot freezes when trying to get mail from maildir with mail

Timo Sirainen tss at iki.fi
Tue Feb 21 02:27:28 EET 2012


On 19.2.2012, at 14.53, postmaster wrote:

> Feb 19 11:52:20 4604ds1-ynoe dovecot[443]: auth-worker: Debug: sql(abuse at mathiesen.info,127.0.0.1): SELECT  5000 AS uid , 5000 AS gid , concat ( '/Volumes/BrugerData/PostFix/mail/' , maildir ) AS home , concat ( '/Volumes/BrugerData/PostFix/mail/' , maildir ) AS mail FROM mailbox WHERE username = 'abuse at mathiesen.info' AND domain = 'mathiesen.info' AND active = 1

Probably won't help with your problem, but it's better if you don't fetch "mail" field. Just fetch the home and set:

mail_location = maildir:~/

This avoids maildir autodetection.

> a list "" *
> * LIST (\HasNoChildren) "." "INBOX"
> a OK List completed.
> a select inbox
> Connection closed by foreign host.
> 4604ds1-ynoe:~ root#

You mean the session hangs here until it's killed? Try attaching gdb into it:

gdb -p <pid of imap session>
bt full

or alternatively try:

gdb --args /usr/local/libexec/dovecot/imap -u user at domain
run
a select inbox
<ctrl-c>
bt full

> # OS: Darwin 10.8.0 i386  hfs

With HFS+ it's a good idea to set maildir_copy_with_hardlinks=no


More information about the dovecot mailing list