Trying to deliver to sub folder

Patrick Boutilier boutilpj at ednet.ns.ca
Fri Jun 13 08:35:09 EDT 2003


Cyrus 2.1.13


According to the man page for deliver the "cat ..." command below should 
put the message in the Junk folder however it goes directly into the INBOX.


Clip from 'man deliver":

-m mailbox
               Deliver  to  mailbox.  If any userids are specified, 
attempts to
               deliver to user.userid.mailbox for each userid.  If the 
ACL  on
               any  such  mailbox does not grant the sender the "p" 
right or if
               -m is not specified, then delivers to the INBOX for the 
userid,
               regardless of the ACL on the INBOX.

               If no userids are specified, attempts to deliver to 
mailbox.  If
               the ACL on mailbox does not grant the sender the "p" 
right,  the
               delivery fails.




cyradm:

localhost> lam user.boutilpj
boutilpj lrswipcda
cyrus lrswpa

localhost> lam user.boutilpj.Junk
boutilpj lrswipcda
cyrus lrswpa


Any ideas?






cat mail.txt|strace -fF /usr/cyrus/bin/deliver -m Junk boutilpj


execve("/usr/cyrus/bin/deliver", ["/usr/cyrus/bin/deliver", "-m", 
"Junk", "boutilpj"], [/* 19 vars */]) = 0
uname({sys="Linux", node="student.ednet.ns.ca", ...}) = 0
brk(0)                                  = 0x80766c0
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/usr/local/lib/i686/mmx/libsasl2.so.2", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat64("/usr/local/lib/i686/mmx", 0xbffff250) = -1 ENOENT (No such file 
or directory)
open("/usr/local/lib/i686/libsasl2.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/usr/local/lib/i686", 0xbffff250) = -1 ENOENT (No such file or 
directory)
open("/usr/local/lib/mmx/libsasl2.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat64("/usr/local/lib/mmx", 0xbffff250) = -1 ENOENT (No such file or 
directory)
open("/usr/local/lib/libsasl2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`/\0\000"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=371313, ...}) = 0
old_mmap(NULL, 72104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40013000
old_mmap(0x40024000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x10000) = 0x40024000
close(3)                                = 0
open("/usr/local/lib/libssl.so.2", O_RDONLY) = -1 ENOENT (No such file 
or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=31245, ...}) = 0
old_mmap(NULL, 31245, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000
close(3)                                = 0
open("/lib/libssl.so.2", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\220"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=224721, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x4002d000
old_mmap(NULL, 195076, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002e000
old_mmap(0x4005b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x2d000) = 0x4005b000
close(3)                                = 0
open("/usr/local/lib/libcrypto.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/lib/libcrypto.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p9\2\000"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=995665, ...}) = 0
old_mmap(NULL, 875620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005e000
old_mmap(0x40125000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0xc7000) = 0x40125000
old_mmap(0x40131000, 11364, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40131000
close(3)                                = 0
open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/lib/libresolv.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\230\'\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=69443, ...}) = 0
old_mmap(NULL, 69444, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40134000
old_mmap(0x40142000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0xe000) = 0x40142000
old_mmap(0x40143000, 8004, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40143000
close(3)                                = 0
open("/usr/local/lib/libdb-4.0.so", O_RDONLY) = -1 ENOENT (No such file 
or directory)
open("/lib/libdb-4.0.so", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\27"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=760175, ...}) = 0
old_mmap(NULL, 686348, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40145000
old_mmap(0x401eb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0xa5000) = 0x401eb000
close(3)                                = 0
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\210U\1"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1377691, ...}) = 0
old_mmap(NULL, 1219172, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401ed000
old_mmap(0x4030f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x121000) = 0x4030f000
old_mmap(0x40315000, 6756, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40315000
close(3)                                = 0
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\270\25"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=12165, ...}) = 0
old_mmap(NULL, 12116, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40317000
old_mmap(0x40319000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x1000) = 0x40319000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x4031a000
munmap(0x40025000, 31245)               = 0
brk(0)                                  = 0x80766c0
brk(0x80776c0)                          = 0x80776c0
brk(0)                                  = 0x80776c0
brk(0x8078000)                          = 0x8078000
brk(0)                                  = 0x8078000
brk(0x8079000)                          = 0x8079000
brk(0)                                  = 0x8079000
brk(0x807b000)                          = 0x807b000
open("/etc/imapd.conf", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=323, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40025000
read(3, "configdirectory: /var/imap\nparti"..., 4096) = 323
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40025000, 4096)                = 0
umask(077)                              = 02
uname({sys="Linux", node="student.ednet.ns.ca", ...}) = 0
getuid32()                              = 503
brk(0)                                  = 0x807b000
brk(0x807c000)                          = 0x807c000
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 
ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1696, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40025000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1696
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40025000, 4096)                = 0
open("/usr/local/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=31245, ...}) = 0
old_mmap(NULL, 31245, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\34"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=47504, ...}) = 0
old_mmap(NULL, 44704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4031b000
old_mmap(0x40325000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x9000) = 0x40325000
close(3)                                = 0
munmap(0x40025000, 31245)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1889, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40025000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1889
close(3)                                = 0
munmap(0x40025000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="/var/imap/socket/lmtp"}, 24) = 0
brk(0)                                  = 0x807c000
brk(0x807d000)                          = 0x807d000
brk(0)                                  = 0x807d000
brk(0x807e000)                          = 0x807e000
read(3, "220 student.ednet.ns.ca LMTP Cyr"..., 4096) = 50
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "LHLO student.ednet.ns.ca\r\n", 26) = 26
read(3, "250-student.ednet.ns.ca\r\n250-8BI"..., 4096) = 126
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "RSET\r\n", 6)                 = 6
read(3, "250 2.0.0 ok\r\n", 4096)       = 14
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "MAIL FROM:<cyrus> AUTH=<>\r\n", 27) = 27
read(3, "250 2.1.0 ok\r\n", 4096)       = 14
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "RCPT TO:<boutilpj+Junk>\r\n", 25) = 25
read(3, "250 2.1.5 ok\r\n", 4096)       = 14
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "DATA\r\n", 6)                 = 6
read(3, "354 go ahead\r\n", 4096)       = 14
time(NULL)                              = 1055506718
select(1, [0], NULL, NULL, {300, 0})    = 1 (in [0], left {300, 0})
time(NULL)                              = 1055506718
read(0, "From: macman at staff.ednet.ns.ca\nD"..., 4096) = 75
time(NULL)                              = 1055506718
select(1, [0], NULL, NULL, {300, 0})    = 1 (in [0], left {300, 0})
time(NULL)                              = 1055506718
read(0, "", 4096)                       = 0
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "From: macman at staff.ednet.ns.ca\r\n"..., 84) = 84
read(3, "250 2.1.5 Ok\r\n", 4096)       = 14
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "QUIT\r\n", 6)                 = 6
read(3, "221 2.0.0 bye\r\n", 4096)      = 15
close(3)                                = 0
_exit(0)                                = ?





More information about the Info-cyrus mailing list