[Sysadmins] courier-imap

Gleb Kulikov =?iso-8859-1?q?glebus_=CE=C1_asd=2Eiao=2Eru?=
Вт Окт 16 13:15:46 MSD 2007


Джентельмены,

крик о помощи.

Была связка postfix + courier-imap на master 2.4, 
для курьера идентификация в локальных базах (authdb), всё работало без 
проблем.

По ряду причин, пришлось срочно и аварийно поднимать в качестве "серверной" 
машинки, compact 3.

Конфигурация в точности такая-же, за исключением изменений в /etc/postfix/...

Результат: бьюсь весь день, запустить курьер не удаётся.
прверка по
telnet АДРЕС 110

даёт 

Trying АЙ-ПИ...
Connected to АДРЕС
Escape character is '^]'.
-ERR pop3login requires exactly two arguments.
Connection closed by foreign host.


Всё. имап вообще отваливается немедленно (хотя сертификат (ssl) "проходит"). 
Ничего не понимаю.
debug в конф. включен, но в протокол ничего не попадает. В выводе strace, не 
вижу ничего подозрительного:

strace -f -p 8614
Process 8614 attached - interrupt to quit
select(6, [5], NULL, NULL, NULL)        = 1 (in [5])
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], [CHLD], 8) = 0
accept(5, {sa_family=AF_INET, sin_port=htons(52464), 
sin_addr=inet_addr("84.237.1.43")}, [16]) = 4
fcntl64(4, F_SETFD, 0)                  = 0
fcntl64(4, F_SETFL, O_RDONLY)           = 0
setsockopt(4, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setsockopt(4, SOL_SOCKET, SO_LINGER, {onoff=0, linger=0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
fork(Process 8626 attached
)                                  = 8626
[pid  8614] close(4)                    = 0
[pid  8614] rt_sigprocmask(SIG_SETMASK, [], [CHLD], 8) = 0
[pid  8614] select(6, [5], NULL, NULL, NULL <unfinished ...>
[pid  8626] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x8049820, [CHLD], SA_RESTART}, 
8) = 0
[pid  8626] rt_sigprocmask(SIG_SETMASK, [], [CHLD], 8) = 0
[pid  8626] getsockname(4, {sa_family=AF_INET, sin_port=htons(110), 
sin_addr=inet_addr("213.210.90.168")}, [16]) = 0
[pid  8626] close(0)                    = 0
[pid  8626] close(1)                    = 0
[pid  8626] dup(4)                      = 0
[pid  8626] dup(4)                      = 1
[pid  8626] close(4)                    = 0
[pid  8626] execve("/usr/sbin/pop3login", ["/usr/sbin/pop3login", 
"/usr/sbin/pop3d"], [/* 39 vars */]) = 0
[pid  8626] uname({sys="Linux", node="АДРЕС", ...}) = 0
[pid  8626] brk(0)                      = 0x804d000
[pid  8626] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)
[pid  8626] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid  8626] fstat64(3, {st_mode=S_IFREG|0644, st_size=131362, ...}) = 0
[pid  8626] mmap2(NULL, 131362, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8c000
[pid  8626] close(3)                    = 0
[pid  8626] open("/usr/lib/libcourierauth.so.0", O_RDONLY) = 3
[pid  8626] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\22"..., 512) = 512
[pid  8626] fstat64(3, {st_mode=S_IFREG|0644, st_size=14616, ...}) = 0
[pid  8626] mmap2(NULL, 17632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0xb7f87000
[pid  8626] mmap2(0xb7f8b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb7f8b000
[pid  8626] close(3)                    = 0
[pid  8626] open("/usr/lib/libcourierauthsasl.so.0", O_RDONLY) = 3
[pid  8626] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\t\0"..., 512) = 512
[pid  8626] fstat64(3, {st_mode=S_IFREG|0644, st_size=14240, ...}) = 0
[pid  8626] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0xb7f86000
[pid  8626] mmap2(NULL, 17688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0) = 0xb7f81000
[pid  8626] mmap2(0xb7f85000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb7f85000
[pid  8626] close(3)                    = 0
[pid  8626] open("/lib/i686/libc.so.6", O_RDONLY) = 3
[pid  8626] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`U\1\000"..., 512) = 512
[pid  8626] fstat64(3, {st_mode=S_IFREG|0755, st_size=1205712, ...}) = 0
[pid  8626] mmap2(NULL, 1212436, PROT_READ|PROT_EXEC, MAP_PRIVATE|
MAP_DENYWRITE, 3, 0) = 0xb7e58000
[pid  8626] mmap2(0xb7f7a000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_DENYWRITE, 3, 0x122) = 0xb7f7a000
[pid  8626] mmap2(0xb7f7e000, 8212, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f7e000
[pid  8626] close(3)                    = 0
[pid  8626] mprotect(0xb7f7a000, 4096, PROT_READ) = 0
[pid  8626] munmap(0xb7f8c000, 131362)  = 0
[pid  8626] fstat64(1, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
[pid  8626] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0xb7fac000
[pid  8626] write(1, "-ERR pop3login requires exactly "..., 48) = 48
[pid  8626] munmap(0xb7fac000, 4096)    = 0
[pid  8626] exit_group(1)               = ?
Process 8626 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) == 1}], WNOHANG, NULL) = 8626
wait4(-1, 0xbfd5f7e0, WNOHANG, NULL)    = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x8049820, [CHLD], SA_RESTART}, {0x8049820, [CHLD], 
SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], [CHLD], 8) = 0
sigreturn()                             = ? (mask now [])
select(6, [5], NULL, NULL, NULL <unfinished ...>
Process 8614 detached


ХЕЛП!!!!!!!!!!
-- 
      Салют, /GLeb

UIN: 15341920
jabber://gleb@asd.iao.ru
sip://2387245@sipnet.ru			(telephony)
skype://gleb_kulikov.tomsk		(telephony)
sip://20000204@sip.pctel.ru		(telephony)
netmail: 2:5005/78



Подробная информация о списке рассылки Sysadmins