2 weeks ago i replaced my ispconfig server. So i installed an new server folowing: http://www.howtoforge.com/perfect-server-ubuntu8.04-lts And after that i backuped and restored the ispconfig database. After that i had to modify some custom files and all is ok. But now i have a problem with reading email from squirrelmail. All reading is ok but when i open mij inbox (4000 messages) IMAPD hits 100& cpu. So i started to trace the pid op imapd strace -p 17222 And it seems that courier reads al files in the cur directory every time i open the inbox in squirrel. I didn`t see this issue using my old server. What is wrong with courier ?
Partial trace file: munmap(0xb7f58000, 4096) = 0 stat64("./cur/1238805982.M371587P16172V0000000000006803I0041C26A_145.home.server.local,S=4772:2,S", {st_mode=S_IFREG|0600, st_size=4772, ...}) = 0 readlink("./cur/1238805982.M371587P16172V0000000000006803I0041C26A_145.home.server.local,S=4772:2,S", 0x8191230, 256) = -1 EINVAL (Invalid argument) open("./cur/1238805982.M371587P16172V0000000000006803I0041C26A_145.home.server.local,S=4772:2,S", O_RDONLY|O_NONBLOCK) = 6 fcntl64(6, F_SETFL, O_RDONLY) = 0 fstat64(6, {st_mode=S_IFREG|0600, st_size=4772, ...}) = 0 lstat64("./cur/1238805982.M371587P16172V0000000000006803I0041C26A_145.home.server.local,S=4772:2,S", {st_mode=S_IFREG|0600, st_size=4772, ...}) = 0 fcntl64(6, F_GETFL) = 0 (flags O_RDONLY) fstat64(6, {st_mode=S_IFREG|0600, st_size=4772, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f58000 _llseek(6, 0, [0], SEEK_CUR) = 0 _llseek(6, 0, [0], SEEK_SET) = 0 lseek(6, 0, SEEK_CUR) = 0 lseek(6, 0, SEEK_SET) = 0 read(6, "Return-Path: <[email protected]"..., 8192) = 4772 read(6, "", 8192) = 0 lseek(6, 0, SEEK_SET) = 0 fstat64(6, {st_mode=S_IFREG|0600, st_size=4772, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 _llseek(6, 0, [0], SEEK_SET) = 0 read(6, "Return-Path: <[email protected]"..., 4096) = 4096 time(NULL) = 1238810367 write(1, "UID 5073 RFC822.SIZE 8268 INTERN"..., 2952) = 2952 time(NULL) = 1238810367 time(NULL) = 1238810367 select(1, [0], NULL, NULL, {1800, 0}) = 1 (in [0], left {1795, 660000}) read(0, "C64 EXAMINE \"\"\r\n", 8192) = 16 brk(0x81f9000) = 0x81f9000 time(NULL) = 1238810371 write(1, "C64 NO Mailbox does not exist, o"..., 58) = 58 time(NULL) = 1238810371 time(NULL) = 1238810371 select(1, [0], NULL, NULL, {1800, 0}
In the user.pref file of squirrel there was a option sort=0 this option slowed down the index, because it will sort all mail in the inbox folder, not sure wich plugin set this option.... No placed: #sort=0 and the problem is solved...