Aleksandar Milivojevic wrote:
Craig White wrote:
Trying to script deleting a user's mailbox from system...
/bin/su - cyrus -c '/usr/lib/cyrus-imapd/cyradm localhost \
--userrc=/var/lib/imap/.systemrc dm user.public'
Try something like this instead:
#! /usr/bin/perl -w
use Cyrus::IMAP::Admin;
$ima
Craig White wrote:
give me an error - failed to delete on line 12 but it does indeed
delete. I'll have to debug later and investigate method of grabbing
error and standard out that you pointed me to. I can see that this is
trying to suck me into perl and I have avowed not to dirty my hands.
Hm, str
On Thu, 2005-02-10 at 13:32 -0600, John Wade wrote:
> We use something like this, Note that I hacked this out of a larger
> script, that does some site specific things so there is no guarantee that
> this actually runs or that it includes all the error checking you would
> want, but it should giv
On Thu, 2005-02-10 at 13:18 -0600, Aleksandar Milivojevic wrote:
> There's a comment in man page for Cyrus::IMAP::Admin that you'll
> probably need to use setacl method before deleting mailbox (if doing it
> as cyrus user). In Cyrus, administrator doesn't have the right to
> delete folders by def
We use something like this, Note that I hacked this out of a larger
script, that does some site specific things so there is no guarantee that
this actually runs or that it includes all the error checking you would
want, but it should give you the idea. Also I don't think you need to
iterate thr
Craig White wrote:
OK - I think I can deal with this but...
#cyradm localhost
IMAP Password:
lm user.public
user.public (\HasNoChildren)
and
# ./ldap_useradmin.deluser
Failed to delete mailbox at ./ldap_useradmin.deluser line 11.
means we died and didn't delete the mailbox.
You need to add +c to c
Scott Balmos wrote:
It would be useful to automatically assign this to any mailbox that your
system creates, assuming your mailboxes and such are created as part of
some scripted user-creation system (like a web app or something). Also,
for the heck of it, have a periodic script, once every hour
A common error. Do a "lam user.public". User cyrus almost definitely
will not have the "c" ACL right assigned, since that's by default. Give
cyrus the "c" ACL right, which gives delete ability, then re-run the script.
It would be useful to automatically assign this to any mailbox that your
syst
On Thu, 2005-02-10 at 11:02 -0600, Aleksandar Milivojevic wrote:
> Craig White wrote:
> > Trying to script deleting a user's mailbox from system...
> >
> > /bin/su - cyrus -c '/usr/lib/cyrus-imapd/cyradm localhost \
> > --userrc=/var/lib/imap/.systemrc dm user.public'
>
> Try something like this
Craig White wrote:
Trying to script deleting a user's mailbox from system...
/bin/su - cyrus -c '/usr/lib/cyrus-imapd/cyradm localhost \
--userrc=/var/lib/imap/.systemrc dm user.public'
Try something like this instead:
#! /usr/bin/perl -w
use Cyrus::IMAP::Admin;
$imap = Cyrus::IMAP::Admin->new("se
Trying to script deleting a user's mailbox from system...
/bin/su - cyrus -c '/usr/lib/cyrus-imapd/cyradm localhost \
--userrc=/var/lib/imap/.systemrc dm user.public'
#cat /var/lib/imap/.systemrc
host localhost
user cyrus
password CYRUS_PASSWORD
and the reply I get...
Usage: cyradm [args] serve
11 matches
Mail list logo