That is because HTTP is a stateless protocol, there is no way for a web
server to maintain a connection to the IMAP server.  I would suggest you
look into IMAPProxy.org (up-imapproxy), it caches the connections so you
don't get an authentication hit every time you navigate your email.

-------------------------
Brian Taber
Owner/IT Specialist
Diverse Computer Group
Office: 774-206-5592
Cell: 508-496-9221
[EMAIL PROTECTED]

> Hello,
>
> We are using courier-imap with squirrelmail as our mail client.  We are
getting a bunch of the following in our logs:
>
> Jun  5 10:49:36 mail imapd: DISCONNECTED, [EMAIL PROTECTED],
ip=[127.0.0.1], headers=0, body=1224, time=1
>
> I am not sure if this is a problem with courier-imap or squirrelmail or
if this is a problem at all since there has been no user complaints.
Still, I would like to find our why.  Any ideas?  Strace output is
below.  Perhaps it will help.
>
> I have tried increasing MAXPERIP setting but it doesn't help.
>
> Thank you.
> Eray
>
>
>
> mail ~ # strace -F -f -p <pid>
> <snip>
> [pid 32134] write(1, "A001 OK LOGIN Ok.\r\n", 19) = 19
> [pid 32134] write(2, "INFO: LOGIN, [EMAIL PROTECTED]"..., 71) = 71
> [pid 32134] rt_sigaction(SIGTERM, {0x8060a30, [TERM], SA_RESTART},
{SIG_DFL}, 8) = 0
> [pid 32134] rt_sigaction(SIGHUP, {0x8060a30, [HUP], SA_RESTART},
{SIG_DFL}, 8) = 0
> [pid 32134] rt_sigaction(SIGINT, {0x8060a30, [INT], SA_RESTART},
{SIG_DFL}, 8) = 0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(1, [0], NULL, NULL, {1800, 0}) = 1 (in [0], left
{1800, 0})
> [pid 32134] read(0, "A002 SELECT \"INBOX\"\r\n", 8192) = 21
> [pid 32134] access("./.", F_OK)         = 0
> [pid 32134] open("././courierimapacl", O_RDONLY) = -1 ENOENT (No such
file or directory)
> [pid 32134] getcwd("/home/vmail/zeplin.net/UserA/.maildir", 4095) = 43
[pid 32134] gettimeofday({1149493775, 964208}, NULL) = 0
> [pid 32134] getpid()                    = 32134
> [pid 32134] stat64("./tmp/1149493775.M964208P32134_courierlock.mail",
0xbf836c9c) = -1 ENOENT (No such file or directory)
> [pid 32134] open("./tmp/1149493775.M964208P32134_courierlock.mail",
O_RDWR|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 4
> [pid 32134] fcntl64(4, F_SETFL, O_RDONLY) = 0
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid
32134] lstat64("./tmp/1149493775.M964208P32134_courierlock.mail",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] uname({sys="Linux", node="mail", ...}) = 0
> [pid 32134] open("./tmp/1149493775.M964208P32134_courierlock.mail",
O_RDWR|O_CREAT, 0644) = 4
> [pid 32134] write(4, "32134:mail", 10)  = 10
> [pid 32134] close(4)                    = 0
> [pid 32134] link("./tmp/1149493775.M964208P32134_courierlock.mail",
"./tmp/courier.lock") = 0
> [pid 32134] stat64("./tmp/1149493775.M964208P32134_courierlock.mail",
{st_mode=S_IFREG|0644, st_size=10, ...}) = 0
> [pid 32134] unlink("./tmp/1149493775.M964208P32134_courierlock.mail") =
0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] open("./tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
4
> [pid 32134] fstat64(4, {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0 [pid
32134] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] getdents(4, /* 3 entries */, 131072) = 56
> [pid 32134] stat64("./tmp/courier.lock", {st_mode=S_IFREG|0644,
> st_size=10, ...}) = 0
> [pid 32134] getdents(4, /* 0 entries */, 131072) = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] gettimeofday({1149493775, 966507}, NULL) = 0
> [pid 32134] stat64("./tmp/1149493775.M966507P32134_imapuid_0.mail",
0xbf83624c) = -1 ENOENT (No such file or directory)
> [pid 32134] open("./tmp/1149493775.M966507P32134_imapuid_0.mail",
O_RDWR|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 4
> [pid 32134] fcntl64(4, F_SETFL, O_RDONLY) = 0
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid
32134] lstat64("./tmp/1149493775.M966507P32134_imapuid_0.mail",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] open("./courierimapuiddb", O_RDONLY) = 4
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=550, ...}) = 0
[pid 32134] mmap2(NULL, 131072, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddd000
> [pid 32134] read(4, "1 1133730712 738\n31 1134136763.V"..., 131072) =
550
> [pid 32134] read(4, "", 131072)         = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] munmap(0xb7ddd000, 131072)  = 0
> [pid 32134] open("./tmp/1149493775.M966507P32134_imapuid_0.mail",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
> [pid 32134] open("./cur", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
5
> [pid 32134] fstat64(5, {st_mode=S_IFDIR|0700, st_size=760, ...}) = 0
[pid 32134] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(5, /* 12 entries */, 131072) = 696
> [pid 32134] getdents(5, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(5)                    = 0
> [pid 32134] open("./new", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
5
> [pid 32134] fstat64(5, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 [pid
32134] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(5, /* 2 entries */, 131072) = 32
> [pid 32134] getdents(5, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(5)                    = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] unlink("./tmp/1149493775.M966507P32134_imapuid_0.mail") = 0
[pid 32134] time(NULL)                  = 1149493775
> [pid 32134] open("./courierimapkeywords/:list", O_RDONLY) = -1 ENOENT
(No such file or directory)
> [pid 32134] mkdir("./courierimapkeywords", 0700) = -1 EEXIST (File
exists)
> [pid 32134] stat64(".", {st_mode=S_IFDIR|0755, st_size=328, ...}) = 0
[pid 32134] chmod("./courierimapkeywords", 0755) = 0
> [pid 32134] open("./courierimapkeywords",
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
> [pid 32134] fstat64(4, {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0 [pid
32134] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(4, /* 2 entries */, 131072) = 32
> [pid 32134] getdents(4, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] unlink("./tmp/courier.lock") = 0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(2, NULL, [1], NULL, {60, 0}) = 1 (out [1], left {60, 0})
> [pid 32134] write(1, "* FLAGS (\\Draft \\Answered \\Flagg"..., 253) =
253
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(1, [0], NULL, NULL, {1800, 0}) = 1 (in [0], left
{1800, 0})
> [pid 32134] read(0, "A003 EXPUNGE\r\n", 8192) = 14
> [pid 32134] getcwd("/home/vmail/zeplin.net/UserA/.maildir", 4095) = 43
[pid 32134] gettimeofday({1149493775, 976721}, NULL) = 0
> [pid 32134] stat64("./tmp/1149493775.M976721P32134_courierlock.mail",
0xbf836bec) = -1 ENOENT (No such file or directory)
> [pid 32134] open("./tmp/1149493775.M976721P32134_courierlock.mail",
O_RDWR|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 4
> [pid 32134] fcntl64(4, F_SETFL, O_RDONLY) = 0
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid
32134] lstat64("./tmp/1149493775.M976721P32134_courierlock.mail",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] uname({sys="Linux", node="mail", ...}) = 0
> [pid 32134] open("./tmp/1149493775.M976721P32134_courierlock.mail",
O_RDWR|O_CREAT, 0644) = 4
> [pid 32134] write(4, "32134:mail", 10)  = 10
> [pid 32134] close(4)                    = 0
> [pid 32134] link("./tmp/1149493775.M976721P32134_courierlock.mail",
"./tmp/courier.lock") = 0
> [pid 32134] stat64("./tmp/1149493775.M976721P32134_courierlock.mail",
{st_mode=S_IFREG|0644, st_size=10, ...}) = 0
> [pid 32134] unlink("./tmp/1149493775.M976721P32134_courierlock.mail") =
0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] open("./tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
4
> [pid 32134] fstat64(4, {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0 [pid
32134] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(4, /* 3 entries */, 131072) = 56
> [pid 32134] stat64("./tmp/courier.lock", {st_mode=S_IFREG|0644,
> st_size=10, ...}) = 0
> [pid 32134] getdents(4, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] gettimeofday({1149493775, 979009}, NULL) = 0
> [pid 32134] stat64("./tmp/1149493775.M979009P32134_imapuid_1.mail",
0xbf83619c) = -1 ENOENT (No such file or directory)
> [pid 32134] open("./tmp/1149493775.M979009P32134_imapuid_1.mail",
O_RDWR|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 4
> [pid 32134] fcntl64(4, F_SETFL, O_RDONLY) = 0
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 [pid
32134] lstat64("./tmp/1149493775.M979009P32134_imapuid_1.mail",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] open("./courierimapuiddb", O_RDONLY) = 4
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0644, st_size=550, ...}) = 0
[pid 32134] mmap2(NULL, 131072, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddd000
> [pid 32134] read(4, "1 1133730712 738\n31 1134136763.V"..., 131072) =
550
> [pid 32134] read(4, "", 131072)         = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] munmap(0xb7ddd000, 131072)  = 0
> [pid 32134] open("./tmp/1149493775.M979009P32134_imapuid_1.mail",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
> [pid 32134] open("./cur", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
5
> [pid 32134] fstat64(5, {st_mode=S_IFDIR|0700, st_size=760, ...}) = 0
[pid 32134] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(5, /* 12 entries */, 131072) = 696
> [pid 32134] getdents(5, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(5)                    = 0
> [pid 32134] open("./new", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) =
5
> [pid 32134] fstat64(5, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0 [pid
32134] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(5, /* 2 entries */, 131072) = 32
> [pid 32134] getdents(5, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(5)                    = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] unlink("./tmp/1149493775.M979009P32134_imapuid_1.mail") = 0
[pid 32134] time(NULL)                  = 1149493775
> [pid 32134] open("./courierimapkeywords/:list", O_RDONLY) = -1 ENOENT
(No such file or directory)
> [pid 32134] mkdir("./courierimapkeywords", 0700) = -1 EEXIST (File
exists)
> [pid 32134] stat64(".", {st_mode=S_IFDIR|0755, st_size=328, ...}) = 0
[pid 32134] chmod("./courierimapkeywords", 0755) = 0
> [pid 32134] open("./courierimapkeywords",
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
> [pid 32134] fstat64(4, {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0 [pid
32134] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> [pid 32134] mmap2(NULL, 135168, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddc000
> [pid 32134] getdents(4, /* 2 entries */, 131072) = 32
> [pid 32134] getdents(4, /* 0 entries */, 131072) = 0
> [pid 32134] munmap(0xb7ddc000, 135168)  = 0
> [pid 32134] close(4)                    = 0
> [pid 32134] unlink("./tmp/courier.lock") = 0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(2, NULL, [1], NULL, {60, 0}) = 1 (out [1], left {60, 0})
> [pid 32134] write(1, "A003 OK EXPUNGE completed\r\n", 27) = 27
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(1, [0], NULL, NULL, {1800, 0}) = 1 (in [0], left
{1800, 0})
> [pid 32134] read(0, "A004 UID FETCH 737 BODY[1.2]\r\n", 8192) = 30 [pid
32134]
> stat64("./cur/1149493666.M628812P32114V000000000000FE01I00001C43_0.mail,S=3793:2,S",
{st_mode=S_IFREG|0600, st_size=3793, ...}) = 0
> [pid 32134]
> readlink("./cur/1149493666.M628812P32114V000000000000FE01I00001C43_0.mail,S=3793:2,S",
0x81869b0, 256) = -1 EINVAL (Invalid argument)
> [pid 32134]
> open("./cur/1149493666.M628812P32114V000000000000FE01I00001C43_0.mail,S=3793:2,S",
O_RDONLY|O_NONBLOCK) = 4
> [pid 32134] fcntl64(4, F_SETFL, O_RDONLY) = 0
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0600, st_size=3793, ...}) = 0
[pid 32134]
> lstat64("./cur/1149493666.M628812P32114V000000000000FE01I00001C43_0.mail,S=3793:2,S",
{st_mode=S_IFREG|0600, st_size=3793, ...}) = 0
> [pid 32134] fcntl64(4, F_GETFL)         = 0 (flags O_RDONLY)
> [pid 32134] fstat64(4, {st_mode=S_IFREG|0600, st_size=3793, ...}) = 0
[pid 32134] mmap2(NULL, 131072, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ddd000
> [pid 32134] _llseek(4, 0, [0], SEEK_CUR) = 0
> [pid 32134] _llseek(4, 0, [0], SEEK_SET) = 0
> [pid 32134] lseek(4, 0, SEEK_CUR)       = 0
> [pid 32134] lseek(4, 0, SEEK_SET)       = 0
> [pid 32134] read(4, "Return-Path: <[EMAIL PROTECTED]"..., 8192) = 3793 [pid
32134] read(4, "", 8192)           = 0
> [pid 32134] lseek(4, 0, SEEK_SET)       = 0
> [pid 32134] _llseek(4, 0, [0], SEEK_SET) = 0
> [pid 32134] read(4, "Return-Path: <[EMAIL PROTECTED]"..., 2365) = 2365 [pid
32134] time([1149493775])          = 1149493775
> [pid 32134] select(2, NULL, [1], NULL, {60, 0}) = 1 (out [1], left {60, 0})
> [pid 32134] write(1, "* 10 FETCH (UID 737 BODY[1.2] {1"..., 38) = 38
[pid 32134] read(4, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 131072) =
1428
> [pid 32134] read(4, "", 131072)         = 0
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(2, NULL, [1], NULL, {60, 0}) = 1 (out [1], left {60, 0})
> [pid 32134] write(1, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 1254) =
1254
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(2, NULL, [1], NULL, {60, 0}) = 1 (out [1], left {60, 0})
> [pid 32134] write(1, ")\r\nA004 OK FETCH completed.\r\n", 29) = 29 [pid
32134] time([1149493775])          = 1149493775
> [pid 32134] time([1149493775])          = 1149493775
> [pid 32134] select(1, [0], NULL, NULL, {1800, 0}) = 1 (in [0], left
{1799, 896000})
> [pid 32134] read(0, "", 8192)           = 0
> [pid 32134] time(NULL)                  = 1149493776
> [pid 32134] write(2, "INFO: DISCONNECTED, [EMAIL PROTECTED]"..., 93) = 93
[pid 32134] exit_group(0)               = ?
> Process 32134 detached
> <... select resumed> )                  = ? ERESTARTNOHAND (To be
restarted)
> --- SIGCHLD (Child exited) @ 0 (0) ---
> rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
> wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) =
32134
> wait4(-1, 0xbf8b924c, WNOHANG, NULL)    = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x8049970, [CHLD], SA_RESTART}, {0x8049970,
[CHLD], SA_RESTART}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], [CHLD], 8) = 0
> sigreturn()                             = ? (mask now [])
> select(6, [5], NULL, NULL, NULL <unfinished ...>
> Process 9364 detached
> mail ~ #
>
>
> _______________________________________________
> Courier-imap mailing list
> [email protected]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
>






_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to