problem z cyrus-imap

Michał Panasiewicz wolvverine w tarchomin.pl
Śro, 12 Sty 2005, 08:55:28 CET


konfiguracja:

[root w serwer root]# cat /etc/imapd.conf
configdirectory: /var/lib/imap
autocreatequota: -1
partition-default: /var/spool/imap
admins: mailadmin
allowanonymouslogin: no
sieveuserhomedir: no
sievedir: /var/lib/imap/sieve
hashimapspool: yes
umask: 077
quotawarn: 90
timeout: 30
poptimeout: 10
defaultacl: anyone lrs
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_auto_transition: yes
sendmail: /usr/sbin/sendmail

[root w serwer root]# cat /etc/cyrus.conf
# standard standalone server implementation

START {
  # do not delete these entries!
  mboxlist      cmd="ctl_mboxlist -r"
  deliver       cmd="ctl_deliver -r"

  # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=0
  imaps         cmd="imapd -s" listen="imaps" prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
  pop3s         cmd="pop3d -s" listen="pop3s" prefork=0
  sieve         cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
#  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="ctl_deliver -E 3" period=1440
}

PROBLEM:

dodaje usera:

[root w serwer root]# saslpasswd2 -c mailadmin

loguje się:

[root w serwer root]# cyradm -u mailadmin localhost
Password:
cyradm: cannot authenticate to server with  as mailadmin
Naruszenie ochrony pami?ci



strace wyrzuca:
uname({sys="Linux", node="serwer", ...}) = 0
write(3, "1 CAPABILITY\r\n", 14)        = 14
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "* OK serwer Cyrus IMAP4 v2.2.10 "..., 4096) = 314
write(3, "2 CAPABILITY\r\n", 14)        = 14
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "* CAPABILITY IMAP4 IMAP4rev1 ACL"..., 4096) = 268
getpeername(3, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(1275),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40879000
write(1, "Password: ", 10Password: )              = 10
open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
echo ...}) = 0
ioctl(4, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost -isig icanon
-echo ...}) = 0
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig icanon
-echo ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4087a000
read(4, "adi64mp\n", 4096)              = 8
write(4, "\n", 1
)                       = 1
ioctl(4, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon
echo ...}) = 0
close(4)                                = 0
munmap(0x4087a000, 4096)                = 0
write(3, "3 AUTHENTICATE OTP\r\n", 20)  = 20
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "+ \r\n", 4096)                 = 4
write(3, "bWFpbGFkbWluAG1haWxhZG1pbg==\r\n", 30) = 30
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "3 NO One time use of a plaintext"..., 4096) = 84
getpeername(3, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(1275),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
write(3, "4 AUTHENTICATE DIGEST-MD5\r\n", 27) = 27
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "+ bm9uY2U9Im1zR1BvM2cwcG80YjFYYj"..., 4096) = 244
time([1105510596])                      = 1105510596
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4087a000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\n\0\0\0\n\0"...,
4096) = 961
close(4)                                = 0
munmap(0x4087a000, 4096)                = 0
rt_sigaction(SIGPIPE, {0x40169770, [], 0}, {SIG_DFL}, 8) = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 EPROTOTYPE
(Protocol wrong type for socket)
close(4)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 4
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
connect(4, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(4, "<39>Jan 12 07:16:36 perl: DIGEST"..., 51, 0) = 51
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
open("/dev/random", O_RDONLY)           = 5
read(5, "-\301\335\236Z\211", 6)        = 6
close(5)                                = 0
gettimeofday({1105510596, 638297}, NULL) = 0
times({tms_utime=10, tms_stime=2, tms_cutime=0, tms_cstime=0}) =
441140996
write(3, "dXNlcm5hbWU9Im1haWxhZG1pbiIscmVh"..., 346) = 346
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "4 NO One time use of a plaintext"..., 4096) = 84
getpeername(3, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(1275),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
write(3, "5 AUTHENTICATE CRAM-MD5\r\n", 25) = 25
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "+ PDI0OTQxNTE2LjE0OTkxNjI0QHNlcn"..., 4096) = 40
getpeername(3, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(1275),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
time([1105510599])                      = 1105510599
rt_sigaction(SIGPIPE, {0x40169770, [], 0}, {SIG_DFL}, 8) = 0
send(4, "<37>Jan 12 07:16:39 perl: No wor"..., 48, 0) = 48
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
write(2, "cyradm: cannot authenticate to s"..., 57cyradm: cannot
authenticate to server with  as mailadmin
) = 57
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


pakiety zainstalowane:

[root w serwer root]# rpm -qa | grep cyrus||sasl
cyrus-sasl-plain-2.1.20-1
cyrus-imapd-libs-2.2.10-1
cyrus-imapd-2.2.10-1
cyrus-sasl-login-2.1.20-1
cyrus-sasl-sasldb-2.1.20-1
cyrus-sasl-digest-md5-2.1.20-1
cyrus-sasl-anonymous-2.1.20-1
perl-cyrus-imapd-2.2.10-1
cyrus-sasl-saslauthd-2.1.20-1
cyrus-sasl-cram-md5-2.1.20-1
cyrus-sasl-2.1.20-1
cyrus-sasl-otp-2.1.20-1

-- 
jabber: wolvverine [ at ] chrome [ dot ] pl 
e-mail: wolvverine [ at ] tlen [ dot ] pl
        wolvverine [ at ] pld-linux [ dot ] org
http://gielda.linux.pl - chcesz pomóc, przyłącz się :)





Więcej informacji o liście dyskusyjnej pld-users-pl