Re: Trying to deliver to sub folder

2003-06-13 Thread Patrick Boutilier
After more searching I just realized that the following will also work 
without the need for anonymous to have p rights.



/usr/cyrus/bin/deliver -m Junk -a boutilpj boutilpj



Michael Bacon wrote:
If you're using deliver, the user that needs "post" access to the 
mailbox is not cyrus, but anonymous.  So "sam user.boutilpj anonymous p" 
(or "anyone p") is what you need.  Should work after you do that.

Michael

--On Friday, June 13, 2003 9:35 AM -0300 Patrick Boutilier 
<[EMAIL PROTECTED]> wrote:

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 todeliver to user.userid.mailbox for each
userid.  If the ACL  onany  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.  Ifthe ACL on mailbox does not grant the sender
the "p" right,  thedelivery 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



Re: Trying to deliver to sub folder

2003-06-13 Thread Patrick Boutilier
Michael,

Thanks. Now to try and get Exim to deliver to subfolders using lmtp. :-)

Anybody get that working corectly?



Michael Bacon wrote:
If you're using deliver, the user that needs "post" access to the 
mailbox is not cyrus, but anonymous.  So "sam user.boutilpj anonymous p" 
(or "anyone p") is what you need.  Should work after you do that.

Michael

--On Friday, June 13, 2003 9:35 AM -0300 Patrick Boutilier 
<[EMAIL PROTECTED]> wrote:

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 todeliver to user.userid.mailbox for each
userid.  If the ACL  onany  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.  Ifthe ACL on mailbox does not grant the sender
the "p" right,  thedelivery fails.


cyradm:

localhost> lam user.boutilpj
boutilpj lrswipcda
cyrus lrswpa
localhost> lam user.boutilpj.Junk
boutilpj lrswipcda
cyrus lrswpa
Any ideas?





Re: Trying to deliver to sub folder

2003-06-13 Thread Michael Bacon
If you're using deliver, the user that needs "post" access to the mailbox 
is not cyrus, but anonymous.  So "sam user.boutilpj anonymous p" (or 
"anyone p") is what you need.  Should work after you do that.

Michael

--On Friday, June 13, 2003 9:35 AM -0300 Patrick Boutilier 
<[EMAIL PROTECTED]> wrote:

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 todeliver to user.userid.mailbox for each
userid.  If the ACL  onany  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.  Ifthe ACL on mailbox does not grant the sender
the "p" right,  thedelivery 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",
0xb250) = -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", 0xb250) = -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", 0xb250) = -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, 0x1) = 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", 

Trying to deliver to sub folder

2003-06-13 Thread Patrick Boutilier
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", 0xb250) = -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", 0xb250) = -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", 0xb250) = -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, 0x1) = 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, 121917