scripted delete mailbox for cyradm

Craig White craigwhite at azapple.com
Thu Feb 10 10:45:35 EST 2005


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] server
  --user <user>         Connect as <user> (authentication name)
  --authz <user>        Authorize as <user>
  --[no]rc              (Do not) load the configuration files
  --systemrc <file>     Use system-wide configuration <file>
  --userrc <file>       Use user configuration <file>
  --port <port>         Connect to server on <port>
  --auth <mechanism>    Authenticate with <mechanism>

Defaults to interactive mode. Please see man cyradm(1) and the 'help'
command in the cyradm-shell for details.

It's not a very long manpage...where am I going wrong?

Thanks

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list