Hello,
Quoting fclproject via Info <[email protected]>:
localhost> lm user.j*
user.j* (\HasNoChildren)
user.jb[...] (\HasChildren)
user.jb[...].Archive (\HasNoChildren)
[...]
user.jbr[...] (\HasChildren)
[...]
...and several valid users with mailbox names starting with "j".
I tried:
localhost> sam user.cyrus user.j* all
setaclmailbox: user.j*: lrswipkxtea: Mailbox does not exist
localhost> sam user.cyrus 'user.j*' all
setaclmailbox: user.j*: lrswipkxtea: Mailbox does not exist
localhost> sam user.cyrus user.j\* all
setaclmailbox: user.j*: lrswipkxtea: Mailbox does not exist
cyrus says you that the mailbox lrswipkxtea does not exist.
If your admin user is cyrus you should use :
sam user.j* cyrus x (no need for all)
But cyradm will not escape your '*', you will need to remove your
admin rights before the delete :
Sample with z* :
localhost> cm user.z*
localhost> lam user.z*
user.z*:
user.z1:
z1 lrswipkxtecdan
localhost> sam user."z*" admin x
Setting ACL on user.z*...OK.
Setting ACL on user.z1...OK.
localhost> lam user.z*
user.z*:
admin xc
user.z1:
admin xc
z1 lrswipkxtecdan
localhost> dam user.z1 admin xc
localhost> lam user.z*
user.z*:
admin xc
user.z1:
z1 lrswipkxtecdan
localhost> dm user.z*
Deleting mailbox user.z*...OK.
Deleting mailbox user.z1...Permission denied
Or you can use imtest :
$ cyrus imtest -a admin -u admin -t "" localhost
[...]
Authenticated.
Security strength factor: 256
a1 SETACL user.z* admin +x
a1 OK Completed
a2 GETACL user.z*
* ACL "user.z*" admin xc
a2 OK Completed
a3 DELETE user.z*
a3 OK Completed
a4 logout
* BYE LOGOUT received
a4 OK Completed
Connection closed.
--
Service systèmes et réseaux - DISI
Université de Picardie Jules Verne
5, rue du moulin neuf - 80000 Amiens
------------------------------------------
Cyrus: Info
Permalink:
https://cyrus.topicbox.com/groups/info/T5737a19b5970c6e3-M849be2a0194b744074c91dd5
Delivery options: https://cyrus.topicbox.com/groups/info/subscription