3
<TITLE>cyradm - Cyrus administration shell, alter ego of Cyrus::IMAP::Shell</TITLE>
4
<LINK REV="made" HREF="mailto:advisor+@andrew.cmu.edu">
9
<A NAME="__index__"></A>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
5
<title>cyradm - Cyrus administration shell, alter ego of Cyrus::IMAP::Shell</title>
6
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
7
<link rev="made" href="mailto:root@localhost" />
10
<body style="background-color: white">
12
<p><a name="__index__"></a></p>
10
13
<!-- INDEX BEGIN -->
14
<LI><A HREF="#name">NAME</A></LI>
15
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
16
<LI><A HREF="#description">DESCRIPTION</A></LI>
17
<LI><A HREF="#commands">COMMANDS</A></LI>
18
<LI><A HREF="#notes">NOTES</A></LI>
19
<LI><A HREF="#author">AUTHOR</A></LI>
20
<LI><A HREF="#see also">SEE ALSO</A></LI>
17
<li><a href="#name">NAME</a></li>
18
<li><a href="#synopsis">SYNOPSIS</a></li>
19
<li><a href="#description">DESCRIPTION</a></li>
20
<li><a href="#commands">COMMANDS</a></li>
21
<li><a href="#notes">NOTES</a></li>
22
<li><a href="#author">AUTHOR</a></li>
23
<li><a href="#see_also">SEE ALSO</a></li>
26
<H1><A NAME="name">NAME</A></H1>
27
<P>cyradm - Cyrus administration shell, alter ego of Cyrus::IMAP::Shell</P>
30
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
30
<h1><a name="name">NAME</a></h1>
31
<p>cyradm - Cyrus administration shell, alter ego of Cyrus::IMAP::Shell</p>
35
<h1><a name="synopsis">SYNOPSIS</a></h1>
32
37
$ cyradm [--user user] [--[no]rc] [--systemrc file] [--userrc file] \
33
> [--port n] [--auth mechanism] [--server] server</PRE>
36
$ perl -MCyrus::IMAP::Shell -e 'run("myscript")'</PRE>
37
<P>or even (not recommended)</P>
39
use Cyrus::IMAP::Admin::Shell;</PRE>
41
run('myscriptname');</PRE>
44
<H1><A NAME="description">DESCRIPTION</A></H1>
45
<P>This module implements <STRONG>cyradm</STRONG> in Perl. It is a shell around
46
<A HREF="/Cyrus/IMAP/Admin.html">the Cyrus::IMAP::Admin manpage</A>. Commands are provided in both Tcl-compatible
47
forms and GNU-style long option forms.</P>
50
<H1><A NAME="commands">COMMANDS</A></H1>
52
<DT><STRONG><A NAME="item_authenticate_%5B%2D%2Dminssf_N%5D_%5B%2D%2Dmaxssf_"><CODE>authenticate</CODE> [<CODE>--minssf</CODE> <EM>N</EM>] [<CODE>--maxssf</CODE> <EM>N</EM>] [<CODE>--mechanisms</CODE> <EM>list</EM>] [<EM>user</EM>]</A></STRONG><BR>
54
<DT><STRONG><A NAME="item_auth_%5B%2D%2Dminssf_N%5D_%5B%2D%2Dmaxssf_N%5D_%5B"><CODE>auth</CODE> [<CODE>--minssf</CODE> <EM>N</EM>] [<CODE>--maxssf</CODE> <EM>N</EM>] [<CODE>--mechanisms</CODE> <EM>list</EM>] [<EM>user</EM>]</A></STRONG><BR>
56
<DT><STRONG><A NAME="item_login_%5B%2D%2Dminssf_N%5D_%5B%2D%2Dmaxssf_N%5D_%5"><CODE>login</CODE> [<CODE>--minssf</CODE> <EM>N</EM>] [<CODE>--maxssf</CODE> <EM>N</EM>] [<CODE>--mechanisms</CODE> <EM>list</EM>] [<EM>user</EM>]</A></STRONG><BR>
58
Authenticate to server. You must already be connected to a server and
38
> [--port n] [--auth mechanism] [--server] server</pre>
41
$ perl -MCyrus::IMAP::Shell -e 'run("myscript")'</pre>
42
<p>or even (not recommended)</p>
44
use Cyrus::IMAP::Admin::Shell;</pre>
46
run('myscriptname');</pre>
50
<h1><a name="description">DESCRIPTION</a></h1>
51
<p>This module implements <strong>cyradm</strong> in Perl. It is a shell around
52
<a href="/Cyrus/IMAP/Admin.html">the Cyrus::IMAP::Admin manpage</a>. Commands are provided in both Tcl-compatible
53
forms and GNU-style long option forms.</p>
57
<h1><a name="commands">COMMANDS</a></h1>
59
<dt><strong><a name="item_authenticate__5b_2d_2dminssf_n_5d__5b_2d_2dmaxssf_"><code>authenticate</code> [<code>--minssf</code> <em>N</em>] [<code>--maxssf</code> <em>N</em>] [<code>--mechanisms</code> <em>list</em>] [<em>user</em>]</a></strong>
61
<dt><strong><a name="item_auth__5b_2d_2dminssf_n_5d__5b_2d_2dmaxssf_n_5d__5b"><code>auth</code> [<code>--minssf</code> <em>N</em>] [<code>--maxssf</code> <em>N</em>] [<code>--mechanisms</code> <em>list</em>] [<em>user</em>]</a></strong>
63
<dt><strong><a name="item_login__5b_2d_2dminssf_n_5d__5b_2d_2dmaxssf_n_5d__5"><code>login</code> [<code>--minssf</code> <em>N</em>] [<code>--maxssf</code> <em>N</em>] [<code>--mechanisms</code> <em>list</em>] [<em>user</em>]</a></strong>
66
<p>Authenticate to server. You must already be connected to a server and
59
67
Cyrus imapd will refuse to allow you to re-authenticate once you have
62
<DT><STRONG><A NAME="item_chdir_directory"><CODE>chdir</CODE> <EM>directory</EM></A></STRONG><BR>
64
<DT><STRONG><A NAME="item_cd_directory"><CODE>cd</CODE> <EM>directory</EM></A></STRONG><BR>
66
Change directory. A <CODE>pwd</CODE> builtin is not provided, but the default command
67
action will run <CODE>pwd</CODE> from a shell if invoked.
69
<DT><STRONG><A NAME="item_createmailbox_%5B%2D%2Dpartition_partition%5D_mail"><CODE>createmailbox</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>mailbox</EM></A></STRONG><BR>
71
<DT><STRONG><A NAME="item_createmailbox_mailbox_partition"><CODE>createmailbox</CODE> <EM>mailbox</EM> <EM>partition</EM></A></STRONG><BR>
73
<DT><STRONG><A NAME="item_create_%5B%2D%2Dpartition_partition%5D_mailbox"><CODE>create</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>mailbox</EM></A></STRONG><BR>
75
<DT><STRONG><A NAME="item_create_mailbox_partition"><CODE>create</CODE> <EM>mailbox</EM> <EM>partition</EM></A></STRONG><BR>
77
<DT><STRONG><A NAME="item_cm_%5B%2D%2Dpartition_partition%5D_mailbox"><CODE>cm</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>mailbox</EM></A></STRONG><BR>
79
<DT><STRONG><A NAME="item_cm_mailbox_partition"><CODE>cm</CODE> <EM>mailbox</EM> <EM>partition</EM></A></STRONG><BR>
81
Create a mailbox on the default or a specified partition. Both old-style
82
and getopt-style usages are accepted (combining them will produce an error).
84
<DT><STRONG><A NAME="item_deleteaclmailbox_mailbox_id_%5B%2E%2E%2E%5D"><CODE>deleteaclmailbox</CODE> <EM>mailbox</EM> <EM>id</EM> [...]</A></STRONG><BR>
86
<DT><STRONG><A NAME="item_deleteacl_mailbox_id_%5B%2E%2E%2E%5D"><CODE>deleteacl</CODE> <EM>mailbox</EM> <EM>id</EM> [...]</A></STRONG><BR>
88
<DT><STRONG><A NAME="item_dam_mailbox_id_%5B%2E%2E%2E%5D"><CODE>dam</CODE> <EM>mailbox</EM> <EM>id</EM> [...]</A></STRONG><BR>
90
Remove ACLs from the specified mailbox.
92
<DT><STRONG><A NAME="item_deletemailbox_mailbox"><CODE>deletemailbox</CODE> <EM>mailbox</EM></A></STRONG><BR>
94
<DT><STRONG><A NAME="item_delete_mailbox"><CODE>delete</CODE> <EM>mailbox</EM></A></STRONG><BR>
96
<DT><STRONG><A NAME="item_dm_mailbox"><CODE>dm</CODE> <EM>mailbox</EM></A></STRONG><BR>
98
Delete the specified mailbox.
99
<P>Administrators do not have implicit delete rights on mailboxes. Use the
100
<STRONG>setaclmailbox</STRONG> command to grant the <A HREF="#item_c"><CODE>c</CODE></A> permission (or other permission
68
authenticated once.</p>
71
<dt><strong><a name="item_chdir_directory"><code>chdir</code> <em>directory</em></a></strong>
73
<dt><strong><a name="item_cd_directory"><code>cd</code> <em>directory</em></a></strong>
76
<p>Change directory. A <code>pwd</code> builtin is not provided, but the default command
77
action will run <code>pwd</code> from a shell if invoked.</p>
80
<dt><strong><a name="item_createmailbox__5b_2d_2dpartition_partition_5d_mail"><code>createmailbox</code> [<code>--partition</code> <em>partition</em>] <em>mailbox</em></a></strong>
82
<dt><strong><a name="item_createmailbox_mailbox_partition"><code>createmailbox</code> <em>mailbox</em> <em>partition</em></a></strong>
84
<dt><strong><a name="item_create__5b_2d_2dpartition_partition_5d_mailbox"><code>create</code> [<code>--partition</code> <em>partition</em>] <em>mailbox</em></a></strong>
86
<dt><strong><a name="item_create_mailbox_partition"><code>create</code> <em>mailbox</em> <em>partition</em></a></strong>
88
<dt><strong><a name="item_cm__5b_2d_2dpartition_partition_5d_mailbox"><code>cm</code> [<code>--partition</code> <em>partition</em>] <em>mailbox</em></a></strong>
90
<dt><strong><a name="item_cm_mailbox_partition"><code>cm</code> <em>mailbox</em> <em>partition</em></a></strong>
93
<p>Create a mailbox on the default or a specified partition. Both old-style
94
and getopt-style usages are accepted (combining them will produce an error).</p>
97
<dt><strong><a name="item_deleteaclmailbox_mailbox_id__5b_2e_2e_2e_5d"><code>deleteaclmailbox</code> <em>mailbox</em> <em>id</em> [...]</a></strong>
99
<dt><strong><a name="item_deleteacl_mailbox_id__5b_2e_2e_2e_5d"><code>deleteacl</code> <em>mailbox</em> <em>id</em> [...]</a></strong>
101
<dt><strong><a name="item_dam_mailbox_id__5b_2e_2e_2e_5d"><code>dam</code> <em>mailbox</em> <em>id</em> [...]</a></strong>
104
<p>Remove ACLs from the specified mailbox.</p>
107
<dt><strong><a name="item_deletemailbox_mailbox"><code>deletemailbox</code> <em>mailbox</em></a></strong>
109
<dt><strong><a name="item_delete_mailbox"><code>delete</code> <em>mailbox</em></a></strong>
111
<dt><strong><a name="item_dm_mailbox"><code>dm</code> <em>mailbox</em></a></strong>
114
<p>Delete the specified mailbox.</p>
117
<p>Administrators do not have implicit delete rights on mailboxes. Use the
118
<strong>setaclmailbox</strong> command to grant the <a href="#item_c"><code>c</code></a> permission (or other permission
101
119
as specified by the deleteright configuration option in imapd.conf)
102
to your principal if you need to delete a mailbox you do not own.</P>
103
<P>Note that the online help admits to an optional host argument. This argument
120
to your principal if you need to delete a mailbox you do not own.</p>
123
<p>Note that the online help admits to an optional host argument. This argument
104
124
is not currently used, and will be rejected with an error if specified; it
105
is reserved for IMSP.</P>
107
<DT><STRONG><A NAME="item_disconnect"><CODE>disconnect</CODE></A></STRONG><BR>
109
<DT><STRONG><A NAME="item_disc"><CODE>disc</CODE></A></STRONG><BR>
111
Disconnect from the current server. The prompt will revert to <CODE>cyradm></CODE>.
113
<DT><STRONG><A NAME="item_exit_%5Bnumber%5D"><CODE>exit</CODE> [<EM>number</EM>]</A></STRONG><BR>
115
<DT><STRONG><A NAME="item_quit_%5Bnumber%5D"><CODE>quit</CODE> [<EM>number</EM>]</A></STRONG><BR>
117
Exit <STRONG>cyradm</STRONG>, optionally with a specific exit status; the exit status of the
118
last command will be used if one is not specified.
120
<DT><STRONG><A NAME="item_help_%5Bcommand%5D">help [command]</A></STRONG><BR>
122
<DT><STRONG><A NAME="item_%3F_%5Bcommand%5D">? [command]</A></STRONG><BR>
124
Show help for <CODE>command</CODE> or all commands.
126
<DT><STRONG><A NAME="item_info_%5Bmailbox%5D"><CODE>info</CODE> [<EM>mailbox</EM>]</A></STRONG><BR>
128
Display the mailbox/server metadata.
130
<DT><STRONG><A NAME="item_listaclmailbox_mailbox"><CODE>listaclmailbox</CODE> <EM>mailbox</EM></A></STRONG><BR>
132
<DT><STRONG><A NAME="item_listacl_mailbox"><CODE>listacl</CODE> <EM>mailbox</EM></A></STRONG><BR>
134
<DT><STRONG><A NAME="item_lam_mailbox"><CODE>lam</CODE> <EM>mailbox</EM></A></STRONG><BR>
136
List ACLs on the specified mailbox.
138
<DT><STRONG><A NAME="item_listmailbox_%5B%2D%2Dsubscribed%5D_%5Bpattern_%5Br"><CODE>listmailbox</CODE> [<CODE>--subscribed</CODE>] [<EM>pattern</EM> [<EM>reference</EM>]]</A></STRONG><BR>
140
<DT><STRONG><A NAME="item_list_%5B%2D%2Dsubscribed%5D_%5Bpattern_%5Breferenc"><CODE>list</CODE> [<CODE>--subscribed</CODE>] [<EM>pattern</EM> [<EM>reference</EM>]]</A></STRONG><BR>
142
<DT><STRONG><A NAME="item_lm_%5B%2D%2Dsubscribed%5D_%5Bpattern_%5Breference%"><CODE>lm</CODE> [<CODE>--subscribed</CODE>] [<EM>pattern</EM> [<EM>reference</EM>]]</A></STRONG><BR>
144
List all, or all subscribed, mailboxes matching the specified pattern.
145
The pattern may have embedded wildcards <CODE>'*'</CODE> or <CODE>'%'</CODE>, which match
146
anything or anything except the separator character, respectively.
147
<P>Mailboxes returned will be relative to the specified reference if one
125
is reserved for IMSP.</p>
128
<dt><strong><a name="item_disconnect"><code>disconnect</code></a></strong>
130
<dt><strong><a name="item_disc"><code>disc</code></a></strong>
133
<p>Disconnect from the current server. The prompt will revert to <code>cyradm></code>.</p>
136
<dt><strong><a name="item_exit__5bnumber_5d"><code>exit</code> [<em>number</em>]</a></strong>
138
<dt><strong><a name="item_quit__5bnumber_5d"><code>quit</code> [<em>number</em>]</a></strong>
141
<p>Exit <strong>cyradm</strong>, optionally with a specific exit status; the exit status of the
142
last command will be used if one is not specified.</p>
145
<dt><strong><a name="item_help__5bcommand_5d">help [command]</a></strong>
147
<dt><strong><a name="item__3f__5bcommand_5d">? [command]</a></strong>
150
<p>Show help for <code>command</code> or all commands.</p>
153
<dt><strong><a name="item_info__5bmailbox_5d"><code>info</code> [<em>mailbox</em>]</a></strong>
156
<p>Display the mailbox/server metadata.</p>
159
<dt><strong><a name="item_listaclmailbox_mailbox"><code>listaclmailbox</code> <em>mailbox</em></a></strong>
161
<dt><strong><a name="item_listacl_mailbox"><code>listacl</code> <em>mailbox</em></a></strong>
163
<dt><strong><a name="item_lam_mailbox"><code>lam</code> <em>mailbox</em></a></strong>
166
<p>List ACLs on the specified mailbox.</p>
169
<dt><strong><a name="item_listmailbox__5b_2d_2dsubscribed_5d__5bpattern__5br"><code>listmailbox</code> [<code>--subscribed</code>] [<em>pattern</em> [<em>reference</em>]]</a></strong>
171
<dt><strong><a name="item_list__5b_2d_2dsubscribed_5d__5bpattern__5breferenc"><code>list</code> [<code>--subscribed</code>] [<em>pattern</em> [<em>reference</em>]]</a></strong>
173
<dt><strong><a name="item_lm__5b_2d_2dsubscribed_5d__5bpattern__5breference_"><code>lm</code> [<code>--subscribed</code>] [<em>pattern</em> [<em>reference</em>]]</a></strong>
176
<p>List all, or all subscribed, mailboxes matching the specified pattern.
177
The pattern may have embedded wildcards <code>'*'</code> or <code>'%'</code>, which match
178
anything or anything except the separator character, respectively.</p>
181
<p>Mailboxes returned will be relative to the specified reference if one
148
182
is specified. This allows a mailbox list to be limited to a particular
150
<P>In some cases when the <CODE>'%'</CODE> wildcard is used to end a pattern, it may
186
<p>In some cases when the <code>'%'</code> wildcard is used to end a pattern, it may
151
187
match an entry which is not a mailbox but which contains other mailboxes.
152
188
In this case, the entry will be parenthesized to indicate that it is a
153
root for other mailboxes, as opposed to a mailbox itself.</P>
155
<DT><STRONG><A NAME="item_listquota_root"><CODE>listquota</CODE> <EM>root</EM></A></STRONG><BR>
157
<DT><STRONG><A NAME="item_lq_root"><CODE>lq</CODE> <EM>root</EM></A></STRONG><BR>
159
List quotas on specified root. If the specified mailbox path does not have
160
a quota assigned, an error will be raised; see <EM>listquotaroot</EM> for a way to
161
find the quota root for a mailbox.
163
<DT><STRONG><A NAME="item_listquotaroot_mailbox"><CODE>listquotaroot</CODE> <EM>mailbox</EM></A></STRONG><BR>
165
<DT><STRONG><A NAME="item_lqm_mailbox"><CODE>lqm</CODE> <EM>mailbox</EM></A></STRONG><BR>
167
<DT><STRONG><A NAME="item_lqr_mailbox%3F"><CODE>lqr</CODE> <EM>mailbox?</EM></A></STRONG><BR>
169
show quota roots and quotas for mailbox
171
<DT><STRONG><A NAME="item_mboxconfig_mailbox_attribute_value"><CODE>mboxconfig</CODE> <EM>mailbox</EM> <EM>attribute</EM> <EM>value</EM></A></STRONG><BR>
173
<DT><STRONG><A NAME="item_mboxcfg_mailbox_attribute_value"><CODE>mboxcfg</CODE> <EM>mailbox</EM> <EM>attribute</EM> <EM>value</EM></A></STRONG><BR>
175
Set mailbox metadata. A value of ``none'' will remove the attribute.
176
The currently supported attributes are:
178
<DT><STRONG><A NAME="item_comment"><CODE>comment</CODE></A></STRONG><BR>
180
Sets a comment or description associated with the mailbox.
182
<DT><STRONG><A NAME="item_expire"><CODE>expire</CODE></A></STRONG><BR>
184
Sets the number of days after which messages will be expired from the mailbox.
186
<DT><STRONG><A NAME="item_squat"><CODE>squat</CODE></A></STRONG><BR>
188
Indicates that the mailbox should have a squat index created for it.
190
<DT><STRONG><A NAME="item_news2mail"><CODE>news2mail</CODE></A></STRONG><BR>
192
Sets an email address to which messages injected into the server via NNTP
195
<DT><STRONG><A NAME="item_renamemailbox_%5B%2D%2Dpartition_partition%5D_oldn"><CODE>renamemailbox</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>oldname</EM> <EM>newname</EM></A></STRONG><BR>
197
<DT><STRONG><A NAME="item_rename_%5B%2D%2Dpartition_partition%5D_oldname_new"><CODE>rename</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>oldname</EM> <EM>newname</EM></A></STRONG><BR>
199
<DT><STRONG><A NAME="item_renm_%5B%2D%2Dpartition_partition%5D_oldname_newna"><CODE>renm</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>oldname</EM> <EM>newname</EM></A></STRONG><BR>
201
<DT><STRONG><A NAME="item_renamemailbox_oldname_newname_%5Bpartition%5D"><CODE>renamemailbox</CODE> <EM>oldname</EM> <EM>newname</EM> [<EM>partition</EM>]</A></STRONG><BR>
203
<DT><STRONG><A NAME="item_rename_oldname_newname_%5Bpartition%5D"><CODE>rename</CODE> <EM>oldname</EM> <EM>newname</EM> [<EM>partition</EM>]</A></STRONG><BR>
205
<DT><STRONG><A NAME="item_renm_oldname_newname_%5Bpartition%5D"><CODE>renm</CODE> <EM>oldname</EM> <EM>newname</EM> [<EM>partition</EM>]</A></STRONG><BR>
207
Rename the specified mailbox, optionally moving it to a different partition.
189
root for other mailboxes, as opposed to a mailbox itself.</p>
192
<dt><strong><a name="item_listquota_root"><code>listquota</code> <em>root</em></a></strong>
194
<dt><strong><a name="item_lq_root"><code>lq</code> <em>root</em></a></strong>
197
<p>List quotas on specified root. If the specified mailbox path does not have
198
a quota assigned, an error will be raised; see <em>listquotaroot</em> for a way to
199
find the quota root for a mailbox.</p>
202
<dt><strong><a name="item_listquotaroot_mailbox"><code>listquotaroot</code> <em>mailbox</em></a></strong>
204
<dt><strong><a name="item_lqm_mailbox"><code>lqm</code> <em>mailbox</em></a></strong>
206
<dt><strong><a name="item_lqr_mailbox_3f"><code>lqr</code> <em>mailbox?</em></a></strong>
209
<p>show quota roots and quotas for mailbox</p>
212
<dt><strong><a name="item_mboxconfig_mailbox_attribute_value"><code>mboxconfig</code> <em>mailbox</em> <em>attribute</em> <em>value</em></a></strong>
214
<dt><strong><a name="item_mboxcfg_mailbox_attribute_value"><code>mboxcfg</code> <em>mailbox</em> <em>attribute</em> <em>value</em></a></strong>
217
<p>Set mailbox metadata. A value of ``none'' will remove the attribute.
218
The currently supported attributes are:</p>
221
<dt><strong><a name="item_comment"><code>comment</code></a></strong>
224
<p>Sets a comment or description associated with the mailbox.</p>
227
<dt><strong><a name="item_expire"><code>expire</code></a></strong>
230
<p>Sets the number of days after which messages will be expired from the mailbox.</p>
233
<dt><strong><a name="item_sieve"><code>sieve</code></a></strong>
236
<p>Indicates the name of the global sieve script that should be run when
237
a message is delivered to the shared mailbox (not used for personal
241
<dt><strong><a name="item_squat"><code>squat</code></a></strong>
244
<p>Indicates that the mailbox should have a squat index created for it.</p>
247
<dt><strong><a name="item_news2mail"><code>news2mail</code></a></strong>
250
<p>Sets an email address to which messages injected into the server via NNTP
255
<dt><strong><a name="item_renamemailbox__5b_2d_2dpartition_partition_5d_oldn"><code>renamemailbox</code> [<code>--partition</code> <em>partition</em>] <em>oldname</em> <em>newname</em></a></strong>
257
<dt><strong><a name="item_rename__5b_2d_2dpartition_partition_5d_oldname_new"><code>rename</code> [<code>--partition</code> <em>partition</em>] <em>oldname</em> <em>newname</em></a></strong>
259
<dt><strong><a name="item_renm__5b_2d_2dpartition_partition_5d_oldname_newna"><code>renm</code> [<code>--partition</code> <em>partition</em>] <em>oldname</em> <em>newname</em></a></strong>
261
<dt><strong><a name="item_renamemailbox_oldname_newname__5bpartition_5d"><code>renamemailbox</code> <em>oldname</em> <em>newname</em> [<em>partition</em>]</a></strong>
263
<dt><strong><a name="item_rename_oldname_newname__5bpartition_5d"><code>rename</code> <em>oldname</em> <em>newname</em> [<em>partition</em>]</a></strong>
265
<dt><strong><a name="item_renm_oldname_newname__5bpartition_5d"><code>renm</code> <em>oldname</em> <em>newname</em> [<em>partition</em>]</a></strong>
268
<p>Rename the specified mailbox, optionally moving it to a different partition.
208
269
Both old-style and getopt-style usages are accepted; combining them will
211
<DT><STRONG><A NAME="item_server_%5B%2D%2Dnoauthenticate%5D_%5Bserver%5D">server [--noauthenticate] [server]</A></STRONG><BR>
213
<DT><STRONG><A NAME="item_connect_%5B%2D%2Dnoauthenticate%5D_%5Bserver%5D">connect [--noauthenticate] [server]</A></STRONG><BR>
215
<DT><STRONG><A NAME="item_servername_%5B%2D%2Dnoauthenticate%5D_%5Bserver%5D">servername [--noauthenticate] [server]</A></STRONG><BR>
217
With no arguments, show the current server. With an argument, connect to that
218
server. It will prompt for automatic login unless the <CODE>--noauthenticate</CODE>
270
produce an error.</p>
273
<dt><strong><a name="item_server__5b_2d_2dnoauthenticate_5d__5bserver_5d">server [--noauthenticate] [server]</a></strong>
275
<dt><strong><a name="item_connect__5b_2d_2dnoauthenticate_5d__5bserver_5d">connect [--noauthenticate] [server]</a></strong>
277
<dt><strong><a name="item_servername__5b_2d_2dnoauthenticate_5d__5bserver_5d">servername [--noauthenticate] [server]</a></strong>
280
<p>With no arguments, show the current server. With an argument, connect to that
281
server. It will prompt for automatic login unless the <code>--noauthenticate</code>
219
282
option is specified. (This may change; in particular, either automatic
220
authentication will be removed or all <CODE>authenticate</CODE> options will be added.)
221
<P>When connected to a server, <STRONG>cyradm</STRONG>'s prompt changes from <CODE>cyradm></CODE> to
222
<CODE>servername></CODE>, where <EM>servername</EM> is the fully qualified domain name
223
of the connected server.</P>
225
<DT><STRONG><A NAME="item_setaclmailbox_mailbox_id_rights_%5Bid_rights_%2E%2"><CODE>setaclmailbox</CODE> <EM>mailbox</EM> <EM>id</EM> <EM>rights</EM> [<EM>id</EM> <EM>rights</EM> ...]</A></STRONG><BR>
227
<DT><STRONG><A NAME="item_setacl_mailbox_id_rights_%5Bid_rights_%2E%2E%2E%5D"><CODE>setacl</CODE> <EM>mailbox</EM> <EM>id</EM> <EM>rights</EM> [<EM>id</EM> <EM>rights</EM> ...]</A></STRONG><BR>
229
<DT><STRONG><A NAME="item_sam_mailbox_id_rights_%5Bid_rights_%2E%2E%2E%5D"><CODE>sam</CODE> <EM>mailbox</EM> <EM>id</EM> <EM>rights</EM> [<EM>id</EM> <EM>rights</EM> ...]</A></STRONG><BR>
231
Set ACLs on a mailbox. The ACL may be one of the special strings <CODE>none</CODE>,
232
<CODE>read</CODE> (<CODE>lrs</CODE>), <CODE>post</CODE> (<CODE>lrsp</CODE>), <CODE>append</CODE> (<CODE>lrsip</CODE>), <CODE>write</CODE>
233
(<CODE>lrswipcd</CODE>), or <CODE>all</CODE> (<CODE>lrswipcda</CODE>), or any combinations of the ACL codes:
235
<DT><STRONG><A NAME="item_l">l</A></STRONG><BR>
237
Lookup (visible to LIST/LSUB/UNSEEN)
239
<DT><STRONG><A NAME="item_r">r</A></STRONG><BR>
241
Read (SELECT, CHECK, FETCH, PARTIAL, SEARCH, COPY source)
243
<DT><STRONG><A NAME="item_s">s</A></STRONG><BR>
247
<DT><STRONG><A NAME="item_w">w</A></STRONG><BR>
249
Write flags other than \SEEN and \DELETED
251
<DT><STRONG><A NAME="item_i">i</A></STRONG><BR>
253
Insert (APPEND, COPY destination)
255
<DT><STRONG><A NAME="item_p">p</A></STRONG><BR>
257
Post (send mail to mailbox)
259
<DT><STRONG><A NAME="item_c">c</A></STRONG><BR>
261
Create and Delete mailbox (CREATE new sub-mailboxes, RENAME or DELETE mailbox)
263
<DT><STRONG><A NAME="item_d">d</A></STRONG><BR>
265
Delete (STORE \DELETED, EXPUNGE)
267
<DT><STRONG><A NAME="item_a">a</A></STRONG><BR>
271
<DT><STRONG><A NAME="item_setinfo_attribute_value"><CODE>setinfo</CODE> <EM>attribute</EM> <EM>value</EM></A></STRONG><BR>
273
Set server metadata. A value of ``none'' will remove the attribute.
274
The currently supported attributes are:
276
<DT><STRONG><A NAME="item_motd"><CODE>motd</CODE></A></STRONG><BR>
278
Sets a ``message of the day''. The message gets displayed as an ALERT after
281
<DT><STRONG><CODE>comment</CODE></STRONG><BR>
283
Sets a comment or description associated with the server.
285
<DT><STRONG><A NAME="item_admin"><CODE>admin</CODE></A></STRONG><BR>
287
Sets the administrator email address for the server.
289
<DT><STRONG><A NAME="item_shutdown"><CODE>shutdown</CODE></A></STRONG><BR>
291
Sets a shutdown message. The message gets displayed as an ALERT and
292
all users are disconnected from the server (subsequent logins are disallowed).
294
<DT><STRONG><CODE>expire</CODE></STRONG><BR>
296
Sets the number of days after which messages will be expired from the
297
server (unless overridden by a mailbox annotation).
299
<DT><STRONG><CODE>squat</CODE></STRONG><BR>
301
Indicates that all mailboxes should have a squat indexes created for
302
them (unless overridden by a mailbox annotation).
304
<DT><STRONG><A NAME="item_setquota_root_resource_value_%5Bresource_value_%2E"><CODE>setquota</CODE> <EM>root</EM> <EM>resource</EM> <EM>value</EM> [<EM>resource</EM> <EM>value</EM> ...]</A></STRONG><BR>
306
<DT><STRONG><A NAME="item_sq_root_resource_value_%5Bresource_value_%2E%2E%2E"><CODE>sq</CODE> <EM>root</EM> <EM>resource</EM> <EM>value</EM> [<EM>resource</EM> <EM>value</EM> ...]</A></STRONG><BR>
308
Set a quota on the specified root, which may or may not be an actual mailbox.
309
The only <EM>resource</EM> understood by <STRONG>Cyrus</STRONG> is <CODE>STORAGE</CODE>. The <EM>value</EM> may
310
be the special string <CODE>none</CODE> which will remove the quota.
312
<DT><STRONG><A NAME="item_version"><CODE>version</CODE></A></STRONG><BR>
314
<DT><STRONG><A NAME="item_ver"><CODE>ver</CODE></A></STRONG><BR>
316
Display the version info of the current server.
318
<DT><STRONG><A NAME="item_xfermailbox_%5B%2D%2Dpartition_partition%5D_mailbo"><CODE>xfermailbox</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>mailbox</EM> <EM>server</EM></A></STRONG><BR>
320
<DT><STRONG><A NAME="item_xfer_%5B%2D%2Dpartition_partition%5D_mailbox_serve"><CODE>xfer</CODE> [<CODE>--partition</CODE> <EM>partition</EM>] <EM>mailbox</EM> <EM>server</EM></A></STRONG><BR>
322
<DT><STRONG><A NAME="item_xfermailbox_mailbox_server_%5Bpartition%5D"><CODE>xfermailbox</CODE> <EM>mailbox</EM> <EM>server</EM> [<EM>partition</EM>]</A></STRONG><BR>
324
<DT><STRONG><A NAME="item_xfer_mailbox_server_%5Bpartition%5D"><CODE>xfer</CODE> <EM>mailbox</EM> <EM>server</EM> [<EM>partition</EM>]</A></STRONG><BR>
326
Transfer (relocate) the specified mailbox to a different server.
283
authentication will be removed or all <code>authenticate</code> options will be added.)</p>
286
<p>When connected to a server, <strong>cyradm</strong>'s prompt changes from <code>cyradm></code> to
287
<code>servername></code>, where <em>servername</em> is the fully qualified domain name
288
of the connected server.</p>
291
<dt><strong><a name="item_setaclmailbox_mailbox_id_rights__5bid_rights__2e_2"><code>setaclmailbox</code> <em>mailbox</em> <em>id</em> <em>rights</em> [<em>id</em> <em>rights</em> ...]</a></strong>
293
<dt><strong><a name="item_setacl_mailbox_id_rights__5bid_rights__2e_2e_2e_5d"><code>setacl</code> <em>mailbox</em> <em>id</em> <em>rights</em> [<em>id</em> <em>rights</em> ...]</a></strong>
295
<dt><strong><a name="item_sam_mailbox_id_rights__5bid_rights__2e_2e_2e_5d"><code>sam</code> <em>mailbox</em> <em>id</em> <em>rights</em> [<em>id</em> <em>rights</em> ...]</a></strong>
298
<p>Set ACLs on a mailbox. The ACL may be one of the special strings <code>none</code>,
299
<code>read</code> (<code>lrs</code>), <code>post</code> (<code>lrsp</code>), <code>append</code> (<code>lrsip</code>), <code>write</code>
300
(<code>lrswipcd</code>), or <code>all</code> (<code>lrswipcda</code>), or any combinations of the ACL codes:</p>
303
<dt><strong><a name="item_l">l</a></strong>
306
<p>Lookup (visible to LIST/LSUB/UNSEEN)</p>
309
<dt><strong><a name="item_r">r</a></strong>
312
<p>Read (SELECT, CHECK, FETCH, PARTIAL, SEARCH, COPY source)</p>
315
<dt><strong><a name="item_s">s</a></strong>
318
<p>Seen (STORE \SEEN)</p>
321
<dt><strong><a name="item_w">w</a></strong>
324
<p>Write flags other than \SEEN and \DELETED</p>
327
<dt><strong><a name="item_i">i</a></strong>
330
<p>Insert (APPEND, COPY destination)</p>
333
<dt><strong><a name="item_p">p</a></strong>
336
<p>Post (send mail to mailbox)</p>
339
<dt><strong><a name="item_c">c</a></strong>
342
<p>Create and Delete mailbox (CREATE new sub-mailboxes, RENAME or DELETE mailbox)</p>
345
<dt><strong><a name="item_d">d</a></strong>
348
<p>Delete (STORE \DELETED, EXPUNGE)</p>
351
<dt><strong><a name="item_a">a</a></strong>
354
<p>Administer (SETACL)</p>
358
<dt><strong><a name="item_setinfo_attribute_value"><code>setinfo</code> <em>attribute</em> <em>value</em></a></strong>
361
<p>Set server metadata. A value of ``none'' will remove the attribute.
362
The currently supported attributes are:</p>
365
<dt><strong><a name="item_motd"><code>motd</code></a></strong>
368
<p>Sets a ``message of the day''. The message gets displayed as an ALERT after
372
<dt><strong><code>comment</code></strong>
375
<p>Sets a comment or description associated with the server.</p>
378
<dt><strong><a name="item_admin"><code>admin</code></a></strong>
381
<p>Sets the administrator email address for the server.</p>
384
<dt><strong><a name="item_shutdown"><code>shutdown</code></a></strong>
387
<p>Sets a shutdown message. The message gets displayed as an ALERT and
388
all users are disconnected from the server (subsequent logins are disallowed).</p>
391
<dt><strong><code>expire</code></strong>
394
<p>Sets the number of days after which messages will be expired from the
395
server (unless overridden by a mailbox annotation).</p>
398
<dt><strong><code>squat</code></strong>
401
<p>Indicates that all mailboxes should have a squat indexes created for
402
them (unless overridden by a mailbox annotation).</p>
406
<dt><strong><a name="item_setquota_root_resource_value__5bresource_value__2e"><code>setquota</code> <em>root</em> <em>resource</em> <em>value</em> [<em>resource</em> <em>value</em> ...]</a></strong>
408
<dt><strong><a name="item_sq_root_resource_value__5bresource_value__2e_2e_2e"><code>sq</code> <em>root</em> <em>resource</em> <em>value</em> [<em>resource</em> <em>value</em> ...]</a></strong>
411
<p>Set a quota on the specified root, which may or may not be an actual mailbox.
412
The only <em>resource</em> understood by <strong>Cyrus</strong> is <code>STORAGE</code>. The <em>value</em> may
413
be the special string <code>none</code> which will remove the quota.</p>
416
<dt><strong><a name="item_version"><code>version</code></a></strong>
418
<dt><strong><a name="item_ver"><code>ver</code></a></strong>
421
<p>Display the version info of the current server.</p>
424
<dt><strong><a name="item_xfermailbox__5b_2d_2dpartition_partition_5d_mailbo"><code>xfermailbox</code> [<code>--partition</code> <em>partition</em>] <em>mailbox</em> <em>server</em></a></strong>
426
<dt><strong><a name="item_xfer__5b_2d_2dpartition_partition_5d_mailbox_serve"><code>xfer</code> [<code>--partition</code> <em>partition</em>] <em>mailbox</em> <em>server</em></a></strong>
428
<dt><strong><a name="item_xfermailbox_mailbox_server__5bpartition_5d"><code>xfermailbox</code> <em>mailbox</em> <em>server</em> [<em>partition</em>]</a></strong>
430
<dt><strong><a name="item_xfer_mailbox_server__5bpartition_5d"><code>xfer</code> <em>mailbox</em> <em>server</em> [<em>partition</em>]</a></strong>
433
<p>Transfer (relocate) the specified mailbox to a different server.
327
434
Both old-style and getopt-style usages are accepted; combining them will
332
<H1><A NAME="notes">NOTES</A></H1>
333
<P>GNU-style long options must be given in their entirety; Tcl-style options
334
may be abbreviated.</P>
335
<P>Tcl-style options are provided as a compatibility feature. They will
336
probably go away in the future.</P>
337
<P>Multiple commands can be given on a line, separated by <CODE>';'</CODE> characters.</P>
338
<P>All commands set an exit status, which at present is not useful.</P>
339
<P>Unknown commands are passed to a subshell for execution.</P>
340
<P>The Tcl version of <STRONG>cyradm</STRONG> is used for scripting as well as interactively.
341
While this is possible to a limited extent by use of the <CODE>run</CODE> method,
342
scripting would normally be done with <CODE>Cyrus::IMAP::Admin</CODE>, which is far
343
more flexible than either interactive <CODE>cyradm</CODE> or the Tcl scripting
344
mechanism for Cyrus.</P>
345
<P><STRONG>cyradm</STRONG> understands <STRONG>/bin/sh</STRONG>-style redirection: any command can have
346
its standard or error output redirected, with all <STRONG>sh</STRONG>-style redirections
347
(except <CODE><></CODE>) supported. It does not currently understand pipes
348
or backgrounding.</P>
349
<P>If the <CODE>Term::Readline::Perl</CODE> or <CODE>Term::Readline::GNU</CODE> modules are
350
available, <STRONG>cyradm</STRONG> will use it.</P>
351
<P>An alias facility is implemented internally, but no access is currently
435
produce an error.</p>
442
<h1><a name="notes">NOTES</a></h1>
443
<p>GNU-style long options must be given in their entirety; Tcl-style options
444
may be abbreviated.</p>
445
<p>Tcl-style options are provided as a compatibility feature. They will
446
probably go away in the future.</p>
447
<p>Multiple commands can be given on a line, separated by <code>';'</code> characters.</p>
448
<p>All commands set an exit status, which at present is not useful.</p>
449
<p>Unknown commands are passed to a subshell for execution.</p>
450
<p>The Tcl version of <strong>cyradm</strong> is used for scripting as well as interactively.
451
While this is possible to a limited extent by use of the <code>run</code> method,
452
scripting would normally be done with <code>Cyrus::IMAP::Admin</code>, which is far
453
more flexible than either interactive <code>cyradm</code> or the Tcl scripting
454
mechanism for Cyrus.</p>
455
<p><strong>cyradm</strong> understands <strong>/bin/sh</strong>-style redirection: any command can have
456
its standard or error output redirected, with all <strong>sh</strong>-style redirections
457
(except <code><></code>) supported. It does not currently understand pipes
458
or backgrounding.</p>
459
<p>If the <code>Term::Readline::Perl</code> or <code>Term::Readline::GNU</code> modules are
460
available, <strong>cyradm</strong> will use it.</p>
461
<p>An alias facility is implemented internally, but no access is currently
352
462
provided to it. This will change, if only to allow some of the predefined
353
aliases to be removed if they conflict with useful shell commands.</P>
356
<H1><A NAME="author">AUTHOR</A></H1>
357
<P>Brandon S. Allbery, <A HREF="mailto:allbery@ece.cmu.edu">allbery@ece.cmu.edu</A></P>
360
<H1><A NAME="see also">SEE ALSO</A></H1>
361
<P>Cyrus::IMAP::Admin
463
aliases to be removed if they conflict with useful shell commands.</p>
467
<h1><a name="author">AUTHOR</a></h1>
468
<p>Brandon S. Allbery, <a href="mailto:allbery@ece.cmu.edu">allbery@ece.cmu.edu</a></p>
472
<h1><a name="see_also">SEE ALSO</a></h1>
473
<p>Cyrus::IMAP::Admin
363
sh(1), perl(1), imapd(8).</P>
475
sh(1), perl(1), imapd(8).</p>