* Move to GPL v3
[citadel.git] / citadel / docs / citadel.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4   <title>Citadel Documentation</title>
5   <meta http-equiv="content-type"
6  content="text/html; charset=ISO-8859-1">
7 </head>
8 <body>
9 <div align="center">
10 <h1>C I T A D E L</h1>
11 <h2>an open source messaging and collaboration platform</h2>
12 Copyright &copy;1987-2007 by the Citadel development team:<br>
13 <br>
14 <table align="center" border="0" cellpadding="2" cellspacing="2">
15   <tbody>
16     <tr>
17       <td valign="top">Clint Adams<br>
18       </td>
19       <td valign="top"><i>portability enhancements<br>
20       </i></td>
21     </tr>
22     <tr>
23       <td valign="top">Steven M. Bellovin<br>
24       </td>
25       <td valign="top"><i>author of public domain 'parsedate' function<br>
26       </i></td>
27     </tr>
28     <tr>
29       <td valign="top">Nathan Bryant<br>
30       </td>
31       <td valign="top"><i>build system, security, database access, and
32 others<br>
33       </i></td>
34     </tr>
35     <tr>
36       <td valign="top">Art Cancro<br>
37       </td>
38       <td valign="top"><i>overall system design and lead developer<br>
39       </i></td>
40     </tr>
41     <tr>
42       <td valign="top">Brian Costello<br>
43       </td>
44       <td valign="top"><i>cosmetics, additional commands<br>
45       </i></td>
46     </tr>
47     <tr>
48       <td valign="top">Nick Georbit<br>
49       </td>
50       <td valign="top"><i>additional client features<br>
51       </i></td>
52     </tr>
53     <tr>
54       <td valign="top">David Given<br>
55       </td>
56       <td valign="top"><i>IMAP and build patches<br>
57       </i></td>
58     </tr>
59     <tr>
60       <td valign="top">Wilfried Goesgens<br>
61       </td>
62       <td valign="top"><i>build system patches<br>
63       </i></td>
64     </tr>
65     <tr>
66       <td valign="top">Michael Hampton<br>
67       </td>
68       <td valign="top"><i>client software development<br>
69       </i></td>
70     </tr>
71     <tr>
72       <td valign="top">Andru Luvisi<br>
73       </td>
74       <td valign="top"><i>troubleshooting and development assistance<br>
75       </i></td>
76     </tr>
77     <tr>
78       <td valign="top">Daniel Malament<br>
79       </td>
80       <td valign="top"><i>string compare function for IMAP server<br>
81       </i></td>
82     </tr>
83     <tr>
84       <td valign="top">Stu Mark<br>
85       </td>
86       <td valign="top"><i>additional client features, IGnet protocol design<br>
87       </i></td>
88     </tr>
89     <tr>
90       <td valign="top">Edward S. Marshall<br>
91       </td>
92       <td valign="top"><i>RBL checking function design<br>
93       </i></td>
94     </tr>
95     <tr>
96       <td valign="top">Ben Mehlman<br>
97       </td>
98       <td valign="top"><i>additional client features<br>
99       </i></td>
100     </tr>
101     <tr>
102       <td valign="top">Matt Pfleger<br>
103       </td>
104       <td valign="top"><i>additional client features<br>
105       </i></td>
106     </tr>
107     <tr>
108       <td valign="top">Ari Samson<br>
109       </td>
110       <td valign="top"><i>assistance with project management<br>
111       </i></td>
112     </tr>
113     <tr>
114       <td valign="top">Trey Van Riper<br>
115       </td>
116       <td valign="top"><i>QA and portability enhancements<br>
117       </i></td>
118     </tr>
119     <tr>
120       <td valign="top">John Walker<br>
121       </td>
122       <td valign="top"><i>author of public domain base64 encoder/decoder<br>
123       </i></td>
124     </tr>
125     <tr>
126       <td valign="top">Steve Williams<br>
127       </td>
128       <td valign="top"><i>documentation<br>
129       </i></td>
130     </tr>
131     <tr>
132       <td valign="top">Ethan Young<br>
133       </td>
134       <td valign="top"><i>IGnet protocol design<br>
135       </i></td>
136     </tr>
137   </tbody>
138 </table>
139 </div>
140 <br>
141 <div align="justify">The entire package is open source software.  You may
142 redistribute and/or modify it under the terms of the GNU General Public
143 License, version 3, which is included in this manual.<br>
144 <br>
145 This program is distributed in the hope that it will be useful, but
146 WITHOUT ANY WARRANTY; without even the implied warranty of
147 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
148 General Public License for more details. </div>
149 <div align="justify"><br>
150 For more information, visit either of these locations on
151 the web:<br>
152 <ul>
153   <li>The Citadel home page: <a href="http://www.citadel.org">http://www.citadel.org</a></li>
154   <li>UNCENSORED! BBS, the home of Citadel: <a
155  href="http://uncensored.citadel.org">http://uncensored.citadel.org</a></li>
156 </ul>
157 <hr size="2" width="100%">
158 <h2 align="center">Table of Contents</h2>
159 <ol>
160   <li><a href="#GPL">License</a></li>
161   <li><a href="#Installation">Installation</a></li>
162   <ol>
163     <li><a href="#Everything_in_its_place...">Everything in its
164 place...</a></li>
165     <li><a href="#ctdl_login_acct">Creating a system account for Citadel</a></li>
166     <li><a href="#bypassing_login">Bypassing the login:
167 prompt</a></li>
168     <li><a href="#Compiling_the_programs">Compiling the programs</a></li>
169     <li><a href="#Upgrading">Upgrading</a></li>
170     <li><a href="#rc_file">The citadel.rc file</a></li>
171     <li><a href="#Using_an_external_editor_for_message">Using an
172 external editor for message composition</a></li>
173     <li><a href="#Printing_messages">Printing messages</a></li>
174     <li><a href="#URL_viewing">URL viewing</a></li>
175     <li><a href="#Setup_and_login">Setup and login</a></li>
176     <li><a href="#Configuring_your_host_system_to_start">Configuring
177 your host system to start the service</a></li>
178     <li><a href="#first_time_login">Logging in for
179 the first time</a></li>
180     <li><a href="#Welcoming_new_users">Welcoming new users</a></li>
181     <li><a href="#adding_doors">Space for adding
182 your own client features (doors)</a></li>
183     <li><a href="#Troubleshooting_and_getting_help">Troubleshooting and
184 getting help</a><br>
185     </li>
186   </ol>
187   <li><a href="#sysop">System Administration</a></li>
188   <ol>
189     <li><a href="#Overview_">Overview</a></li>
190     <li><a href="#Aide_commands">Aide commands</a></li>
191     <li><a href="#Editing_rooms">Editing rooms</a></li>
192     <li><a href="#File_directories">File directories</a></li>
193     <li><a href="#Creating_and_editing_user_accounts">Creating and
194 editing user accounts</a></li>
195     <li><a href="#Deleting_and_moving_messages">Deleting and moving
196 messages</a></li>
197     <li><a href="#Customizing_the_help_files">Customizing the help files</a></li>
198     <li><a href="#Site_configuration">Site configuration</a><br>
199     </li>
200   </ol>
201   <li> <a href="#Configuring_Citadel_for_Internet_e-mail">Configuring
202 Citadel for Internet e-mail</a></li>
203   <ol>
204     <li><a href="#Introduction">Introduction</a></li>
205     <li><a href="#Basic_site_configuration">Basic site configuration</a></li>
206     <li><a href="#Enabling_the_Internet_mail_protocols">Enabling the
207 Internet mail protocols</a></li>
208     <li><a href="#Hosting_an_Internet_mailing_list">Hosting an Internet
209 mailing list</a><br>
210     </li>
211     <li><a href="#citmail">Using Citadel in conjunction with another MTA</a></li>
212   </ol>
213   <li><a href="#Building_or_joining_a_Citadel_network">Building or
214 joining a Citadel network</a></li>
215   <ol>
216     <li><a href="#Overview__">Overview</a></li>
217     <li><a href="#Conventions_and_etiquette_when">Conventions and
218 etiquette when connecting to the public Citadel network</a></li>
219     <li><a href="#Getting_ready_to_join_the_network">Getting ready
220 to join the network</a></li>
221     <li><a href="#Defining_neighbor_nodes">Defining neighbor nodes</a></li>
222     <li><a href="#Sharing_rooms">Sharing rooms</a></li>
223     <li><a href="#Sending_mail">Sending mail</a></li>
224     <li><a href="#Changing_the_polling_interval">Changing the polling
225 interval</a></li>
226   </ol>
227   <li><a href="#Database_maintenance">Database maintenance</a></li>
228   <ol>
229     <li><a href="#Introduction_">Introduction</a></li>
230     <li><a href="#Backing_up_your_Citadel_database">Backing up your
231 Citadel database</a><br>
232     </li>
233     <li><a href="#Database_repair">Database repair</a></li>
234     <li><a href="#ImportingExporting_your_Citadel">Importing/Exporting
235 your Citadel database</a><br>
236     </li>
237   </ol>
238   <li><a href="#crypto">Cryptography support (TLS/SSL)</a></li>
239   <ol>
240     <li><a href="#crypto_intro">Overview</a></li>
241     <li><a href="#real_cert">Generating and installing a Trusted
242 Certificate</a></li>
243   </ol>
244   <li><a href="#LDAP_Directory_Support">LDAP directory support</a></li>
245   <ol>
246     <li><a href="#Introduction_ldap">Introduction</a></li>
247     <li><a href="#Preparing_your_LDAP_server_for_Citadel">Preparing
248 your LDAP server for Citadel connections</a><br>
249     </li>
250     <li><a href="#Configuring_the_LDAP_Connector_for">Configuring the
251 LDAP Connector for Citadel</a><br>
252     </li>
253   </ol>
254   <li><a href="#utilities">Included utilities</a></li>
255   <ol>
256     <li><a href="#overview">Overview</a></li>
257     <li><a href="#aidepost">aidepost</a></li>
258     <li><a href="#whobbs">whobbs</a></li>
259     <li><a href="#msgform">msgform</a></li>
260     <li><a href="#userlist">userlist</a></li>
261     <li><a href="#sendcommand">sendcommand</a></li>
262   </ol>
263 </ol>
264 <br>
265 <hr size="2" width="100%"><br>
266 <h2 align="center"><a name="GPL"></a>GNU General Public License<br>
267 </h2>
268 </div>
269
270 <p style="text-align: center;">Version 3, 29 June 2007</p>
271
272 <p>Copyright (C) 2007 Free Software Foundation, Inc. &lt;http://fsf.org/&gt;</p><p>
273
274  Everyone is permitted to copy and distribute verbatim copies
275  of this license document, but changing it is not allowed.</p>
276
277 <h3><a name="preamble"></a>Preamble</h3>
278
279 <p>The GNU General Public License is a free, copyleft license for
280 software and other kinds of works.</p>
281
282 <p>The licenses for most software and other practical works are designed
283 to take away your freedom to share and change the works.  By contrast,
284 the GNU General Public License is intended to guarantee your freedom to
285 share and change all versions of a program--to make sure it remains free
286 software for all its users.  We, the Free Software Foundation, use the
287 GNU General Public License for most of our software; it applies also to
288 any other work released this way by its authors.  You can apply it to
289 your programs, too.</p>
290
291 <p>When we speak of free software, we are referring to freedom, not
292 price.  Our General Public Licenses are designed to make sure that you
293 have the freedom to distribute copies of free software (and charge for
294 them if you wish), that you receive source code or can get it if you
295 want it, that you can change the software or use pieces of it in new
296 free programs, and that you know you can do these things.</p>
297
298 <p>To protect your rights, we need to prevent others from denying you
299 these rights or asking you to surrender the rights.  Therefore, you have
300 certain responsibilities if you distribute copies of the software, or if
301 you modify it: responsibilities to respect the freedom of others.</p>
302
303 <p>For example, if you distribute copies of such a program, whether
304 gratis or for a fee, you must pass on to the recipients the same
305 freedoms that you received.  You must make sure that they, too, receive
306 or can get the source code.  And you must show them these terms so they
307 know their rights.</p>
308
309 <p>Developers that use the GNU GPL protect your rights with two steps:
310 (1) assert copyright on the software, and (2) offer you this License
311 giving you legal permission to copy, distribute and/or modify it.</p>
312
313 <p>For the developers' and authors' protection, the GPL clearly explains
314 that there is no warranty for this free software.  For both users' and
315 authors' sake, the GPL requires that modified versions be marked as
316 changed, so that their problems will not be attributed erroneously to
317 authors of previous versions.</p>
318
319 <p>Some devices are designed to deny users access to install or run
320 modified versions of the software inside them, although the manufacturer
321 can do so.  This is fundamentally incompatible with the aim of
322 protecting users' freedom to change the software.  The systematic
323 pattern of such abuse occurs in the area of products for individuals to
324 use, which is precisely where it is most unacceptable.  Therefore, we
325 have designed this version of the GPL to prohibit the practice for those
326 products.  If such problems arise substantially in other domains, we
327 stand ready to extend this provision to those domains in future versions
328 of the GPL, as needed to protect the freedom of users.</p>
329
330 <p>Finally, every program is threatened constantly by software patents.
331 States should not allow patents to restrict development and use of
332 software on general-purpose computers, but in those that do, we wish to
333 avoid the special danger that patents applied to a free program could
334 make it effectively proprietary.  To prevent this, the GPL assures that
335 patents cannot be used to render the program non-free.</p>
336
337 <p>The precise terms and conditions for copying, distribution and
338 modification follow.</p>
339
340 <h3><a name="terms"></a>TERMS AND CONDITIONS</h3>
341
342 <h4><a name="section0"></a>0. Definitions.</h4>
343
344 <p>&ldquo;This License&rdquo; refers to version 3 of the GNU General Public License.</p>
345
346 <p>&ldquo;Copyright&rdquo; also means copyright-like laws that apply to other kinds of
347 works, such as semiconductor masks.</p>
348  
349
350 <p>&ldquo;The Program&rdquo; refers to any copyrightable work licensed under this
351 License.  Each licensee is addressed as &ldquo;you&rdquo;.  &ldquo;Licensees&rdquo; and
352 &ldquo;recipients&rdquo; may be individuals or organizations.</p>
353
354 <p>To &ldquo;modify&rdquo; a work means to copy from or adapt all or part of the work
355 in a fashion requiring copyright permission, other than the making of an
356 exact copy.  The resulting work is called a &ldquo;modified version&rdquo; of the
357 earlier work or a work &ldquo;based on&rdquo; the earlier work.</p>
358
359 <p>A &ldquo;covered work&rdquo; means either the unmodified Program or a work based
360 on the Program.</p>
361
362 <p>To &ldquo;propagate&rdquo; a work means to do anything with it that, without
363 permission, would make you directly or secondarily liable for
364 infringement under applicable copyright law, except executing it on a
365 computer or modifying a private copy.  Propagation includes copying,
366 distribution (with or without modification), making available to the
367 public, and in some countries other activities as well.</p>
368
369 <p>To &ldquo;convey&rdquo; a work means any kind of propagation that enables other
370 parties to make or receive copies.  Mere interaction with a user through
371 a computer network, with no transfer of a copy, is not conveying.</p>
372
373 <p>An interactive user interface displays &ldquo;Appropriate Legal Notices&rdquo;
374 to the extent that it includes a convenient and prominently visible
375 feature that (1) displays an appropriate copyright notice, and (2)
376 tells the user that there is no warranty for the work (except to the
377 extent that warranties are provided), that licensees may convey the
378 work under this License, and how to view a copy of this License.  If
379 the interface presents a list of user commands or options, such as a
380 menu, a prominent item in the list meets this criterion.</p>
381
382 <h4><a name="section1"></a>1. Source Code.</h4>
383
384 <p>The &ldquo;source code&rdquo; for a work means the preferred form of the work
385 for making modifications to it.  &ldquo;Object code&rdquo; means any non-source
386 form of a work.</p>
387
388 <p>A &ldquo;Standard Interface&rdquo; means an interface that either is an official
389 standard defined by a recognized standards body, or, in the case of
390 interfaces specified for a particular programming language, one that
391 is widely used among developers working in that language.</p>
392
393 <p>The &ldquo;System Libraries&rdquo; of an executable work include anything, other
394 than the work as a whole, that (a) is included in the normal form of
395 packaging a Major Component, but which is not part of that Major
396 Component, and (b) serves only to enable use of the work with that
397 Major Component, or to implement a Standard Interface for which an
398 implementation is available to the public in source code form.  A
399 &ldquo;Major Component&rdquo;, in this context, means a major essential component
400 (kernel, window system, and so on) of the specific operating system
401 (if any) on which the executable work runs, or a compiler used to
402 produce the work, or an object code interpreter used to run it.</p>
403
404 <p>The &ldquo;Corresponding Source&rdquo; for a work in object code form means all
405 the source code needed to generate, install, and (for an executable
406 work) run the object code and to modify the work, including scripts to
407 control those activities.  However, it does not include the work's
408 System Libraries, or general-purpose tools or generally available free
409 programs which are used unmodified in performing those activities but
410 which are not part of the work.  For example, Corresponding Source
411 includes interface definition files associated with source files for
412 the work, and the source code for shared libraries and dynamically
413 linked subprograms that the work is specifically designed to require,
414 such as by intimate data communication or control flow between those
415 subprograms and other parts of the work.</p>
416
417 <p>The Corresponding Source need not include anything that users
418 can regenerate automatically from other parts of the Corresponding
419 Source.</p>
420
421 <p>The Corresponding Source for a work in source code form is that
422 same work.</p>
423
424 <h4><a name="section2"></a>2. Basic Permissions.</h4>
425
426 <p>All rights granted under this License are granted for the term of
427 copyright on the Program, and are irrevocable provided the stated
428 conditions are met.  This License explicitly affirms your unlimited
429 permission to run the unmodified Program.  The output from running a
430 covered work is covered by this License only if the output, given its
431 content, constitutes a covered work.  This License acknowledges your
432 rights of fair use or other equivalent, as provided by copyright law.</p>
433
434 <p>You may make, run and propagate covered works that you do not
435 convey, without conditions so long as your license otherwise remains
436 in force.  You may convey covered works to others for the sole purpose
437 of having them make modifications exclusively for you, or provide you
438 with facilities for running those works, provided that you comply with
439 the terms of this License in conveying all material for which you do
440 not control copyright.  Those thus making or running the covered works
441 for you must do so exclusively on your behalf, under your direction
442 and control, on terms that prohibit them from making any copies of
443 your copyrighted material outside their relationship with you.</p>
444
445 <p>Conveying under any other circumstances is permitted solely under
446 the conditions stated below.  Sublicensing is not allowed; section 10
447 makes it unnecessary.</p>
448
449 <h4><a name="section3"></a>3. Protecting Users' Legal Rights From Anti-Circumvention Law.</h4>
450
451 <p>No covered work shall be deemed part of an effective technological
452 measure under any applicable law fulfilling obligations under article
453 11 of the WIPO copyright treaty adopted on 20 December 1996, or
454 similar laws prohibiting or restricting circumvention of such
455 measures.</p>
456
457 <p>When you convey a covered work, you waive any legal power to forbid
458 circumvention of technological measures to the extent such circumvention
459 is effected by exercising rights under this License with respect to
460 the covered work, and you disclaim any intention to limit operation or
461 modification of the work as a means of enforcing, against the work's
462 users, your or third parties' legal rights to forbid circumvention of
463 technological measures.</p>
464
465 <h4><a name="section4"></a>4. Conveying Verbatim Copies.</h4>
466
467 <p>You may convey verbatim copies of the Program's source code as you
468 receive it, in any medium, provided that you conspicuously and
469 appropriately publish on each copy an appropriate copyright notice;
470 keep intact all notices stating that this License and any
471 non-permissive terms added in accord with section 7 apply to the code;
472 keep intact all notices of the absence of any warranty; and give all
473 recipients a copy of this License along with the Program.</p>
474
475 <p>You may charge any price or no price for each copy that you convey,
476 and you may offer support or warranty protection for a fee.</p>
477
478 <h4><a name="section5"></a>5. Conveying Modified Source Versions.</h4>
479
480 <p>You may convey a work based on the Program, or the modifications to
481 produce it from the Program, in the form of source code under the
482 terms of section 4, provided that you also meet all of these conditions:</p>
483
484 <ul>
485 <li>a) The work must carry prominent notices stating that you modified
486     it, and giving a relevant date.</li>
487
488 <li>b) The work must carry prominent notices stating that it is
489     released under this License and any conditions added under section
490     7.  This requirement modifies the requirement in section 4 to
491     &ldquo;keep intact all notices&rdquo;.</li>
492
493 <li>c) You must license the entire work, as a whole, under this
494     License to anyone who comes into possession of a copy.  This
495     License will therefore apply, along with any applicable section 7
496     additional terms, to the whole of the work, and all its parts,
497     regardless of how they are packaged.  This License gives no
498     permission to license the work in any other way, but it does not
499     invalidate such permission if you have separately received it.</li>
500
501 <li>d) If the work has interactive user interfaces, each must display
502     Appropriate Legal Notices; however, if the Program has interactive
503     interfaces that do not display Appropriate Legal Notices, your
504     work need not make them do so.</li>
505 </ul>
506
507 <p>A compilation of a covered work with other separate and independent
508 works, which are not by their nature extensions of the covered work,
509 and which are not combined with it such as to form a larger program,
510 in or on a volume of a storage or distribution medium, is called an
511 &ldquo;aggregate&rdquo; if the compilation and its resulting copyright are not
512 used to limit the access or legal rights of the compilation's users
513 beyond what the individual works permit.  Inclusion of a covered work
514 in an aggregate does not cause this License to apply to the other
515 parts of the aggregate.</p>
516
517 <h4><a name="section6"></a>6. Conveying Non-Source Forms.</h4>
518
519 <p>You may convey a covered work in object code form under the terms
520 of sections 4 and 5, provided that you also convey the
521 machine-readable Corresponding Source under the terms of this License,
522 in one of these ways:</p>
523
524 <ul>
525 <li>a) Convey the object code in, or embodied in, a physical product
526     (including a physical distribution medium), accompanied by the
527     Corresponding Source fixed on a durable physical medium
528     customarily used for software interchange.</li>
529
530 <li>b) Convey the object code in, or embodied in, a physical product
531     (including a physical distribution medium), accompanied by a
532     written offer, valid for at least three years and valid for as
533     long as you offer spare parts or customer support for that product
534     model, to give anyone who possesses the object code either (1) a
535     copy of the Corresponding Source for all the software in the
536     product that is covered by this License, on a durable physical
537     medium customarily used for software interchange, for a price no
538     more than your reasonable cost of physically performing this
539     conveying of source, or (2) access to copy the
540     Corresponding Source from a network server at no charge.</li>
541
542 <li>c) Convey individual copies of the object code with a copy of the
543     written offer to provide the Corresponding Source.  This
544     alternative is allowed only occasionally and noncommercially, and
545     only if you received the object code with such an offer, in accord
546     with subsection 6b.</li>
547
548 <li>d) Convey the object code by offering access from a designated
549     place (gratis or for a charge), and offer equivalent access to the
550     Corresponding Source in the same way through the same place at no
551     further charge.  You need not require recipients to copy the
552     Corresponding Source along with the object code.  If the place to
553     copy the object code is a network server, the Corresponding Source
554     may be on a different server (operated by you or a third party)
555     that supports equivalent copying facilities, provided you maintain
556     clear directions next to the object code saying where to find the
557     Corresponding Source.  Regardless of what server hosts the
558     Corresponding Source, you remain obligated to ensure that it is
559     available for as long as needed to satisfy these requirements.</li>
560
561 <li>e) Convey the object code using peer-to-peer transmission, provided
562     you inform other peers where the object code and Corresponding
563     Source of the work are being offered to the general public at no
564     charge under subsection 6d.</li>
565 </ul>
566
567 <p>A separable portion of the object code, whose source code is excluded
568 from the Corresponding Source as a System Library, need not be
569 included in conveying the object code work.</p>
570
571 <p>A &ldquo;User Product&rdquo; is either (1) a &ldquo;consumer product&rdquo;, which means any
572 tangible personal property which is normally used for personal, family,
573 or household purposes, or (2) anything designed or sold for incorporation
574 into a dwelling.  In determining whether a product is a consumer product,
575 doubtful cases shall be resolved in favor of coverage.  For a particular
576 product received by a particular user, &ldquo;normally used&rdquo; refers to a
577 typical or common use of that class of product, regardless of the status
578 of the particular user or of the way in which the particular user
579 actually uses, or expects or is expected to use, the product.  A product
580 is a consumer product regardless of whether the product has substantial
581 commercial, industrial or non-consumer uses, unless such uses represent
582 the only significant mode of use of the product.</p>
583
584 <p>&ldquo;Installation Information&rdquo; for a User Product means any methods,
585 procedures, authorization keys, or other information required to install
586 and execute modified versions of a covered work in that User Product from
587 a modified version of its Corresponding Source.  The information must
588 suffice to ensure that the continued functioning of the modified object
589 code is in no case prevented or interfered with solely because
590 modification has been made.</p>
591
592 <p>If you convey an object code work under this section in, or with, or
593 specifically for use in, a User Product, and the conveying occurs as
594 part of a transaction in which the right of possession and use of the
595 User Product is transferred to the recipient in perpetuity or for a
596 fixed term (regardless of how the transaction is characterized), the
597 Corresponding Source conveyed under this section must be accompanied
598 by the Installation Information.  But this requirement does not apply
599 if neither you nor any third party retains the ability to install
600 modified object code on the User Product (for example, the work has
601 been installed in ROM).</p>
602
603 <p>The requirement to provide Installation Information does not include a
604 requirement to continue to provide support service, warranty, or updates
605 for a work that has been modified or installed by the recipient, or for
606 the User Product in which it has been modified or installed.  Access to a
607 network may be denied when the modification itself materially and
608 adversely affects the operation of the network or violates the rules and
609 protocols for communication across the network.</p>
610
611 <p>Corresponding Source conveyed, and Installation Information provided,
612 in accord with this section must be in a format that is publicly
613 documented (and with an implementation available to the public in
614 source code form), and must require no special password or key for
615 unpacking, reading or copying.</p>
616
617 <h4><a name="section7"></a>7. Additional Terms.</h4>
618
619 <p>&ldquo;Additional permissions&rdquo; are terms that supplement the terms of this
620 License by making exceptions from one or more of its conditions.
621 Additional permissions that are applicable to the entire Program shall
622 be treated as though they were included in this License, to the extent
623 that they are valid under applicable law.  If additional permissions
624 apply only to part of the Program, that part may be used separately
625 under those permissions, but the entire Program remains governed by
626 this License without regard to the additional permissions.</p>
627
628 <p>When you convey a copy of a covered work, you may at your option
629 remove any additional permissions from that copy, or from any part of
630 it.  (Additional permissions may be written to require their own
631 removal in certain cases when you modify the work.)  You may place
632 additional permissions on material, added by you to a covered work,
633 for which you have or can give appropriate copyright permission.</p>
634
635 <p>Notwithstanding any other provision of this License, for material you
636 add to a covered work, you may (if authorized by the copyright holders of
637 that material) supplement the terms of this License with terms:</p>
638
639 <ul>
640 <li>a) Disclaiming warranty or limiting liability differently from the
641     terms of sections 15 and 16 of this License; or</li>
642
643 <li>b) Requiring preservation of specified reasonable legal notices or
644     author attributions in that material or in the Appropriate Legal
645     Notices displayed by works containing it; or</li>
646
647 <li>c) Prohibiting misrepresentation of the origin of that material, or
648     requiring that modified versions of such material be marked in
649     reasonable ways as different from the original version; or</li>
650
651 <li>d) Limiting the use for publicity purposes of names of licensors or
652     authors of the material; or</li>
653
654 <li>e) Declining to grant rights under trademark law for use of some
655     trade names, trademarks, or service marks; or</li>
656
657 <li>f) Requiring indemnification of licensors and authors of that
658     material by anyone who conveys the material (or modified versions of
659     it) with contractual assumptions of liability to the recipient, for
660     any liability that these contractual assumptions directly impose on
661     those licensors and authors.</li>
662 </ul>
663
664 <p>All other non-permissive additional terms are considered &ldquo;further
665 restrictions&rdquo; within the meaning of section 10.  If the Program as you
666 received it, or any part of it, contains a notice stating that it is
667 governed by this License along with a term that is a further
668 restriction, you may remove that term.  If a license document contains
669 a further restriction but permits relicensing or conveying under this
670 License, you may add to a covered work material governed by the terms
671 of that license document, provided that the further restriction does
672 not survive such relicensing or conveying.</p>
673
674 <p>If you add terms to a covered work in accord with this section, you
675 must place, in the relevant source files, a statement of the
676 additional terms that apply to those files, or a notice indicating
677 where to find the applicable terms.</p>
678
679 <p>Additional terms, permissive or non-permissive, may be stated in the
680 form of a separately written license, or stated as exceptions;
681 the above requirements apply either way.</p>
682
683 <h4><a name="section8"></a>8. Termination.</h4>
684
685 <p>You may not propagate or modify a covered work except as expressly
686 provided under this License.  Any attempt otherwise to propagate or
687 modify it is void, and will automatically terminate your rights under
688 this License (including any patent licenses granted under the third
689 paragraph of section 11).</p>
690
691 <p>However, if you cease all violation of this License, then your
692 license from a particular copyright holder is reinstated (a)
693 provisionally, unless and until the copyright holder explicitly and
694 finally terminates your license, and (b) permanently, if the copyright
695 holder fails to notify you of the violation by some reasonable means
696 prior to 60 days after the cessation.</p>
697
698 <p>Moreover, your license from a particular copyright holder is
699 reinstated permanently if the copyright holder notifies you of the
700 violation by some reasonable means, this is the first time you have
701 received notice of violation of this License (for any work) from that
702 copyright holder, and you cure the violation prior to 30 days after
703 your receipt of the notice.</p>
704
705 <p>Termination of your rights under this section does not terminate the
706 licenses of parties who have received copies or rights from you under
707 this License.  If your rights have been terminated and not permanently
708 reinstated, you do not qualify to receive new licenses for the same
709 material under section 10.</p>
710
711 <h4><a name="section9"></a>9. Acceptance Not Required for Having Copies.</h4>
712
713 <p>You are not required to accept this License in order to receive or
714 run a copy of the Program.  Ancillary propagation of a covered work
715 occurring solely as a consequence of using peer-to-peer transmission
716 to receive a copy likewise does not require acceptance.  However,
717 nothing other than this License grants you permission to propagate or
718 modify any covered work.  These actions infringe copyright if you do
719 not accept this License.  Therefore, by modifying or propagating a
720 covered work, you indicate your acceptance of this License to do so.</p>
721
722 <h4><a name="section10"></a>10. Automatic Licensing of Downstream Recipients.</h4>
723
724 <p>Each time you convey a covered work, the recipient automatically
725 receives a license from the original licensors, to run, modify and
726 propagate that work, subject to this License.  You are not responsible
727 for enforcing compliance by third parties with this License.</p>
728
729 <p>An &ldquo;entity transaction&rdquo; is a transaction transferring control of an
730 organization, or substantially all assets of one, or subdividing an
731 organization, or merging organizations.  If propagation of a covered
732 work results from an entity transaction, each party to that
733 transaction who receives a copy of the work also receives whatever
734 licenses to the work the party's predecessor in interest had or could
735 give under the previous paragraph, plus a right to possession of the
736 Corresponding Source of the work from the predecessor in interest, if
737 the predecessor has it or can get it with reasonable efforts.</p>
738
739 <p>You may not impose any further restrictions on the exercise of the
740 rights granted or affirmed under this License.  For example, you may
741 not impose a license fee, royalty, or other charge for exercise of
742 rights granted under this License, and you may not initiate litigation
743 (including a cross-claim or counterclaim in a lawsuit) alleging that
744 any patent claim is infringed by making, using, selling, offering for
745 sale, or importing the Program or any portion of it.</p>
746
747 <h4><a name="section11"></a>11. Patents.</h4>
748
749 <p>A &ldquo;contributor&rdquo; is a copyright holder who authorizes use under this
750 License of the Program or a work on which the Program is based.  The
751 work thus licensed is called the contributor's &ldquo;contributor version&rdquo;.</p>
752
753 <p>A contributor's &ldquo;essential patent claims&rdquo; are all patent claims
754 owned or controlled by the contributor, whether already acquired or
755 hereafter acquired, that would be infringed by some manner, permitted
756 by this License, of making, using, or selling its contributor version,
757 but do not include claims that would be infringed only as a
758 consequence of further modification of the contributor version.  For
759 purposes of this definition, &ldquo;control&rdquo; includes the right to grant
760 patent sublicenses in a manner consistent with the requirements of
761 this License.</p>
762
763 <p>Each contributor grants you a non-exclusive, worldwide, royalty-free
764 patent license under the contributor's essential patent claims, to
765 make, use, sell, offer for sale, import and otherwise run, modify and
766 propagate the contents of its contributor version.</p>
767
768 <p>In the following three paragraphs, a &ldquo;patent license&rdquo; is any express
769 agreement or commitment, however denominated, not to enforce a patent
770 (such as an express permission to practice a patent or covenant not to
771 sue for patent infringement).  To &ldquo;grant&rdquo; such a patent license to a
772 party means to make such an agreement or commitment not to enforce a
773 patent against the party.</p>
774
775 <p>If you convey a covered work, knowingly relying on a patent license,
776 and the Corresponding Source of the work is not available for anyone
777 to copy, free of charge and under the terms of this License, through a
778 publicly available network server or other readily accessible means,
779 then you must either (1) cause the Corresponding Source to be so
780 available, or (2) arrange to deprive yourself of the benefit of the
781 patent license for this particular work, or (3) arrange, in a manner
782 consistent with the requirements of this License, to extend the patent
783 license to downstream recipients.  &ldquo;Knowingly relying&rdquo; means you have
784 actual knowledge that, but for the patent license, your conveying the
785 covered work in a country, or your recipient's use of the covered work
786 in a country, would infringe one or more identifiable patents in that
787 country that you have reason to believe are valid.</p>
788
789   
790 <p>If, pursuant to or in connection with a single transaction or
791 arrangement, you convey, or propagate by procuring conveyance of, a
792 covered work, and grant a patent license to some of the parties
793 receiving the covered work authorizing them to use, propagate, modify
794 or convey a specific copy of the covered work, then the patent license
795 you grant is automatically extended to all recipients of the covered
796 work and works based on it.</p>
797
798 <p>A patent license is &ldquo;discriminatory&rdquo; if it does not include within
799 the scope of its coverage, prohibits the exercise of, or is
800 conditioned on the non-exercise of one or more of the rights that are
801 specifically granted under this License.  You may not convey a covered
802 work if you are a party to an arrangement with a third party that is
803 in the business of distributing software, under which you make payment
804 to the third party based on the extent of your activity of conveying
805 the work, and under which the third party grants, to any of the
806 parties who would receive the covered work from you, a discriminatory
807 patent license (a) in connection with copies of the covered work
808 conveyed by you (or copies made from those copies), or (b) primarily
809 for and in connection with specific products or compilations that
810 contain the covered work, unless you entered into that arrangement,
811 or that patent license was granted, prior to 28 March 2007.</p>
812
813 <p>Nothing in this License shall be construed as excluding or limiting
814 any implied license or other defenses to infringement that may
815 otherwise be available to you under applicable patent law.</p>
816
817 <h4><a name="section12"></a>12. No Surrender of Others' Freedom.</h4>
818
819 <p>If conditions are imposed on you (whether by court order, agreement or
820 otherwise) that contradict the conditions of this License, they do not
821 excuse you from the conditions of this License.  If you cannot convey a
822 covered work so as to satisfy simultaneously your obligations under this
823 License and any other pertinent obligations, then as a consequence you may
824 not convey it at all.  For example, if you agree to terms that obligate you
825 to collect a royalty for further conveying from those to whom you convey
826 the Program, the only way you could satisfy both those terms and this
827 License would be to refrain entirely from conveying the Program.</p>
828
829 <h4><a name="section13"></a>13. Use with the GNU Affero General Public License.</h4>
830
831 <p>Notwithstanding any other provision of this License, you have
832 permission to link or combine any covered work with a work licensed
833 under version 3 of the GNU Affero General Public License into a single
834 combined work, and to convey the resulting work.  The terms of this
835 License will continue to apply to the part which is the covered work,
836 but the special requirements of the GNU Affero General Public License,
837 section 13, concerning interaction through a network will apply to the
838 combination as such.</p>
839
840 <h4><a name="section14"></a>14. Revised Versions of this License.</h4>
841
842 <p>The Free Software Foundation may publish revised and/or new versions of
843 the GNU General Public License from time to time.  Such new versions will
844 be similar in spirit to the present version, but may differ in detail to
845 address new problems or concerns.</p>
846
847 <p>Each version is given a distinguishing version number.  If the
848 Program specifies that a certain numbered version of the GNU General
849 Public License &ldquo;or any later version&rdquo; applies to it, you have the
850 option of following the terms and conditions either of that numbered
851 version or of any later version published by the Free Software
852 Foundation.  If the Program does not specify a version number of the
853 GNU General Public License, you may choose any version ever published
854 by the Free Software Foundation.</p>
855
856 <p>If the Program specifies that a proxy can decide which future
857 versions of the GNU General Public License can be used, that proxy's
858 public statement of acceptance of a version permanently authorizes you
859 to choose that version for the Program.</p>
860
861 <p>Later license versions may give you additional or different
862 permissions.  However, no additional obligations are imposed on any
863 author or copyright holder as a result of your choosing to follow a
864 later version.</p>
865
866 <h4><a name="section15"></a>15. Disclaimer of Warranty.</h4>
867
868 <p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
869 APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
870 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &ldquo;AS IS&rdquo; WITHOUT WARRANTY
871 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
872 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
873 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
874 IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
875 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
876
877 <h4><a name="section16"></a>16. Limitation of Liability.</h4>
878
879 <p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
880 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
881 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
882 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
883 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
884 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
885 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
886 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
887 SUCH DAMAGES.</p>
888
889 <h4><a name="section17"></a>17. Interpretation of Sections 15 and 16.</h4>
890
891 <p>If the disclaimer of warranty and limitation of liability provided
892 above cannot be given local legal effect according to their terms,
893 reviewing courts shall apply local law that most closely approximates
894 an absolute waiver of all civil liability in connection with the
895 Program, unless a warranty or assumption of liability accompanies a
896 copy of the Program in return for a fee.</p>
897
898 <p>END OF TERMS AND CONDITIONS</p>
899
900 <br>
901 <hr size="2" width="100%"><br>
902 <div align="center">
903 <h2><a name="Installation"></a>Installation</h2>
904 </div>
905 <div align="justify">
906 <h3>Overview</h3>
907 <p>Citadel is an advanced, multiuser, client/server messaging system
908 suitable for BBS, e-mail, and groupware applications. It is designed to
909 handle the needs of both small dialup systems and large-scale
910 Internet-connected systems. It was originally developed on an Altos
911 system running Xenix, and has been installed and tested on various Unix
912 and Unix-like platforms. The current development environment (and
913 public BBS) is an ordinary Linux system. The current distribution
914 includes: </p>
915 <ul>
916   <li>The Citadel server (this is the back end that does all
917 processing) </li>
918   <li>A text-based client program designed with the traditional Citadel
919 "look and feel" (room prompts, dot commands, and the like) </li>
920   <li>Setup programs </li>
921   <li>A set of utilities for system administration and maintenance </li>
922   <li>Documentation </li>
923 </ul>
924 <p>Some knowledge of the Unix system is necessary to install and manage
925 the system. It is mandatory that the sysop have "root" access to the
926 operating system. The following are required to install Citadel: </p>
927 <ul>
928   <li>A unix-like operating system (Linux, FreeBSD, Solaris, etc.) </li>
929   <li>The GNU build tools (<a href="http://gcc.gnu.org/">GCC</a> with <a
930  href="http://www.gnu.org/software/make/make.html">gmake</a> is the
931 recommended build environment) </li>
932   <li><a href="http://www.sleepycat.com">Berkeley DB</a> v4.1 or newer</li>
933   <li><a href="http://www.aurore.net/projects/libical/">libical</a> v0.26 or
934 newer (if you want the calendar service to work)</li>
935   <li><a href="http://libsieve.sourceforge.net">libSieve</a> v2.2.3 or newer
936 (if you want mail filtering/scripting to work)</li>
937   <li>Enough disk space to hold all of the programs and data </li>
938 </ul>
939 <p>If you are running Citadel on a Linux system, it is STRONGLY
940 recommended that you run it on a recent distribution (such as CentOS
941 4.1 or newer). A new-ish
942 distribution will have many of the prerequisite tools and
943 libraries already integrated for you.</p>
944 <h3>Other pieces which complete the Citadel system:</h3>
945 <ul>
946   <li>"WebCit", a gateway program to allow full access to Citadel via
947 the World Wide Web. Interactive access through any Web browser. </li>
948   <li>Access to Citadel via <i>any</i> standards-compliant e-mail
949 program, thanks to Citadel's built-in SMTP, POP, and IMAP services.
950 You can use Mozilla, Netscape, Evolution, Eudora, Pine, Outlook, etc.
951 with Citadel.</li>
952   <li>Access to Citadel's calendar and address book functions using any
953 PIM client that supports Webcal or GroupDAV (requires WebCit).<br>
954   </li>
955 </ul>
956 <h3>Coming soon:</h3>
957 <ul>
958   <li>More integration with third-party software.<br>
959   </li>
960 </ul>
961 <h3><a name="Everything_in_its_place..."></a>Everything in its place...</h3>
962 <p>Hopefully you've unpacked the distribution archive into its own
963 directory. This is the directory in which all Citadel files are located
964 and in
965 which all activity will take place. Several subdirectories have already
966 been created during the unpacking process, and others may be created
967 by the software if needed. Make sure you have Berkeley DB installed on
968 your system, and that you have all the development libraries and
969 headers
970 in place so that you can compile against them. If you don't, you can
971 get the latest Berkeley DB at
972 <a href="http://www.sleepycat.com">http://www.sleepycat.com</a>.
973 If your operating system uses a separate library to support POSIX
974 threads (pthreads), make sure that library is installed as well. This
975 is almost never the case with Linux, but some commercial Unix flavors
976 might need it.<br>
977 <br>
978 </p>
979 <h3><a name="ctdl_login_acct"></a>Creating a system account for Citadel</h3>
980 <p>As with many Unix programs, Citadel wants to run under its own user
981 ID. Unlike other programs, however, this user ID will do double-duty as
982 a public login for your system if you are running a BBS. This account
983 is typically called "bbs" or "citadel" or something to that effect. You
984 will tell Citadel what the user-id of that account is, and when someone
985 logs in under that account, Citadel will prompt for a user name.</p>
986 <p>The Citadel user should have a unique uid. The home directory should
987 be the one your Citadel installation resides in (in this example we
988 will use <tt>/usr/local/citadel</tt>) and the shell should be either
989 "citadel" in
990 that directory, or a script that will start up the citadel client.
991 Example:</p>
992 <pre>citadel::100:1:Citadel Login:/usr/local/citadel:/usr/local/citadel/citadel<br></pre>
993 <p>When you run setup later, you will be required to tell it the
994 username or user ID of the account you created is, so it knows what
995 user to run as. If you create an account called <tt>citadel, bbs</tt>,
996 or <tt>guest</tt>, the setup program will automatically pick up the
997 user ID by default.</p>
998 <p>For all other users in <tt>/etc/passwd</tt> (or in some other name
999 service such as NIS), Citadel can automatically set up
1000 such as NIS), Citadel can automatically set up
1001 an account using the full name (or 'gecos' in Unixspeak) of the user.
1002 It'll also ignore any password you supply, because it uses the user's
1003 password on the host system. This allows a 'single sign on' type of
1004 environment.
1005 Note that this does have to be enabled at setup time -- it's the
1006 option called &quot;host based authentication mode&quot;. Keep in
1007 mind that these users can use *either* their Citadel login name or
1008 their login name on the host computer, and their password on the
1009 host computer.</p>
1010 <h3><a name="bypassing_login"></a>Bypassing the <tt>login:</tt>
1011 prompt</h3>
1012 <p>If you normally log in to your host system using some method other
1013 than telnet (such as ssh), you might want the telnet service to go
1014 straight into Citadel, instead of displaying the <tt>login:</tt>
1015 prompt first. You
1016 can do this by having telnetd start citadel directly instead of
1017 <tt>/bin/login</tt>. The <tt>setup</tt> program will offer to
1018 configure
1019 this automatically for you if it sees a configuration it understands.
1020 If you would prefer to configure it manually, all you need to do is
1021 make a
1022 simple change to your <tt>inetd</tt> or <tt>xinetd</tt>
1023 configuration. Here are some configuration examples.</p>
1024 <p>An example for <tt>inetd</tt> (put the following line in <tt>/etc/inetd.conf</tt>,
1025 replacing any existing telnet configuration line already there):</p>
1026 <pre>telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd -L /usr/local/citadel/citadel<br></pre>
1027 <p>An example for <tt>xinetd</tt> (if you have a file called <tt>/etc/xinetd.d/telnet</tt>
1028 then simply replace that file with this one):</p>
1029 <pre>service telnet<br>{<br>    flags           = REUSE<br>     socket_type     = stream<br>    wait            = no<br>        user            = root<br>      server          = /usr/sbin/in.telnetd<br>      server_args     = -L /usr/local/citadel/citadel<br>     log_on_failure  += USERID<br>   disable         = no<br>}<br></pre>
1030 <p>Please make sure you know what you're doing before you install this!
1031 If
1032 you are going to put Citadel somewhere other than <tt>/usr/local/citadel</tt>
1033 then change the directory name accordingly. If you know of any other
1034 local peculiarities which need to be observed, edit the above
1035 configuration
1036 accordingly as well. And, of course, if you're working remotely, make
1037 sure you can successfully log in using SSH <b>before</b> you start
1038 making
1039 changes to telnet, because if you accidentally break telnet and don't
1040 have
1041 SSH running, you'll have effectively locked yourself out of your system
1042 until you can get physical access to the console.<br>
1043 <br>
1044 </p>
1045 <h3><a name="Compiling_the_programs"></a>Compiling the programs</h3>
1046 <p>You can easily compile the Citadel system with the following
1047 commands:</p>
1048 <pre>./configure<br>make<br>make install<br></pre>
1049 <p>The 'configure' script will generate a Makefile from the
1050 Makefile.in,
1051 and it will also write the file "sysdep.h" to your Citadel directory.
1052 Please do not edit sysdep.h or Makefile.in yourself. The configure
1053 script will
1054 figure out your system dependencies and set everything correctly.</p>
1055 <p>Mac OS X 10.1 and later are now supported. (Sorry, 10.0 cannot be
1056 supported, now or in the future.) You need to install the Developer
1057 Tools CD, which you can purchase or download for free from <a
1058  href="http://developer.apple.com">http://developer.apple.com</a>. Then
1059 run configure like this:</p>
1060 <pre>env CC=/usr/bin/cc ./configure (options - see below)<br></pre>
1061 <p>By default, the Citadel system will install in <tt>/usr/local/citadel</tt>.
1062 If you wish to place it in a different directory, you can instead do:</p>
1063 <pre>./configure --prefix=/export/home/citadel      (or whatever)<br></pre>
1064 <p>If you've got Berkeley DB installed in a non-standard location, you
1065 can help the configure script find it by doing something like this:</p>
1066 <pre>./configure --with-db=/usr/local/BerkeleyDB-4.1<br></pre>
1067 <p>Keep in mind that if you're using Berkeley DB from a non-standard
1068 location,
1069 you'll have to make sure that location is available at runtime.</p>
1070 <p>File permissions are always a bother to work with. You don't want
1071 Citadel to crash because someone couldn't access a file, but you also
1072 don't want shell users peeking into the binaries to do things like
1073 reading others' mail, finding private rooms, etc. The Citadel server
1074 needs to be started as root in order to bind to privileged ports, but
1075 as soon as its initialization is finished, it changes its user ID to
1076 your Citadel user in order to avoid security holes.</p>
1077 <h3><a name="Upgrading"></a>Upgrading</h3>
1078 <p>Any existing Citadel installation which is at version 5.50 or newer
1079 may be upgraded in place without the need to discard your existing data
1080 files.</p>
1081 <p>Upgrading to a new version uses the same build procedure as
1082 compiling
1083 the program for a fresh install, except that you want to do <tt>make
1084 upgrade</tt> instead of <tt>make install</tt>. This will
1085 overwrite the programs but not your data. <b>Be sure to shut down
1086 citserver during this process!</b> If Citadel is running while you
1087 upgrade, you may face data corruption issues.<br>
1088 </p>
1089 <p>After doing <tt>make upgrade</tt>, you should run <tt>setup</tt>
1090 again to bring your data files up to date. Please see the setup section
1091 below for more information on this.</p>
1092 <h3><a name="rc_file"></a>The <tt>citadel.rc</tt> file</h3>
1093 <p>The text-based client included with Citadel is suitable for BBS
1094 applications. Much of its command set and other behavior is
1095 configurable through a Run Control (RC) file. The standard client looks
1096 for this file in the following locations: </p>
1097 <ul>
1098   <li><tt>$HOME/.citadelrc</tt></li>
1099   <li><i>your-Citadel-directory</i><tt>/citadel.rc</tt></li>
1100   <li><tt>/etc/citadel.rc</tt></li>
1101   <li><i>current-directory</i><tt>/citadel.rc</tt></li>
1102 </ul>
1103 The next couple of sections deal with client-side configuration.
1104 <h3><a name="Using_an_external_editor_for_message"></a>Using an
1105 external editor
1106 for message composition</h3>
1107 <p>Citadel has a built-in message editor. However, you can also use
1108 your favorite text editor to write messages. To do this you simply put
1109 a line in your citadel.rc file like this:</p>
1110 <pre>editor=/usr/bin/vi<br></pre>
1111 <p>The above example would make Citadel call the vi editor when using
1112 the <tt><b>.E</b>nter <b>E</b>ditor</tt> command, or when a user
1113 selects the &quot;Always compose messages with the full-screen
1114 editor&quot; option.  You can also make
1115 it the default editor for the <tt><b>E</b>nter</tt> command by editing
1116 the <tt>citadel.rc</tt> file. <b>But be warned:</b> external editors
1117 on public systems can
1118 be a security hole, because they usually provide users with the ability
1119 to drop into a shell on the host system, or save files using names
1120 other
1121 than the name of the temporary file they are editing. If you intend to
1122 use an external editor on a public BBS, make sure you use one that has
1123 been
1124 hardened for such a purpose -- one which has had the 'shell' and 'save
1125 as'
1126 commands disabled, as well as any other functions which a destructive
1127 user could use to gain unauthorized access to your host system.</p>
1128 <h3><a name="Printing_messages"></a>Printing messages</h3>
1129 <p>Citadel can send messages to a printer, or just about anywhere
1130 else in your system. The variable <tt>PRINTCMD</tt> in <tt>citadel.rc</tt>
1131 specifies what command you use to print. Text is sent to the standard
1132 input (stdin) of the print command.</p>
1133 <p>So if you did this:</p>
1134 <pre>printcmd="a2ps -o - |lpr -Plocal"<br></pre>
1135 <p>...that would convert the printed text to PostScript, then print on
1136 the
1137 printer named "local". There's tons of stuff you can do with this
1138 feature. For example, you could use a command like <tt>cat
1139 &lt;&lt;$HOME/archive</tt> to save copies of important messages in a
1140 textfile. Again, this is probably something you don't want to configure
1141 for a public BBS host -- most system administrators don't want remote
1142 users sending arbitrary things to local printers.</p>
1143 <h3><a name="URL_viewing"></a>URL viewing</h3>
1144 <p>This is one more feature which is appropriate for local users. While
1145 reading
1146 a message that has Internet URL's in it, you can select the <tt><b>U</b>RL-view</tt>
1147 command, and it will perform some pre-defined action (usually, this is
1148 to open up the URL in a web browser). For example:</p>
1149 <pre>urlcmd=netscape -remote "openURL(%s)"<br></pre>
1150 <p>In the above example, it would open up the URL in an open <a
1151  href="http://www.netscape.com/download">Netscape</a> window.<br>
1152 <br>
1153 </p>
1154 <h3><a name="Setup_and_login"></a>Setup and login</h3>
1155 <p>Before logging in for the first time, you must run the setup
1156 program. To begin this procedure, enter the following commands:</p>
1157 <pre>cd /usr/local/citadel<br>./setup<br></pre>
1158 <p>The setup program will guide you through a simple configuration
1159 procedure. It will ask you what directory to place your data files in
1160 -- the default is the current directory, which is usually the sensible
1161 thing to select. If you want to run more than one instance of Citadel
1162 on the same host, however, you can specify a different directory here
1163 -- just remember to specify the directory name again when you start up
1164 the server later on.</p>
1165 <p><tt>setup</tt> will then shut down the Citadel service if it is
1166 found to
1167 be running.</p>
1168 <p>You will then be prompted for the name of the system administrator.
1169 This is not merely a cosmetic option -- when you log in to your system
1170 a little while from now, you'll log in with this name, and it will
1171 automatically assign your account the highest access level.</p>
1172 <p>Next, you will be prompted for the User ID of the Citadel account on
1173 your host system. If you have an account called <tt>bbs</tt>, <tt>guest</tt>,
1174 or <tt>citadel</tt>, that account's UID will be the default. If you
1175 are upgrading or reconfiguring an existing system, the existing value
1176 will be preserved.</p>
1177 <p>Then you will be prompted for a server port number. This is the TCP
1178 port which Citadel clients use to connect to your Citadel server. In
1179 almost all cases, you want to use the default -- port 504, which is the
1180 official port number assigned by the IANA for Citadel implementations.</p>
1181 <p><tt>setup</tt> will then ask you about authentication mode.  <i>Please
1182 understand this question thoroughly before answering it.</i>  You have a
1183 choice of two authentication modes:
1184 <ul>
1185 <li><i>Native authentication</i> - Citadel maintains its own user database.
1186 This is the normal mode of authentication.  Citadel operates as a "black
1187 box" and your users do not have to have accounts or home directories on the
1188 host server.
1189 <li><i>Host based authentication</i> - access to Citadel is authenticated
1190 against the user database (<tt>/etc/passwd</tt> or perhaps NIS, etc.).
1191 </ul>
1192 You will be asked if you wish to use host based authentication.  If you
1193 wish to do so, answer "Yes" at the prompt.  For most installations, "No"
1194 is the appropriate answer.
1195 </p>
1196 <p>The Citadel service will then be started, and you will see the
1197 following message:</p>
1198 <pre>Setup is finished.  You may now log in.<br></pre>
1199 <p>Setup is now complete, on most systems, anyway. Please see below to
1200 find out if you need to do anything else:</p>
1201 <h3><a name="Configuring_your_host_system_to_start"></a>Configuring
1202 your host
1203 system to start the service</h3>
1204 <p><b>Please note:</b> this topic involves modifications made to <tt>/etc/services</tt>
1205 and <tt>/etc/inittab</tt> in order to configure your host system to
1206 automatically start the Citadel service. <tt>setup</tt> will
1207 automatically perform these steps if it can, and if you allow it to --
1208 just answer 'Yes' when prompted, and everything will be taken care of
1209 for you. If you answer 'No' -- or if your system is a little bit odd
1210 (for example, BSD systems don't have <tt>/etc/inittab</tt>) -- read
1211 this section and do what you need to in order to get things configured.</p>
1212 <p>Before you can use Citadel, you must define the "citadel" service to
1213 your system. This is accomplished by adding a line to your
1214 /etc/services file that looks something like this:</p>
1215 <pre>citadel            504/tcp                 # Citadel Server<br></pre>
1216 <p>504 is the port number officially designated by the IANA for use by
1217 Citadel. There should not be any need to use a different port number,
1218 unless you are running multiple Citadels on the same computer and
1219 therefore need
1220 a different port for each one.</p>
1221 <p>The next step is to arrange for the server to start. The <tt>citserver</tt>
1222 program is the main Citadel server. Before we cover the recommended
1223 method of starting the server, let's examine its usage options:</p>
1224 <pre>citserver [-hHomeDir] [-xDebugLevel] [-tTraceFile] [-lLogFacility] [-d] [-f]<br></pre>
1225 <p>The options are as follows:</p>
1226 <p><tt>-hHomeDir</tt> - the directory your Citadel data files live in.
1227 This should, of course, be a directory that you've run the <tt>setup</tt>
1228 program against to set up some data files. If a directory is not
1229 specified, the directory
1230 name which was specified in the <tt>Makefile</tt> will be used.</p>
1231 <p><tt>-xDebugLevel</tt> - Set the verbosity of trace messages printed.
1232 When -x is used, it will suppress messages sent to syslog (see below).
1233 In
1234 other words, syslog will never see certain messages if -x is used.
1235 Normally
1236 you should configure logging through syslog, but -x may still be useful
1237 in
1238 some circumstances. The available debugging levels are: </p>
1239 <ul>
1240   <li>0 - Emergency condition; Citadel will exit immediately </li>
1241   <li>1 - Severe errors; Citadel may be unable to continue without
1242 attention </li>
1243   <li>2 - Critical errors; Citadel will continue with degraded
1244 functionality </li>
1245   <li>3 - Error conditions; Citadel will recover and continue normally </li>
1246   <li>4 - Warning messages; Citadel will continue normally </li>
1247   <li>5 - Normal operational messages </li>
1248   <li>6 - Informational messages, progress reports, etc. </li>
1249   <li>7 - Debugging messages; extremely verbose </li>
1250 </ul>
1251 <p><tt>-tTraceFile</tt> - Tell the server where to send its debug/trace
1252 output. Normally it is sent to stdout.</p>
1253 <p><tt>-lLogFacility</tt> - Tell the server to send its debug/trace
1254 output
1255 to the <tt>syslog</tt> service on the host system <i>instead of</i>
1256 to a
1257 trace file. <tt>LogFacility</tt> must be one of: <tt><i>kern, user,
1258 mail,
1259 daemon, auth, syslog, lpr, news, uucp, local0, local1, local2, local3,
1260 local4, local5, local6, local7</i></tt>. Please note that use of the
1261 <tt>-l</tt> option will cancel any use of the <tt>-t</tt> option; that
1262 is,
1263 if you specify a trace file <i>and</i> a syslog facility, log output
1264 will
1265 only go to the syslog facility.
1266 </p>
1267 <p><tt>-d</tt> - Run as a daemon; i.e. in the background. This switch
1268 would be necessary if you were starting the Citadel server, for
1269 example, from an rc.local script (which is not recommended, because
1270 this won't allow the server to automatically restart when it is shut
1271 down).</p>
1272 <p><tt>-f</tt> - Defragment all the databases upon startup. &nbsp; This
1273 currently has no effect, as it is a vestige from the old data store.</p>
1274 <p>The preferred method of starting the Citadel server is to place an
1275 entry in your /etc/inittab file. This will conveniently bring the
1276 server up when your system is up, and terminate it gracefully when your
1277 system is shutting down. The exact syntax for your system may vary, but
1278 here's an entry that could be used on a Linux system:</p>
1279 <pre>cit:2345:respawn:/usr/local/citadel/citserver -h/usr/local/citadel -t/dev/tty9 -x6<br></pre>
1280 <p>In this example, we've chosen debugging level 6, and have the trace
1281 stuff output to one of the virtual consoles. It's important to remember
1282 to turn off any getty that is set up on that virtual console, if you do
1283 this. After making this change, the command <tt>init q</tt> works on
1284 most systems to tell init to re-read the file. If in doubt, just reboot
1285 the computer.<br>
1286 <br>
1287 </p>
1288 <h3><a name="first_time_login"></a>Logging in for the
1289 first time</h3>
1290 <p>At this point, your system is ready to run. Run the <tt>citadel</tt>
1291 program from the shell and log in as a new user. NOTE: the first user
1292 account to be created will automatically be set to access level 6
1293 (Aide). This overcomes some obvious logistical problems - normally,
1294 Aide access is given by another Aide, but since there aren't any on
1295 your system yet, this isn't possible.<br>
1296 <br>
1297 </p>
1298 <h3><a name="Welcoming_new_users"></a>Welcoming new users</h3>
1299 <p>Sometimes you might decide that you want a welcome message (or
1300 several different messages) automatically mailed to new users upon
1301 their first login. Now there is a way to do this. If you create a room
1302 called <tt>New User Greetings</tt>, and it is a <i>private</i> room
1303 (invitation-only probably makes the most sense), any messages you enter
1304 into that room will automatically be delivered to all new users upon
1305 registration.</p>
1306 <p>You can put anything you want there: a welcome message, system
1307 policies, special information, etc. You can also put as many messages
1308 there as you want to (although it really doesn't make sense to clutter
1309 new users' mailboxes with lots of junk).</p>
1310 <p>Don't worry about wasting disk space, either. Citadel has a
1311 single-instance message store, so all the new users are actually
1312 looking at the same copy of the message on disk.<br>
1313 <br>
1314 </p>
1315 <h3><a name="adding_doors"></a>Space for adding
1316 your own
1317 client features (doors)</h3>
1318 <p><b>Please take note!</b> This function really represents the "old"
1319 way of doing things, and it doesn't fit in well with the client/server
1320 paradigm. Please consider it "deprecated" because it may be removed
1321 someday.</p>
1322 <p>The "doorway" feature is just a generic way to add features to the
1323 system. It is called "Doorway" to make it resemble the doors on
1324 non-Unix boards, but as we all know, us Unix types don't have to write
1325 special code to access the modem. :-) Anyway, when a user hits the <tt><b>*</b></tt>
1326 (doorway) command, Citadel does...</p>
1327 <pre>USERNAME=(username); export USERNAME<br>./subsystem (user-number) (screen-width) (access level)<br></pre>
1328 <p>...so you can put whatever you want in there. I suggest putting in a
1329 menu
1330 program to allow the users to pick one of a number of programs, etc. Do
1331 be aware that door programs will only be available when the client and
1332 server
1333 programs are running on the <i>same</i> computer, and when the user is
1334 running
1335 the text-mode client. Because of these restrictions, Door programs are
1336 being
1337 utilized less and less every day.<br>
1338 <br>
1339 </p>
1340 <h3><a name="Troubleshooting_and_getting_help"></a>Troubleshooting and
1341 getting help</h3>
1342 <p>That's just about all the information you need to install the
1343 system. But if you get stuck, you can visit <a
1344  href="http://uncensored.citadel.org">UNCENSORED! BBS</a> and report a
1345 problem or ask for help. But if you intend to report a problem getting
1346 the Citadel server to run, <i>please</i> double-check the following
1347 things first: </p>
1348 <ul>
1349   <li>Did you do <tt>./configure &amp;&amp; make &amp;&amp; make
1350 install</tt> ?? </li>
1351   <li>Did you run setup? </li>
1352   <li>Did you start the server? </li>
1353 </ul>
1354 <p>To report a problem, you can log on to <a
1355  href="http://uncensored.citadel.org">UNCENSORED!</a> or any other BBS
1356 on the Citadel network which carries the <tt>Citadel/UX&gt;</tt> room.
1357 Please DO NOT e-mail the developers directly. Post a request for help
1358 on the BBS, with all of the following information: </p>
1359 <ul>
1360   <li>The exact nature of your difficulty </li>
1361   <li>A transcript of the error message(s) if possible </li>
1362   <li>The version of Citadel you are running </li>
1363   <li>The version of Berkeley DB present on your system </li>
1364   <li>Which operating system you are running, and what version </li>
1365   <li>If you are running a Linux system, we need to know which
1366 distribution, and the version of the kernel, libc, and pthreads you
1367 are using (it would help to post the output of a <tt>ldd ./citserver</tt>
1368 command). </li>
1369 </ul>
1370 </div>
1371 <div align="center">
1372 <hr size="2" width="100%">
1373 <h2><a name="sysop"></a>System Administration</h2>
1374 </div>
1375 <div align="justify">
1376 <h3><a name="Overview_"></a>Overview</h3>
1377 <p>Citadel, when installed properly, will do most of its maintenance
1378 by itself. It is intended to be run unattended for extended periods of
1379 time, and most installations do just that without any software failures.</p>
1380 <p>The system has seven access levels. Most users are at the bottom and
1381 have
1382 no special privileges. Aides are selected people who have special
1383 access within
1384 the Citadel program. Room Aides only have this access in a certain
1385 room. Preferred users can be selected by Aides for access to preferred
1386 only rooms. A sysop is anyone who has access to the various sysop
1387 utilities - these
1388 are in their own executable files, which should have their permissions
1389 set
1390 to allow only sysops to run them. You should either create a sysops
1391 group
1392 in /etc/group, or use some other existing group for this purpose.</p>
1393 <p>Aides have access to EVERY room on the system, public and private
1394 (all types). They also have access to commands starting with <tt>.<b>A</b>ide</tt>
1395 in addition to being able to delete and move messages. The system room,
1396 <tt>Aide&gt;</tt>, is accessible only by those users designated as
1397 Aides.</p>
1398 <h3><a name="Aide_commands"></a>Aide commands</h3>
1399 <p>Aides have the following commands available to them that are not
1400 available to normal users. They are:</p>
1401 <table>
1402   <tbody>
1403     <tr>
1404       <td width="30%"><tt> .<b>A</b>ide <b>K</b>ill this room </tt></td>
1405       <td> Deletes the current room from the system. </td>
1406     </tr>
1407     <tr>
1408       <td width="30%"><tt> .<b>A</b>ide <b>E</b>dit this room </tt></td>
1409       <td> Allows editing of the properties of the current room. This
1410 is explained in greater detail below. </td>
1411     </tr>
1412     <tr>
1413       <td width="30%"><tt> .<b>A</b>ide <b>W</b>ho knows room </tt></td>
1414       <td> For private rooms with access controls, or mailbox rooms,
1415 this command displays a list of users who have access to the current
1416 room. </td>
1417     </tr>
1418     <tr>
1419       <td width="30%"><tt> .<b>A</b>ide edit <b>U</b>ser </tt></td>
1420       <td> Allows editing of the properties of any user account
1421 on the system. </td>
1422     </tr>
1423     <tr>
1424       <td width="30%"><tt> .<b>A</b>ide <b>V</b>alidate new users </tt></td>
1425       <td> For public access systems, this command reviews all new user
1426 registrations and allows you to set each new user's access level (or
1427 simply delete the accounts). </td>
1428     </tr>
1429     <tr>
1430       <td width="30%"><tt> .<b>A</b>ide enter <b>I</b>nfo file </tt></td>
1431       <td> Each room may contain a short textual description of
1432 its purpose, which is displayed to users upon entering the room for the
1433 first time (or in the room banner, for users of the Web client). This
1434 command allows you to enter or edit that description. </td>
1435     </tr>
1436     <tr>
1437       <td width="30%"><tt> .<b>A</b>ide <b>R</b>oom <b>I</b>nvite
1438 user </tt></td>
1439       <td> Access control command to grant any specific user access to
1440 a private room. </td>
1441     </tr>
1442     <tr>
1443       <td width="30%"><tt> .<b>A</b>ide <b>R</b>oom <b>K</b>ick
1444 out user </tt></td>
1445       <td> Access control command to revoke any specifc user's access
1446 to the current room. This works regardless of whether the room is
1447 public or private. </td>
1448     </tr>
1449     <tr>
1450       <td width="30%"><tt> .<b>A</b>ide <b>F</b>ile <b>D</b>elete </tt></td>
1451       <td> If the current room has an associated file directory, this
1452 command may be used to delete files from it. </td>
1453     </tr>
1454     <tr>
1455       <td width="30%"><tt> .<b>A</b>ide <b>F</b>ile <b>S</b>end
1456 over net </tt></td>
1457       <td> If the current room has an associated file directory, this
1458 command may be used to transmit a copy of any file in that directory to
1459 another node on a Citadel network. </td>
1460     </tr>
1461     <tr>
1462       <td width="30%"><tt> .<b>A</b>ide <b>F</b>ile <b>M</b>ove </tt></td>
1463       <td> If the current room has an associated file directory, this
1464 command may be used to move any file in that directory to another room.
1465 The target room must also have an associated file directory. </td>
1466     </tr>
1467     <tr>
1468       <td width="30%"><tt> .<b>A</b>ide <b>M</b>essage edit </tt></td>
1469       <td> This command allows editing of any of the various system
1470 banners and messages which are displayed to users. Type the name of
1471 the banner or message you wish to edit. </td>
1472     </tr>
1473     <tr>
1474       <td width="30%"><tt> .<b>A</b>ide <b>P</b>ost </tt></td>
1475       <td> This is the functional equivalent of the <tt><b>E</b>nter
1476 message</tt> command available to all users, except that it allows you
1477 to post using any user name. </td>
1478     </tr>
1479     <tr>
1480       <td width="30%"><tt> .<b>A</b>ide <b>S</b>ystem configuration <b>G</b>eneral
1481       </tt></td>
1482       <td> This command allows configuration of a large number of
1483 global settings for your Citadel system. These settings will be
1484 explained in greater detail below. </td>
1485     </tr>
1486     <tr>
1487       <td width="30%"><tt> .<b>A</b>ide <b>S</b>ystem configuration <b>I</b>nternet
1488       </tt></td>
1489       <td> This command allows configuration of settings which affect
1490 how your Citadel system sends and receives messages on the Internet. </td>
1491     </tr>
1492     <tr>
1493       <td width="30%"><tt> .<b>A</b>ide <b>S</b>ystem configuration
1494 check <b>M</b>essage base </tt></td>
1495       <td> Perform a consistency check on your message store. This is a
1496 very time-consuming operation which should not be performed unless you
1497 have reason to believe there is trouble with your database. </td>
1498     </tr>
1499     <tr>
1500       <td width="30%"><tt> .<b>A</b>ide <b>S</b>ystem configuration <b>N</b>etwork
1501       </tt></td>
1502       <td> Configure networking (e-mail, room sharing, etc.) with other
1503 Citadel nodes. </td>
1504     </tr>
1505     <tr>
1506       <td width="30%"><tt> .<b>A</b>ide <b>S</b>ystem configuration
1507 network <b>F</b>ilter list </tt></td>
1508       <td> If you are on a large public or semi-public network of
1509 Citadel nodes and you find content from certain systems or individuals
1510 objectionable, you can use this command to define a rule set to
1511 automatically reject those messages when they arrive on your system. </td>
1512     </tr>
1513     <tr>
1514       <td width="30%"><tt> .<b>A</b>ide <b>T</b>erminate server <b>N</b>ow
1515       </tt></td>
1516       <td> Immediately shut down the Citadel service, disconnecting any
1517 users who are logged in. Please keep in mind that it will start
1518 right back up again if you are running the service from <tt>/etc/inittab</tt>,
1519 so in practice this command will probably not get much use. </td>
1520     </tr>
1521     <tr>
1522       <td width="30%"><tt> .<b>A</b>ide <b>T</b>erminate server <b>S</b>cheduled
1523       </tt></td>
1524       <td> Shut down the Citadel service the next time there are zero
1525 users connected. This allows you to automatically wait until all users
1526 are logged out. </td>
1527     </tr>
1528     <tr>
1529       <td width="30%"><tt> .<b>A</b>ide mailing <b>L</b>ist recipients
1530       </tt></td>
1531       <td> Any room may be made into a mailing list. Enter this command
1532 to open an editor window containing the list of Internet e-mail
1533 addresses to which every message posted in the room will be sent. </td>
1534     </tr>
1535     <tr>
1536       <td width="30%"><tt> .<b>A</b>ide mailing list <b>D</b>igest
1537 recipients </tt></td>
1538       <td> Similar to the regular mailing list command, except the
1539 messages will be sent out in 'digest' form -- recipients will see
1540 messages from the address of the room itself rather than the address of
1541 the author of each message, and a digest may contain more than one
1542 message. Each room may have any combination of List and Digest
1543 recipients. </td>
1544     </tr>
1545     <tr>
1546       <td width="30%"><tt> .<b>A</b>ide <b>N</b>etwork room sharing </tt></td>
1547       <td> Configures the sharing of the current room's contents with
1548 other Citadel nodes. Messages posted in this room on any Citadel system
1549 will automatically be replicated to other Citadel systems carrying the
1550 room. </td>
1551     </tr>
1552   </tbody>
1553 </table>
1554 <br>
1555 <br>
1556 <h3><a name="Editing_rooms"></a>Editing rooms</h3>
1557 <p>This command allows any aide to change the parameters of a room. Go
1558 to the room you wish to edit and enter the <tt><b>.A</b>ide <b>E</b>dit
1559 room</tt> command. A series of prompts will be displayed. The existing
1560 parameters will be displayed in brackets; simply press return if you
1561 want
1562 to leave any or all of them unchanged.</p>
1563 <pre> <br>Room name [IG's Fun Room]:<br></pre>
1564 <p>...the name of the room.</p>
1565 <pre>Private room [Yes]? <br></pre>
1566 <p>...enter Yes if you wish to restrict access to the room, or no if
1567 the room
1568 is to be accessible by all users. Note that Citadel doesn't bother
1569 users
1570 about access to rooms every time they need to access the room. Once a
1571 user
1572 gains access to a private room, it then behaves like a public room to
1573 them.
1574 The following four questions will only be asked if you selected
1575 Private...</p>
1576 <pre>Accessible by guessing room name [No]?<br></pre>
1577 <p>...if you enter Yes, the room will not show up in users' <tt><b>K</b>nown
1578 rooms</tt> listing, but if they <tt><b>.G</b>oto</tt> the room (typing
1579 the room's full name), they will gain access to the room.</p>
1580 <pre>Accessible by entering a password [No]?<br>Room password [mypasswd]:  <br></pre>
1581 <p>...this adds an additional layer of security to the room, prompting
1582 users for a password before they can gain access to the room.</p>
1583 <p>If you did not select guessname or passworded, then the only way
1584 users can access the room is if an Aide explicitly invites them to the
1585 room using the <tt><b>.A</b>ide <b>R</b>oom <b>I</b>nvite user</tt>
1586 command.</p>
1587 <pre>Cause current users to forget room [No] ? No<br></pre>
1588 <p>Enter Yes if you wish to kick out anyone who currently has access to
1589 the room.</p>
1590 <pre>Preferred users only [No]? No<br></pre>
1591 <p>Enter Yes if you wish to restrict the room to only users who have
1592 level 5 (Preferred User) status (and Aides too, of course). You should
1593 make the room public if you intend to do this, otherwise the two
1594 restrictions will be COMBINED.</p>
1595 <pre>Read-only room [No]? No<br></pre>
1596 <p>If you set a room to Read-Only, then normal users will not be
1597 allowed to
1598 post messages in it. Messages may only be posted by Aides, and by
1599 utility programs such as the networker and the "aidepost" utility. This
1600 is
1601 useful in situations where a room is used exclusively for important
1602 announcements, or if you've set up a room to receive an Internet
1603 mailing
1604 list and posting wouldn't make sense. Other uses will, of course,
1605 become
1606 apparent as the need arises.</p>
1607 <p>Now for a few other attributes...</p>
1608 <pre>Directory room [Yes]? Yes<br></pre>
1609 <p>...enter Yes if you wish to associate a directory with this room.
1610 This can be used as a small file repository for files relevant to the
1611 topic of the room. If you enter Yes, you will also be prompted with the
1612 following four questions:</p>
1613 <pre>Directory name [mydirname]: <br></pre>
1614 <p>...the name of the subdirectory to put this room's files in. The
1615 name of the directory created will be <tt><i>&lt;your Citadel
1616 directory&gt;</i>/files/<i>&lt;room dir name&gt;</i></tt>.</p>
1617 <pre>Uploading allowed [Yes]? Yes<br></pre>
1618 <p>...enter Yes if users are allowed to upload to this room.</p>
1619 <pre>Downloading allowed [Yes]? Yes<br></pre>
1620 <p>...enter Yes if users are allowed to download from this room.</p>
1621 <pre>Visible directory [Yes]? Yes<br></pre>
1622 <p>...enter Yes if users can read the directory of this room.</p>
1623 <pre>Network shared room [No]? No<br></pre>
1624 <p>...you can share a room over a network without setting this flag,
1625 and
1626 vice versa, but what this flag does is twofold: </p>
1627 <ul>
1628   <li>It prevents people with no network access from entering messages
1629 here </li>
1630   <li>Messages are displayed with the name of their originating
1631 system in the header. </li>
1632 </ul>
1633 <pre>Permanent room [No]? No<br></pre>
1634 <p>Citadel contains an 'auto purger' which is capable of removing rooms
1635 which have not been posted in for a pre-defined period of time (by
1636 default
1637 this is set to two weeks). If you wish to keep this from happening to
1638 a particular room, you can set this option. (Keep in mind that <tt>Lobby&gt;</tt>,
1639 <tt>Aide&gt;</tt>, any private mailbox rooms, any network shared rooms,
1640 and any rooms with a file directory are automatically permanent.)</p>
1641 <pre>Anonymous messages [No]? No<br>Ask users whether to make messages anonymous [No]? No<br></pre>
1642 <p>...you can have rooms in which all messages are automatically
1643 anonymous, and you can have rooms in which users are prompted whether
1644 to make a
1645 message anonymous when they enter it. The real identity of the author
1646 of each message is still revealed to the Room Aide for this room, as
1647 well
1648 as any system-wide Aides.</p>
1649 <pre>Room aide [Joe Responsible]: <br></pre>
1650 <p>...on larger systems, it helps to designate a person to be
1651 responsible for a room. Room Aides have access to a restricted set of
1652 Aide commands, ONLY when they are in the room in which they have this
1653 privilege. They can edit the room, delete the room, delete and move
1654 messages, and invite or kick out users (if it is a private room), but
1655 they cannot perform aide commands that are not room-related (such as
1656 changing users access levels).</p>
1657 <pre>Listing order [64]: <br></pre>
1658 <p>This is just a simple way to try to control the order rooms are
1659 listed in when users call up a <tt><b>K</b>nown Rooms</tt> listing.
1660 Rooms with a lower listing order are displayed prior to rooms with a
1661 higher listing order. It has no other effect. For users who list rooms
1662 in floor order, the display will sort first by floor, then by listing
1663 order.</p>
1664 <pre>Message expire policy (? for list) [0]:<br></pre>
1665 <p>This provides you with the opportunity to select how long each
1666 message will remain in a room before automatically being deleted. Press
1667 <tt><b>?</b></tt> for a list of options. You can choose to keep
1668 messages around forever (or until they are manually deleted), until
1669 they become a certain number of days old, or until a certain number of
1670 additional messages are posted in the room, at which time the oldest
1671 ones will scroll out.</p>
1672 <p>When a new Citadel system is first installed, the default
1673 system-wide
1674 expire policy is set to 'manual' -- no automatic purging of messages
1675 takes place anywhere. For public message boards, you will probably want
1676 to set some sort of automatic expire policy, in order to prevent your
1677 message base from growing forever.</p>
1678 <p>You will notice that you can also fall back to the default expire
1679 policy for the floor upon which the room resides. This is the default
1680 setting. You can change the floor's default with the <tt><b>;A</b>ide <b>E</b>dit
1681 floor</tt> command. The default setting for the floor default, in turn,
1682 is the system default setting, which can be changed using the <tt><b>.A</b>ide
1683 <b>S</b>ystem configuration <b>G</b>eneral</tt> command.</p>
1684 <pre>Save changes (y/n)? Yes<br></pre>
1685 <p>...this gives you an opportunity to back out, if you feel you really
1686 messed things up while editing.<br>
1687 <br>
1688 </p>
1689 <h3><a name="File_directories"></a>File directories</h3>
1690 <p>If you have created any directory rooms, you can attach file
1691 descriptions to the filenames through a special file called <tt>filedir</tt>.
1692 Each line contains the name of a file in the directory, followed by a
1693 space and then a description of the file, such as:</p>
1694 <pre>myfile.txt This is a description of my file.<br>phluff A phile phull of phluff!<br></pre>
1695 <p>...this would create file descriptions for the files <tt>myfile.txt</tt>
1696 and <tt>phluff</tt> which would be displayed along with the directory.
1697 It should also be noted that when users upload files to your system,
1698 they will be prompted for file descriptions, which will be added to the
1699 <tt>filedir</tt> file. If one does not exist, it will be created.<br>
1700 <br>
1701 </p>
1702 <h3><a name="Creating_and_editing_user_accounts"></a>Creating and
1703 editing user accounts</h3>
1704 <p>Anyone with Aide level access may use the <tt><b>.A</b>ide edit <b>U</b>ser</tt>
1705 command to create and/or edit user accounts. There are several
1706 parameters which can be set here.</p>
1707 <p>To create a user:</p>
1708 <pre>Lobby&gt; . Aide edit User <br>User name: New User Name<br>No such user.<br>Do you want to create this user? Yes<br></pre>
1709 <p>At this point, the new user account has been created, and the
1710 command will
1711 continue as if you were editing an existing account. Therefore the
1712 remainder
1713 of this procedure is the same for creating and editing:</p>
1714 <pre>Lobby&gt; . Aide edit User <br>User name: person of significance<br>User #70 - Person of Significance  PW: <br><br>,<br><br>Current access level: 4 (Network User)<br></pre>
1715 <p>The blank lines are the user's 'registration' information --
1716 personal
1717 information such as full name, address, telephone number, etc. This
1718 information
1719 will comprise the user's vCard in both their user profile and in the
1720 Global
1721 Address Book.</p>
1722 <pre>Change password [No]: No<br></pre>
1723 <p>...answer Yes to set or change the password for this account.</p>
1724 <pre>Access level [4]: <br></pre>
1725 <p>...this allows you to set or change the access level for this
1726 account. The access levels available are as follows: </p>
1727 <ul>
1728   <li>0 - Deleted. (This immediately deletes the account.) </li>
1729   <li>1 - New, unvalidated user </li>
1730   <li>2 - Problem user (severely restricts account - use for
1731 probationary access) </li>
1732   <li>3 - User with no network privileges. Same access as a normal user
1733 except cannot post messages in rooms shared on a network. </li>
1734   <li>4 - Normal user </li>
1735   <li>5 - Preferred user (access is granted to privileged rooms) </li>
1736   <li>6 - Aide (administrative access to the whole system) </li>
1737 </ul>
1738 <pre>Permission to send/receive Internet mail [ No]? No<br></pre>
1739 <p>If your system is configured to only allow Internet mail privileges
1740 to certain users, this is where you can grant or revoke that privilege.</p>
1741 <pre>Ask user to register again [Yes]: Yes<br></pre>
1742 <p>If you answer Yes to this question, the user will be presented with
1743 a
1744 'registration' screen or set of prompts, the next time they log in
1745 using
1746 a Citadel client. This will prompt them for their full name, address,
1747 telephone
1748 number, etc.</p>
1749 <pre>Times called [0]: <br>Messages posted [0]: <br></pre>
1750 <p>These statistics are available for informational purposes only, so
1751 there is normally no need to change them.</p>
1752 <pre>Set last call to now [No]: No<br>Purge time (in days, 0 for system default [0]: <br></pre>
1753 <p>Citadel contains an auto-purger which is capable of automatically
1754 deleting accounts which have not been accessed in a predefined period
1755 of time. If you choose to perform this operation, you can 'touch' the
1756 account
1757 of a wayward user by setting their 'last call' time to 'now'. You can
1758 also adjust, on a per-user basis, the amount of time which must pass
1759 before
1760 their account is purged by the system. This time is set in days. You
1761 can also specify 0 days to indicate that you wish to use the system
1762 default
1763 setting.<br>
1764 <br>
1765 </p>
1766 <h3><a name="Deleting_and_moving_messages"></a>Deleting and moving
1767 messages</h3>
1768 <p>Aides and Room Aides have the ability to delete and move messages.
1769 After each message, the normal prompt appears:</p>
1770 <pre>(8) &lt;B&gt;ack &lt;A&gt;gain &lt;Q&gt;uote &lt;R&gt;eply &lt;N&gt;ext &lt;S&gt;top m&lt;Y&gt; next &lt;?&gt;help -&gt;<br></pre>
1771 <p>Entering <tt><b>D</b>elete</tt> will delete the message. A <tt>(y/n)</tt>
1772 prompt will appear to confirm that you really want to delete the
1773 message. Entering <tt><b>M</b>ove</tt> will prompt for a room to which
1774 the message should be moved.<br>
1775 <br>
1776 </p>
1777 <h3><a name="Customizing_the_help_files"></a>Customizing the help files</h3>
1778 <p>The subdirectory called <tt>help</tt> contains your system's help
1779 files. There's nothing hard-coded into the system that dictates what
1780 files
1781 should be there. Whenever a user types the command <tt><b>.H</b>elp</tt>
1782 followed by the name of a help file, it displays the contents of that
1783 help file.</p>
1784 <p>The help files that come with the system, of course, are enough to
1785 guide a user through its operation. But you can add, change, or remove
1786 help files to suit whatever is appropriate for your system.</p>
1787 <p>There are several strings that you can put in help files that will
1788 be automatically
1789 substituted with other strings. They are:</p>
1790 <pre> <br> ^nodename    = The node name of your system on a Citadel network<br> ^humannode   = Human-readable node name (also your node name on C86Net)<br> ^fqdn        = Your system's fully-qualified domain name<br> ^username    = The name of the user reading the help file<br> ^usernum     = The user number of the user reading the help file<br> ^sysadm      = The name of the system administraor (i.e., you)<br> ^variantname = The name of the software you're running<br> ^bbsdir      = The directory on the host system in which you have<br>                installed the Citadel system.<br></pre>
1791 <p>So, for example, you could create a help file which looked like:</p>
1792 <pre>  "Lots of help, of course, is available right here on ^humannode.  Of<br>course, if you still have trouble, you could always bug ^sysadm about it!"<br><br></pre>
1793 <h3><a name="Site_configuration"></a>Site configuration</h3>
1794 <p>Once your Citadel server is up and running, the first thing you'll
1795 want to do is customize and tune it. This can be done from the
1796 text-based client with the <tt><b>.A</b>ide <b>S</b>ystem
1797 configuration <b>G</b>eneral</tt> command, or from WebCit (if you have
1798 it installed) by clicking 'Advanced Options' followed by 'Edit
1799 site-wide configuration.' Either method will offer the same
1800 configuration options. This document shows the text mode client being
1801 used.</p>
1802 <p>The first set of options deal with the identification of your system.</p>
1803 <pre>Lobby&gt; . Aide System configuration General<br>Node name [uncnsrd]: <br>Fully qualified domain name [uncensored.citadel.org]: <br>Human readable node name [Uncensored]: <br>Modem dialup number [US 914 999 9999]: <br>Geographic location of this system [Mount Kisco, NY]: <br>Name of system administrator [IGnatius T Foobar]: <br>Paginator prompt [<jinkies
1804  !="" more="" text="" on="" the="" next="" screen="">]: <br></jinkies></pre>
1805 <p>'Node name' refers to the short, unqualified node name by which your
1806 system is known on a Citadel network. Generally it will be the same as
1807 the unqualified host name of your computer; this is, in fact, the
1808 default setting.</p>
1809 <p>Then enter the fully-qualified domain name (FQDN) of your system. If
1810 you
1811 are not on the Internet, you can simply set it to the same as your
1812 unqualified host name. Otherwise you should set this value to the host
1813 name by which your system is most commonly known.</p>
1814 <p>The field called 'Human-readable node name' (also known as the 'node
1815 title' or 'organization name' in other software) is used solely for
1816 display purposes. Set it to the actual name of your system as you want
1817 it to appear in
1818 banners, messages, etc.</p>
1819 <p>If you have a modem or bank of modems answering data calls for your
1820 system, enter it in the field marked 'Modem dialup number.' Otherwise
1821 you may leave it blank.</p>
1822 <p>'Geographic location of this system' is another display field. Enter
1823 a city and state, or city and country. </p>
1824 <p>'Name of system administrator' is important! Any user who logs on
1825 with the name you enter here will automatically be granted Aide
1826 privileges. This is one of two ways for the system administrator to
1827 grant himself/herself Aide access to the system when initially setting
1828 it up. (The other is simply to have the first account created on a new
1829 installation.)</p>
1830 <p>The next set of options are your system's security settings. Before
1831 delving into the actual options, we should review the various access
1832 levels available on the system. Citadel has seven access levels:</p>
1833 <ul>
1834   <li>0 (Deleted). A user whose access level is set to 0 will
1835 automatically be deleted by the system. </li>
1836   <li>1 (New User). Users at this level may only read messages.
1837 Entering messages is prohibited, except in the <tt>Mail&gt;</tt> room,
1838 where a message to 'sysop' may be entered. </li>
1839   <li>2 (Problem User). Also known as 'Twit.' </li>
1840   <li>3 (Local User). May enter messages, except in rooms shared on a
1841 Citadel network. </li>
1842   <li>4 (Network User). May enter messages in every accessible
1843 room. </li>
1844   <li>5 (Preferred User). Use of this level is up to the whim of the
1845 system administrator. </li>
1846   <li>6 (Aide). Access is granted to the administrative functions of
1847 the system. (This access level may also be granted to a user only for a
1848 specific room, please see 'Room Aide' for more information.) </li>
1849 </ul>
1850 <pre>Require registration for new users [No]: No<br>Disable self-service user account creation [No]: No<br>Initial access level for new users [4]:<br>Access level required to create rooms [4]: <br>Automatically give room aide privs to a user who creates a private room [No]: No<br><br>Automatically move problem user messages to twit room [Yes]: Yes<br>Name of twit room [Trashcan]: <br>Restrict Internet mail to only those with that privilege [No]: No<br>Allow Aides to Zap (forget) rooms [Yes]: Yes<br>Log all pages [No]: No<br></pre>
1851 <p>'Registration' refers to the process of a user entering various
1852 personal contact information (real name, address, telephone number,
1853 etc.) into the system. When enabled, this information is stored as a
1854 vCard object on the system in two places: the user's <tt>My Citadel
1855 Config&gt;</tt>
1856 room, and in the <tt>Global Address Book&gt;</tt> room. (Note: the
1857 latter
1858 should be made private on publicly-accessible systems, for obvious
1859 reasons.)</p>
1860 <p>If you answer Yes to 'Require registration for new users' then each
1861 new user, upon creating a new account, will immediately be entered into
1862 the registration process. On the other hand, if you answer Yes to
1863 'Disable self-service user account creation' then new users will not be
1864 able to
1865 log in at all -- all accounts must be created by an Aide.</p>
1866 <p>'Initial access level for new users' should be set to 1 (New User)
1867 if you would like to review each new user's registration info before
1868 granting them higher access. This would be done periodically with the <tt><b>.A</b>ide
1869 <b>V</b>alidate new users</tt> command. If you do not require
1870 registration, you should set the initial access level to 4 (Network
1871 User).</p>
1872 <p>Given the above options, it then becomes clear that there are
1873 generally two ways you can set up your Citadel system, depending on its
1874 purpose:</p>
1875 <ul>
1876   <li><b>A public access BBS or message board</b> - since you do
1877 not know who might want to log in, self-service account creation needs
1878 to
1879 stay enabled. If you want to be strict about users identifying
1880 themselves,
1881 then you should also require users to register (just remember to post a
1882 privacy policy if you're going to collect personal information) -- then
1883 set
1884 the initial access level to 1 (New User), so new users cannot post
1885 messages
1886 until after you've validated them. For a more lax environment, you can
1887 remove the registration requirement and grant new accounts level 4
1888 (Normal
1889 User) access on the first visit. </li>
1890   <li><b>A private email/groupware system for your organization</b> -
1891 in this case, disable self-service account creation; you don't want
1892 strangers welcoming themselves to your system. You'll probably also
1893 want
1894 to disable registration, because you or some other site administrator
1895 will be entering users' contact info when you create their accounts.
1896 Since this is also how you assign their Internet e-mail addresses, it's
1897 probably a good idea to do it yourself instead of expecting them to do
1898 it. </li>
1899 </ul>
1900 <p>'Access level required to create rooms' is up to you. You might wish
1901 to
1902 restrict the creation of new rooms only to Aides, or you might wish to
1903 allow
1904 anyone to create a room. The latter is one of the Citadel culture's
1905 most
1906 long-standing traditions; the former may be appropriate if users are
1907 abusing
1908 this privilege.</p>
1909 <p>You have the ability to 'Automatically give room aide privs to a
1910 user who creates a private room.' If you answer Yes, then any user who
1911 creates a
1912 guess-name, passworded, or invitation-only room will automatically
1913 become the room aide, and will have access to a subset of the <tt><b>.A</b>ide</tt>
1914 command set while in that room. If you would rather grant this
1915 permission manually, answer No.</p>
1916 <p>Another tradition in the Citadel culture is to refrain from deleting
1917 problem users, but instead to 'twit' them (reduce their access level to
1918 2
1919 [Problem User]). You can then 'Automatically move problem user messages
1920 to twit room' (answer Yes, then specify 'Name of twit room' and
1921 remember
1922 to create that room). If you employ this logic, any user with level 2
1923 (Problem
1924 User) access will continue to have access to the same set of rooms, but
1925 all
1926 messages posted will automatically be routed to the Trashcan (or
1927 whatever
1928 you call your twit room).</p>
1929 <p>If you have Internet mail configured, you have the option of
1930 restricting its use on a user-by-user basis. If you wish to do this,
1931 answer Yes to 'Restrict Internet mail to only those with that
1932 privilege.' Obviously this makes no sense for an internal e-mail
1933 system, but for a public BBS it
1934 might be appropriate.</p>
1935 <p>Normally, Aides have access to every room, public or private.
1936 They are also forbidden from <tt><b>Z</b>ap</tt>ping
1937 rooms, because the review of content is considered one of their roles.
1938 If you wish to change these policies, the next two options allow you
1939 to. You may 'Allow Aides to Zap (forget) rooms', in which case they may
1940 use the <tt><b>Z</b>ap</tt> command just like any other user.
1941 Aides may also <tt><b>.G</b>oto</tt> any private mailbox belonging to
1942 any
1943 user, using a special room name format.</p>
1944 <p>If your local security and/or privacy policy dictates that you keep
1945 a
1946 log of all pages (instant messages) that go through the system, then
1947 answer
1948 Yes to 'Log all pages'. If you answer Yes, you will be prompted for the
1949 name of a room to which all pages will be logged. If you answer No,
1950 then
1951 only the sender and recipient of each individual message will receive a
1952 copy.</p>
1953 <p>The next set of options deals with the tuning of your system. It is
1954 usually safe to leave these untouched.</p>
1955 <pre>Server connection idle timeout (in seconds) [900]: <br>Maximum concurrent sessions [20]: <br>Maximum message length [10000000]: <br>Minimum number of worker threads [5]: <br>Maximum number of worker threads [256]: <br>Automatically delete committed database logs [Yes]:<br></pre>
1956 <p>The 'Server connection idle timeout' is for the connection between
1957 client and server software. It is <b>not</b> an idle timer for the
1958 user interface. 900 seconds (15 minutes) is the default and a sane
1959 setting.</p>
1960 <p>'Maximum concurrent sessions' is the highest number of user sessions
1961 you wish to allow on your system at any given time. Citadel can scale
1962 to hundreds of concurrent users, but if you have limited hardware or
1963 (more likely) limited bandwidth, you might wish to set a maximum. You
1964 can also set it to zero for no limit.</p>
1965 <p>'Maximum message length' is just that. This could be a good way to
1966 prevent enormous multimedia files from finding their way into your
1967 message base. This maximum is enforced in all protocols and is also
1968 advertised by the ESMTP service.</p>
1969 <p>The minimum and maximum number of worker threads can be tuned to
1970 your liking. Citadel will attempt to keep one worker thread running per
1971 session, within these constraints. You should be aware that due to the use of
1972 the worker thread model, Citadel can handle a large number of concurrent
1973 sessions with a much smaller thread pool. If you don't know the programming
1974 theory behind multithreaded servers, you should leave these parameters alone.<br>
1975 </p>
1976 <p>'Automatically delete committed database logs' is a <span
1977  style="font-style: italic;">crucial</span> setting which affects your
1978 system's disk utilization and backup recoverability.&nbsp; Please refer
1979 to the <a href="#Database_maintenance">database maintenance</a>
1980 section of this document to learn how the presence or absence of
1981 database logs affect your ability to reliably backup your Citadel
1982 system.<br>
1983 </p>
1984 <p>The next set of options affect how Citadel behaves on a network.</p>
1985 <pre>Server IP address (0.0.0.0 for 'any') [0.0.0.0]:<br>POP3 server port (-1 to disable) [110]:<br>POP3S server port (-1 to disable) [995]:<br>IMAP server port (-1 to disable) [143]:<br>IMAPS server port (-1 to disable) [993]:<br>SMTP MTA server port (-1 to disable) [25]:<br>SMTP MSA server port (-1 to disable) [587]:<br>SMTPS server port (-1 to disable) [465]:<br>Correct forged From: lines during authenticated SMTP [Yes]:<br>Allow unauthenticated SMTP clients to spoof my domains [No]: No<br>Instantly expunge deleted IMAP messages [No]: Yes<br></pre>
1986 <p>"Server IP address" refers to the IP address on <span
1987  style="font-style: italic;">your server</span> to which Citadel's
1988 protocol services should be bound.&nbsp; Normally you will leave this
1989 set to 0.0.0.0, which will cause Citadel to listen on all of your
1990 server's interfaces.&nbsp; However, if you are running multiple
1991 Citadels on a server with multiple IP addresses, this is where you
1992 would specify which one to bind this instance of Citadel to.</p>
1993 <p>Then you can specify TCP port numbers for the SMTP, POP3, and IMAP
1994 services. For a system being used primarily for Internet e-mail, these
1995 are essential, so you'll want to specify the standard port numbers: 25,
1996 110, and 143. If Citadel is running alongside some other mail system,
1997 though, then you might want to choose other, unused port numbers, or
1998 enter -1 for any protocol
1999 to disable it entirely.</p>
2000 <p>You'll also notice that you can specify two port numbers for SMTP:
2001 one
2002 for MTA (Mail Transport Agent) and one for MSA (Mail Submission Agent).
2003 The
2004 traditional ports to use for these purposes are 25 and 587. If you are
2005 running an external MTA, such as Postfix (which submits mail to Citadel
2006 using
2007 LMTP) or Sendmail (which submits mail to Citadel using the 'citmail'
2008 delivery agent), that external MTA will be running on port 25, and you
2009 should
2010 specify "-1" for the Citadel MTA port to disable it. The MSA port
2011 (again,
2012 usually 587) would be the port used by end-user mail client programs
2013 such as
2014 Aethera, Thunderbird, Eudora, or Outlook, to submit mail into the
2015 system.
2016 All connections to the MSA port <b>must</b> use Authenticated SMTP.<br>
2017 </p>
2018 <p>The protocols ending in "S" (POP3S, IMAPS, and SMTPS) are
2019 SSL-encrypted.&nbsp; Although all of these protocols support the
2020 STARTTLS command, older client software sometimes requires connecting
2021 to "always encrypted" server ports.&nbsp; Usually when you are looking
2022 at a client program that gives you a choice of "SSL or TLS," the SSL
2023 option will connect to one of these dedicated ports, while the TLS
2024 option will connect to the unencrypted port and then issue a STARTTLS
2025 command to begin encryption.&nbsp; (It is worth noting that this is <span
2026  style="font-style: italic;">not</span> the proper use of the acronyms
2027 SSL and TLS, but that's how they're usually used in many client
2028 programs.)<br>
2029 </p>
2030 <p>All of the default port numbers, including the encrypted ones, are
2031 the standard ones.<br>
2032 </p>
2033 <p>The question about correcting forged From: lines affects how Citadel
2034 behaves with authenticated SMTP clients. Citadel does not ever allow
2035 third-party SMTP relaying from unauthenticated clients -- any incoming
2036 messages must be
2037 addressed to a user on the system or somewhere in a Citadel network. To
2038 use Citadel with SMTP client software such as Netscape, Outlook,
2039 Eudora, or
2040 whatever, users must log in with a username and password. In order to
2041 prevent
2042 message forgeries, Citadel discards the <tt>From:</tt> line in any
2043 message
2044 entered by an authenticated user, and replaces it with a <tt>From:</tt>
2045 line
2046 containing the user's genuine name and e-mail address. Technically,
2047 this
2048 violates RFC822, because headers are never supposed to be altered, but
2049 common
2050 sense dictates that this is a good idea. Nevertheless, if you want to
2051 suppress
2052 this behavior, answer 'No' at the prompt (the default is 'Yes') and the
2053 headers
2054 will never be altered.</p>
2055 <p>&quot;Instant expunge&quot; affects what happens when IMAP users delete
2056 messages.  As you may already know, messages are not <i>truly</i> deleted
2057 when an IMAP client sends a delete command; they are only <i>marked for
2058 deletion</i>.  The IMAP client must also send an &quot;expunge&quot; command
2059 to actually delete the message.  The Citadel server automatically expunges
2060 messages when the client logs out or selects a different folder, but if you
2061 select the Instant Expunge option, an expunge operation will automatically
2062 follow any delete operation (and the client will be notified, preventing any
2063 mailbox state problems).  This is a good option to select, for example, if you
2064 have users who leave their IMAP client software open all the time and are
2065 wondering why their deleted messages show up again when they log in from a
2066 different location (such as WebCit).</p>
2067 <p>&quot;Allow spoofing&quot; refers to the security level applied to
2068 non-authenticated SMTP clients.  Normally, when another host connects to
2069 Citadel via SMTP to deliver mail, Citadel will reject any attempt to send
2070 mail whose sender (From) address matches one of your host's own domains.  This
2071 forces your legitimate users to authenticate properly, and prevents foreign
2072 hosts (such as spammers) from forging mail from your domains.  If, however,
2073 this behavior is creating a problem for you, you can select this option to
2074 bypass this particular security check.<br>
2075 <span style="font-family: monospace;"><br>
2076 Connect this Citadel to an LDAP directory [No]: No</span><br>
2077 </p>
2078 <p>The LDAP configuration options are discussed elsewhere in this
2079 document.<br>
2080 </p>
2081 <p>The final set of options configures system-wide defaults for the
2082 auto-purger:</p>
2083 <pre>Default user purge time (days) [120]: <br>Default room purge time (days) [30]: <br>System default message expire policy (? for list) [0]: <br>Keep how many messages online? [150]:<br>Mailbox default message expire policy (? for list) [0]:<br>How often to run network jobs (in seconds) [1800]:<br>Enable full text search index (warning: resource intensive) [Yes]: Yes<br>Hour to run purges (0-23) [4]:<br>
2084 Perform journaling of email messages [No]:<br>Perform journaling of non-email messages [No]:<br>Email destination of journalized messages [example@example.com]:<br></pre>
2085 <p>Any user who does not log in for the period specified in 'Default
2086 user purge time' will be deleted the next time a purge is run. This
2087 setting may be modified on a per-user basis.</p>
2088 <p>'Default room purge time' behaves the same way, and may also be
2089 modified on a per-room basis.</p>
2090 <p>'System default message expire policy' defines the way in which old
2091 messages are expired (purged) off the system. You can specify any of:</p>
2092 <ul>
2093   <li>Purge by age (specify in days) </li>
2094   <li>Purge by message count in the room (specify number of messages) </li>
2095   <li>Do not purge at all </li>
2096 </ul>
2097 <p>Again, this setting may be overridden on a per-floor basis, and the
2098 floor setting may be overridden on a per-room basis. You'll also notice
2099 that you can set a <i>different</i> default for mailbox rooms if you
2100 want
2101 to. This can allow you, for example, to set a policy under which old
2102 messages scroll out of public rooms, but private mail stays online
2103 indefinitely
2104 until deleted by the mailbox owners.<br>
2105 </p>
2106 <p>"How often to run network jobs" refers to the sharing of content on
2107 a
2108 Citadel network. If your system is on a Citadel network, this
2109 configuration
2110 item dictates how often the Citadel server will contact other Citadel
2111 servers to send and receive messages. In reality, this will happen more
2112 frequently than you specify, because other Citadel servers will be
2113 contacting yours at regular intervals as well.<br>
2114 </p>
2115 <p>"Hour to run purges" determines when expired and/or deleted objects
2116 are purged from the database.&nbsp; These purge operations are
2117 typically run overnight and automatically, sometime during whatever
2118 hour you specify.&nbsp; If your site is much busier at night than
2119 during the day, you may choose to have the auto-purger run during the
2120 day.</p>
2121 <p>"Enable full text search index," if enabled, instructs the server to
2122 build and maintain a searchable index of all messages on the
2123 system.&nbsp; This is a time and resource intensive process -- it could
2124 take days to build the index if you enable it on a large
2125 database.&nbsp; It is also fairly memory intensive; we do not recommend
2126 that you enable the index unless your host system has at least 512 MB
2127 of memory.&nbsp; Once enabled, however, it will be updated
2128 incrementally
2129 and will not have any noticeable impact on the interactive response
2130 time of your system.&nbsp; The full text index is currently only
2131 searchable when using IMAP clients; other search facilities will be
2132 made available in the near future.</p>
2133 <p>The &quot;Perform journaling...&quot; options allow you to configure
2134 your Citadel server to send an extra copy of every message, along with
2135 recipient information if applicable, to the email address of your choice.
2136 The journaling destination address may be an account on the local Citadel
2137 server, an account on another Citadel server on your network, or an Internet
2138 email address.  These options, used in conjunction with an archiving service,
2139 allow you to build an archive of all messages which flow through your Citadel
2140 system.  This is typically used for regulatory compliance in industries which
2141 require such things.  Please refer to the <a href="journaling.html">journaling
2142 guide</a> for more details on this subject.</p>
2143 <p><span style="font-family: monospace;">Save this configuration? No</span><br>
2144 </p>
2145 <p>When you're done, enter 'Yes' to confirm the changes, or 'No' to
2146 discard the changes.</p>
2147 </div>
2148 <hr size="2" width="100%">
2149 <h2 align="center"><a name="Configuring_Citadel_for_Internet_e-mail"></a>Configuring
2150 Citadel for Internet e-mail</h2>
2151 <div align="justify">
2152 <h3><a name="Introduction"></a>Introduction</h3>
2153 As you know by now, Citadel is a completely self-contained,
2154 full-featured Internet e-mail system. &nbsp;When you run Citadel you do
2155 not need any other mail software on your host system. &nbsp;This
2156 eliminates the need for tedious mucking about with sendmail, qmail,
2157 postfix, Cyrus, the UW IMAP
2158 server, or any of countless other needlessly complex programs that lead
2159 some people to the false assumption that Unix systems are difficult to
2160 administer.<br>
2161 <br>
2162 Some of the many features supported by Citadel are:<br>
2163 <ul>
2164   <li>Built-in SMTP and ESMTP service, for delivering and receiving
2165 e-mail on the Internet</li>
2166   <li>Built-in POP3 service, for remote fetching of messages</li>
2167   <li>Built-in IMAP service, for access to mail using any standard mail
2168 client program</li>
2169   <li>Web mail (implemented using the "WebCit" middleware, which is
2170 installed separately)</li>
2171   <li>Support for mailing lists, in both "individual message" and
2172 "digest" formats</li>
2173   <li>Multiple/virtual domain support</li>
2174   <li>Any user may have multiple Internet e-mail addresses, in multiple
2175 domains</li>
2176   <li>Global address book (Users with addresses in a domain may be
2177 spread out across many servers on a Citadel network)</li>
2178   <li>Easy-to-configure integration with <a
2179  href="http://www.spamassassin.org/">SpamAssassin</a> can block spam <i>before</i>
2180 it enters the mail system</li>
2181   <li>Easy-to-configure integration with most Realtime Blackhole
2182 Lists (RBL) provide further defense against spammers</li>
2183 </ul>
2184 This section of the documentation will demonstrate how to configure
2185 these features.<br>
2186 <br>
2187 <h3><a name="Basic_site_configuration"></a>Basic site configuration</h3>
2188 <p>Basic configuration of your Citadel system for Internet e-mail
2189 begins with
2190 the <tt><b>.A</b>ide <b>S</b>ystem configuration <b>I</b>nternet</tt>
2191 command:</p>
2192 <pre>Lobby&gt; <b>.A</b>ide <b>S</b>ystem configuration <b>I</b>nternet<br><br>###                    Host or domain                     Record type<br>--- -------------------------------------------------- --------------------<br>  1<br>&lt;A&gt;dd &lt;D&gt;elete &lt;S&gt;ave &lt;Q&gt;uit  -&gt;<br></pre>
2193 <p>This is a "clean" setup. For a simple, standalone e-mail system you
2194 simply have to enter the <tt><b>A</b>dd</tt> command:</p>
2195 <pre>&lt;A&gt;dd &lt;D&gt;elete &lt;S&gt;ave &lt;Q&gt;uit  -&gt; <b>A</b>dd<br><br>Enter host name: schmeep.splorph.com<br> (1) localhost       (Alias for this computer)<br> (2) gateway domain  (Domain for all Citadel systems)<br> (3) smart-host      (Forward all outbound mail to this host)<br> (4) directory       (Consult the Global Address Book)<br> (5) SpamAssassin    (Address of SpamAssassin server)<br> (6) RBL             (domain suffix of spam hunting RBL)<br><br>Which one [1]:<br></pre>
2196 <p><b>localhost:</b> Basically what you're doing here is telling
2197 Citadel
2198 what any aliases for your machine are. If your machine were <tt>schmeep.splorph.com</tt>
2199 and you also had a DNS entry set up for <tt>blah.com</tt>, you might
2200 want to enter '1' and enter <tt>blah.com</tt> as your alias, so that
2201 e-mail
2202 sent to that address won't bounce.</p>
2203 <p><i>Important tip:</i> if your system is known by one name and <i>only</i>
2204 one domain, you might not even need to do this at all. You will recall
2205 that you entered your system's fully qualified domain name earlier when
2206 you went through the <tt><b>.A</b>ide <b>S</b>ystem configuration <b>G</b>eneral</tt>
2207 command. The domain name you entered there is automatically considered
2208 by Citadel to be a 'localhost' entry in your Internet mail
2209 configuration. It does not hurt to enter it in both locations, though.</p>
2210 <p><b>gateway domain:</b> this is a simple way of mapping various
2211 Citadel hosts in an Internet domain. For example, if you enter <tt>bar.com</tt>
2212 as a gateway domain, then mail to users at <tt>foo.bar.com</tt> will
2213 be forwarded to the host called <tt>foo</tt> on a Citadel network,
2214 mail to users
2215 at <tt>kunst.bar.com</tt> will be delivered to the Citadel server
2216 called
2217 <tt>kunst</tt>, etc. This feature has limited usefulness; if you are
2218 operating
2219 a network of Citadel servers, it is more likely that you will use the
2220 'directory'
2221 feature, explained below.</p>
2222 <p><b>smart-host:</b> Normally, Citadel sends outbound Internet e-mail
2223 directly to its destination. This may not be appropriate for some
2224 sites; you may require (due to local convention, security policy, or
2225 whatever) that all outbound mail be sent to an SMTP relay or forwarder.
2226 To configure this
2227 functionality, simply enter the domain name or IP address of your relay
2228 as a 'smart-host' entry.</p>
2229 <p>If your relay server is running on a port other
2230 than the standard SMTP port 25, you can also specify the port number
2231 using &quot;host:port&quot; syntax; i.e. <tt>relay99.myisp.com:2525</tt></p>
2232 <p>Furthermore, if your relay server requires authentication, you can
2233 specify it using username:password@host or username:password@host:port
2234 syntax; i.e. <tt>jsmith:pass123@relay99.myisp.com:25</tt></p>
2235 <p><b>directory:</b> a domain for which you are participating in
2236 directory services across any number of Citadel nodes. For example, if
2237 users who have addresses in the domain <tt>citadel.org</tt> are spread
2238 out across multiple Citadel servers on your network, then enter <tt>citadel.org</tt>
2239 as a 'directory' entry. <i>For this to work, all Citadel servers
2240 participating in directory service <b>must</b> carry and share the <tt>Global
2241 Address Book&gt;</tt> room.</i></p>
2242 <p><b>spamassassin:</b> if you are running a <a
2243  href="http://www.spamassassin.org">SpamAssassin</a> service anywhere
2244 on your
2245 <b>local</b> network, enter its name or IP address as a 'spamassassin'
2246 entry. This may be (and, in fact, will usually be) <tt>127.0.0.1</tt>
2247 to specify
2248 that the service is running on the same host computer as the Citadel
2249 server.</p>
2250 <p>Please install SpamAssassin as per its own documentation. You will
2251 want to run SpamAssassin in client/server mode, where a <tt>spamd</tt>
2252 daemon is always running on your computer. Citadel does not utilize the
2253 <tt>spamc</tt> client; instead, it implements SpamAssassin's protocol
2254 on its own.</p>
2255 <p>Connecting to a SpamAssassin service across a wide area network is
2256 strongly discouraged. In order to determine whether an incoming e-mail
2257 is spam, Citadel must feed the <i>entire message</i> to the
2258 SpamAssassin service. Doing this over a wide area network would consume
2259 time and bandwidth,
2260 which would affect performance.</p>
2261 <p>Citadel invokes the SpamAssassin service when incoming messages are
2262 arriving via SMTP. Before a message is accepted, it is submitted to
2263 SpamAssassin. If SpamAssassin determines that the message is spam, the
2264 Citadel SMTP
2265 service <i>rejects the message,</i> causing a delivery failure on the
2266 sending
2267 host. This is superior to software which files away spam in a separate
2268 folder, because delivery failures will cause some spammers to assume
2269 the
2270 address is invalid and remove it from their mailing lists.</p>
2271 <p><b>RBL:</b> Realtime Blackhole Lists (RBL's) provide defense against
2272 spammers based on their source IP address. There are many such lists
2273 available on the Internet, some of which may be utilized free of
2274 charge. Since they are DNS based, the lists do not require storage on
2275 your server -- they are queried during the SMTP conversation.</p>
2276 <p>Citadel can utilize any RBL that uses the <tt>z.y.x.w.nameoflist.org</tt>
2277 syntax, where <tt>w.x.y.z</tt> is the source IP address which is
2278 attempting to deliver mail to your server. For example, <a
2279  href="http://www.spamcop.net">SpamCop</a> would use the query <tt>2.0.0.127.bl.spamcop.net</tt>
2280 to determine whether the host at <tt>127.0.0.2</tt> is a known spammer
2281 or open relay. In this case, you simply select option '6' to add an RBL
2282 entry, and provide it with the domain suffix of <tt>bl.spamcop.net</tt>
2283 (the IP address
2284 and extra dot will be automatically prepended for each query).</p>
2285 <p>Now select <tt><b>S</b>ave</tt> and you are just about ready for
2286 Internet e-mail.</p>
2287 <h3><a name="Enabling_the_Internet_mail_protocols"></a>Enabling the
2288 Internet mail protocols</h3>
2289 <p>As previously mentioned, Citadel contains its own SMTP, POP3, and
2290 IMAP services. Enabling them is simple.</p>
2291 <p>Check for the existance of a current MTA (sendmail, qmail, etc.) by
2292 connecting to port 25 on your host. If you see something similar to the
2293 following
2294 you're running an MTA already and you'll need to shut it down:</p>
2295 <pre>smw @ pixel % telnet localhost 25<br>Trying 127.0.0.1...<br>Connected to localhost.<br>Escape character is '^]'.<br>220 pixel.citadel.org ESMTP Sendmail 8.9.3/8.9.3; Wed, 15 Mar 2000 19:00:53 -0500<br></pre>
2296 <p>In the above example, we see that the host already has Sendmail
2297 listening on port 25. Before Citadel can use port 25, Sendmail must be
2298 shut off. Please consult the documentation for your operating system
2299 for instructions on how to do this. (On a Red Hat Linux system, for
2300 example, you can run the <tt>ntsysv</tt> utility, un-checking <tt>sendmail</tt>
2301 to disable it at
2302 the next reboot; then, run <tt>service sendmail stop</tt> to shut off
2303 the
2304 currently running service.)</p>
2305 <p>If you get a 'connection refused' message when you telnet to port 25
2306 there's nothing running and you should be able to continue. You might
2307 also want to turn off POP (try the above test substituting 110 for 25)
2308 and IMAP (port 143) and use Citadel's POP and IMAP services.</p>
2309 <p>Citadel will look for an existing pop/smtp server on startup. If
2310 they
2311 don't exist (and you've configured them properly) then Citadel should
2312 enable
2313 them at startup. You can check your logs to be sure, or you can start
2314 the
2315 server from a shell and watch it load. It might look something like
2316 this:</p>
2317 <font size="-2"> </font>
2318 <pre><font size="-2">smw @ pixel % ./citserver<br><br>Multithreaded message server for Citadel<br>Copyright (C) 1987-2006 by the Citadel development team.<br>Citadel is open source, covered by the GNU General Public License, and<br>you are welcome to change it and/or distribute copies of it under certain<br>conditions.  There is absolutely no warranty for this software.  Please<br>read the 'COPYING.txt' file for details.<br><br>Loading citadel.config<br>Opening databases<br>This is GDBM version 1.8.0, as of May 19, 1999.<br>Checking floor reference counts<br>Creating base rooms (if necessary)<br>Registered a new service (TCP port 504)<br>Registered a new service (TCP port 0)<br>Initializing loadable modules<br>Registered server command CHAT (Begin real-time chat)<br>Registered server command PEXP (Poll for instant messages)<br>Registered server command GEXP (Get instant messages)<br>Registered server command SEXP (Send an instant message)<br>Registered server command DEXP (Disable instant messages)<br>Registered a new session function (type 0)<br>Registered a new x-msg function (priority 0)<br>Loaded module: $Id$<br>Registered a new session function (type 1)<br>Registered a new message function (type 201)<br>Registered a new message function (type 202)<br>Registered server command REGI (Enter registration info)<br>Registered server command GREG (Get registration info)<br>Registered a new user function (type 100)<br>Loaded module: $Id$<br>Server-hosted upgrade level is 5.62<br>Loaded module: $Id$<br>Registered server command EXPI (Expire old system objects)<br>Registered server command FSCK (Check message ref counts)<br>Loaded module: $Id$<br><b>citserver: Can't bind: Address already in use<br>ERROR: could not bind to TCP port 25.</b><br>Registered a new service (TCP port 0)<br>Registered a new session function (type 50)<br>Loaded module: $Id$<br><b>citserver: Can't bind: Address already in use<br>ERROR: could not bind to TCP port 110.</b><br>Registered a new session function (type 0)<br>Loaded module: $Id$<br>Registered a new message function (type 202)Loaded module: $Id$<br>Registered server command RWHO (Display who is online)<br>Registered server command HCHG (Masquerade hostname)<br>Registered server command RCHG (Masquerade roomname)<br>Registered server command UCHG (Masquerade username)<br>Registered server command STEL (Enter/exit stealth mode)<br>Loaded module: $Id$<br>Changing uid to 513<br>Starting housekeeper thread<br></font></pre>
2319 <p>The lines emphasized in boldface in the above log output tell you
2320 that Citadel "can't bind" to various ports. The error 'address already
2321 in use' generally means that something else is already running on the
2322 requested port. Make SURE you've followed the above steps to remove
2323 sendmail/pop and start your Citadel server again.</p>
2324 <h3><a name="citmail"></a>Using Citadel in conjunction with another MTA</h3>
2325 <p>Occationally it is not practical to remove a non-Citadel MTA on your
2326 host system. For example, you might have multiple groups of users, some
2327 of
2328 which are using Citadel and some of which are using a legacy Unix mail
2329 spool. This type of configuration is discouraged, but two tools are
2330 provided
2331 to allow it.</p>
2332 <p>The tool is called <tt>citmail</tt> and it is, quite simply, a
2333 local MDA (Mail Delivery Agent) which you can configure into your MTA
2334 for final delivery of incoming messages to Citadel users. A full
2335 discussion of the finer points of complex Sendmail configurations is
2336 beyond the scope of this document; however, you might want to visit <a
2337  href="http://pixel.citadel.org/citadel/docs/">Pixel BBS</a> where some
2338 useful HOWTO documents are provided.<br>
2339 </p>
2340 <p>The other tool is an <a href="http://www.faqs.org/rfcs/rfc2033.html">RFC2033</a>
2341 compliant LMTP service running on a local socket.&nbsp; If you're
2342 running a mailer that speaks LMTP (such as <a
2343  href="http://www.postfix.org/">Postfix</a>), you can simply point your
2344 mailer at the socket called <span style="font-family: monospace;">citadel.socket</span>
2345 in your Citadel directory.&nbsp; For example, in Postfix you might put
2346 the following line into <span style="font-family: monospace;">main.cf</span>
2347 in order to tell it to use Citadel to deliver mail to local recipients:<br>
2348 </p>
2349 <pre>local_transport = lmtp:unix:/usr/local/citadel/lmtp.socket<br></pre>
2350 <p>Postfix also has something called a "fallback transport" which can
2351 be used to implement Citadel as a "secondary" mail system on your
2352 server, while keeping the existing Unix mailboxes intact.&nbsp;
2353 However, it is beyond the scope of this document to detail the finer
2354 points of the configuration of Postfix or any other mailer, so refer to
2355 the documentation to those programs and keep in mind that Citadel has
2356 LMTP support.<span style="font-family: monospace;"></span></p>
2357 <p>There are actually <i>two</i> LMTP sockets. One is called
2358 <tt>lmtp.socket</tt> and the other is called <tt>lmtp-unfiltered.socket</tt>
2359 (both are found in your Citadel directory). The difference should be
2360 obvious: messages submitted via <tt>lmtp.socket</tt> are subject to
2361 any
2362 spam filtering you may have configured (such as SpamAssassin), while
2363 messages
2364 submitted via <tt>lmtp-unfiltered.socket</tt> will bypass the filters.
2365 You
2366 would use the filtered socket when receiving mail from an external MTA
2367 such
2368 as Postfix, but you might want to use the unfiltered socket with
2369 utilities
2370 such as fetchmail.</p>
2371 <br>
2372 <p>For outbound mail, you
2373 can either allow Citadel to perform
2374 deliveries directly
2375 (this won't affect your other mail system because outbound mail doesn't
2376 tie
2377 up port 25) or enter <tt>127.0.0.1</tt> as your smart-host, which will
2378 tell
2379 Citadel to forward all of its outbound mail to your other mail system.</p>
2380 <h3><a name="Hosting_an_Internet_mailing_list"></a>Hosting an Internet
2381 mailing list</h3>
2382 <p>Citadel has built in mailing list service (known in Internet
2383 vernacular as "listserv") functionality. &nbsp;You can turn any room
2384 into a mailing list. &nbsp;Users can then choose how they participate
2385 -- by logging on to your Citadel server directly, or by having the
2386 room's contents mailed to
2387 them somewhere else. &nbsp;Configuring this is easy.</p>
2388 <p>Citadel supports two modes of mailing list delivery: </p>
2389 <ul>
2390   <li>"List mode" -- each individual message is delivered as a single
2391 e-mail to each list mode recipient. &nbsp;The "From:" header will
2392 display the address of the message's original author.</li>
2393   <li>"Digest mode" -- groups of one or more messages are delivered
2394 to digest mode recipients. &nbsp;The number of messages in the group
2395 depends on how many new messages arrived since the last batch was
2396 delivered. &nbsp;The "From:" header will display the address of the
2397 room itself, which allows replies to be posted back to the room.</li>
2398 </ul>
2399 A room may have any combination of list mode and digest mode
2400 recipients.
2401 <p>As alluded to above, every room on your Citadel system has an
2402 Internet e-mail address of its own. &nbsp;Messages sent to that address
2403 will be
2404 posted in the room (and sent back out to mailing list recipients, as
2405 well
2406 as to any other Citadels you share the room with). &nbsp;The address
2407 format
2408 is <tt>room_</tt> plus the name of the room, with any spaces replaced
2409 by
2410 underscores, followed by <tt>@</tt> and your hostname. For example, if
2411 your
2412 system is known as <tt>phlargmalb.orc.org</tt> on the Internet, and
2413 you have
2414 a room called <tt>Bubblegum Collectors</tt>, you can post to that room
2415 from
2416 anywhere on the Internet simply by sending an e-mail to <tt>room_bubblegum_collectors@phlargmalb.orc.org</tt>.
2417 When the message arrives, it's automatically posted in that room.</p>
2418 <p>To manually edit the list of "list mode" recipients, simply enter
2419 the <tt><b>.A</b>ide
2420 mailing <b>L</b>ist management</tt> command. Your text editor will
2421 open
2422 up and you will be able to create or edit a list of recipients, one per
2423 line. Lines beginning with a hash (<tt>#</tt>) are comments.</p>
2424 <p>To manually edit the list of "digest mode" recipients, enter the <tt><b>.A</b>ide
2425 mailing list <b>D</b>igest recipients</tt> command. As with the
2426 previous command, the text editor will open up and you can edit the
2427 list of digest mode recipients, one per line.</p>
2428 <p>Citadel also has a facility which allows users to subscribe or
2429 unsubscribe to mailing lists using a web browser. In order to do this,
2430 WebCit must also be running on your server in addition to Citadel.
2431 WebCit is obtained and installed separately from the rest of the
2432 Citadel system.</p>
2433 <p>In order to prevent "just anyone" from subscribing to any room on
2434 your system, there is a setting in the <tt><b>.A</b>ide <b>E</b>dit
2435 room</tt> command:</p>
2436 <pre>CitaNews} . Aide Edit this room<br>
2437 Room name [CitaNews]:<br>
2438 <br>
2439 <i>(lots of other stuff omitted for brevity...)</i><br>
2440 <br>
2441 Self-service list subscribe/unsubscribe [No]: Yes<br></pre>
2442 <p>When you answer "Yes" to self-service list subscribe/unsubscribe,
2443 you are
2444 enabling that feature. Now, all you have to do is tell the world about
2445 the
2446 web page they need to visit. It looks like this:</p>
2447 <center><tt>http://foobar.baz.org:2000/listsub</tt></center>
2448 <p>In this example, the server is called <tt>foobar.baz.org</tt> and
2449 WebCit is running on port 2000. Edit appropriately.</p>
2450 <p>Citadel offers a subscribe/unsubscribe facility that is more
2451 intuitive than other listservs. With most systems, sending commands to
2452 the listserv requires that you e-mail it commands in a special format.
2453 It's easy to get it wrong. Citadel simply uses your web browser. You
2454 select the list you want to subscribe or unsubscribe (hint: it's the
2455 list of rooms you've enabled self-service for), select whether you want
2456 list mode or digest mode, and enter your e-mail address. For security
2457 purposes, a confirmation message is sent to the address you enter. But
2458 you don't have to reply to the message in a weird format, either: the
2459 confirmation contains another URL which
2460 you simply click on (or paste into your browser if you can't click on
2461 URL's
2462 in your e-mail software) and the confirmation is automatically
2463 completed.</p>
2464 <hr size="2" width="100%">
2465 <center>
2466 <h2><a name="Building_or_joining_a_Citadel_network"></a>Building or
2467 joining a Citadel network</h2>
2468 </center>
2469 <h3><a name="Overview__"></a>Overview</h3>
2470 <p>If you are running Citadel as a BBS or other forum type of
2471 application, one way to 'keep the conversation going' is to share rooms
2472 with other Citadel systems. In a shared room, a message posted to the
2473 room is automatically
2474 propagated to every system on the network. It's kind of like a UseNet
2475 newsgroup, but without the spam.</p>
2476 <p>If you are using Citadel as the e-mail and groupware platform for a
2477 large organization, you can use its networking features to build a
2478 large network of Citadel servers which share content (think of rooms as
2479 public folders), redistribute e-mail throughout the organization, and
2480 integrate the global address book. &nbsp;It might make sense, for
2481 example, in a large corporation to give each department or location its
2482 own Citadel server. &nbsp;Thanks
2483 to Citadel's global address book features, you could still have all of
2484 the users share a single e-mail domain.</p>
2485 <p>Obviously, the first thing you have to do is find another Citadel to
2486 share rooms with, and make arrangements with them. The following
2487 Citadels are a good place to start:</p>
2488 <ul>
2489   <li>UNCENSORED! - <a href="http://uncensored.citadel.org">uncensored.citadel.org</a>
2490   </li>
2491   <li>The Dog Pound II - <a href="http://dogpound2.citadel.org">dogpound2.citadel.org</a>
2492   </li>
2493 </ul>
2494 <p>You don't have to be a part of the citadel.org domain to participate
2495 in the public Citadel network, but the DNS service is provided free of
2496 charge by the Citadel community if you wish to do this.</p>
2497 <h3><a name="Conventions_and_etiquette_when"></a>Conventions and
2498 etiquette when connecting to the public Citadel network</h3>
2499 <p>Before we get into the technical nitty gritty, there are two points
2500 of etiquette to keep in mind. The first thing to keep in mind is that
2501 the operator of any particular Citadel may not be willing to share some
2502 of his/her rooms. Some sites are proud to offer exclusive content in
2503 certain areas. Chances are, if a room is already being shared on the
2504 network, it's available for anyone to share; if not, it can't hurt to
2505 ask -- but take care not to demand it of them. Ask if you may share the
2506 room instead of telling them that you wish to share the room. When
2507 looking at a <tt><b>K</b></tt>nown rooms list, network rooms are the
2508 ones ending in parentheses instead of angle brackets. For example, <tt>Gateway)</tt>
2509 would be a network room, <tt>Lobby&gt;</tt> would not.</p>
2510 <p>The other point of etiquette to remember is that you should be
2511 making
2512 the arrangements in advance, and then set it up. It is extremely rude
2513 to
2514 simply begin networking with another Citadel, or unilaterally start
2515 sharing
2516 a new room, without first obtaining permission from its operator.
2517 Always
2518 ask first. Most Citadel operators are more than happy to network with
2519 you. Also, if later on you decide to take your system down, please take
2520 the time
2521 to notify the operators of any other Citadels you network with, so they
2522 can
2523 unconfigure their end.</p>
2524 <h3><a name="Getting_ready_to_join_the_network"></a>Getting ready to
2525 join the network</h3>
2526 <p>Ok, first things first. On a Citadel room sharing network, the first
2527 thing you need to know is your own system's node name. Presumably you
2528 set
2529 this up during installation, but if you want to change it you can do so
2530 using
2531 the <tt><b>.A</b>ide <b>S</b>ysconfig <b>G</b>eneral</tt> command:</p>
2532 <pre>Lobby&gt; . Aide System configuration General<br>Node name [uncnsrd]:<br>Fully qualified domain name [uncensored.citadel.org]:<br>Human readable node name [Uncensored]:<br></pre>
2533 <p>The "node name" is important, it's how the network identifies
2534 messages coming from your system. The "human readable node name" is
2535 simply a label; it shows up in messages coming from your system. "Fully
2536 qualified domain name" is your DNS name; it's used for routing messages
2537 on the Internet. In the above example, the node name is "uncnsrd".</p>
2538 <h3><a name="Defining_neighbor_nodes"></a>Defining neighbor nodes</h3>
2539 <p>The next thing you need to do is configure your neighbor node(s).
2540 You need to do this for each node you network with. Let's say you
2541 wanted
2542 to talk to a Citadel system called "frobozz". Use the <tt><b>.A</b>ide
2543 <b>S</b>ysconfig <b>N</b>etwork</tt> command:</p>
2544 <pre>Lobby&gt; . Aide System configuration Network<br>###    Node            Secret                   Host or IP             Port#<br>--- ---------------- ---------------- -------------------------------- -----<br>&lt;A&gt;dd &lt;D&gt;elete &lt;S&gt;ave &lt;Q&gt;uit  -&gt; Add<br><br>Enter node name    : frobozz<br>Enter shared secret: frotz<br>Enter host or IP   : frobozz.magick.org<br>Enter port number  :  [504]: 504<br><br>###    Node            Secret                   Host or IP             Port#<br>--- ---------------- ---------------- -------------------------------- -----<br>  1 frobozz          frotz            frobozz.magick.org               504<br>&lt;A&gt;dd &lt;D&gt;elete &lt;S&gt;ave &lt;Q&gt;uit  -&gt; Save<br><br>Lobby&gt;<br></pre>
2545 <p>As you can see in the above example, you have to enter the Citadel
2546 node name, the DNS name or IP address of the server, and the port
2547 number the Citadel service is running on. The "shared secret" is a
2548 password to allow the two Citadel nodes to connect to each other to
2549 exchange network data. The password must be <i>identical</i> on both
2550 ends of the connection -- when the operator of the other Citadel node
2551 sets up the connection with
2552 your system, he/she must use the same password.</p>
2553 <h3><a name="Sharing_rooms"></a>Sharing rooms</h3>
2554 <p>Now you're ready to share rooms. You have to do this for each room
2555 you want to share, and you have to do it from BOTH ENDS -- again, when
2556 you
2557 share a room with another Citadel, they must share it with you as well.
2558 Let's say you have a room called "Quiche Recipes&gt;" and you want to
2559 share
2560 it with the node you set up above. First, edit the room and flag it as
2561 a
2562 network room:</p>
2563 <pre>Quiche Recipes&gt; . Aide Edit this room<br>Room name [Quiche Recipes]:<br>Private room  [No]: No<br>Preferred users only  [No]: No<br>Read-only room  [No]: No<br>Directory room  [No]: No<br>Permanent room  [No]: No<br>Network shared room  [No]: Yes<br>Automatically make all messages anonymous  [No]: No<br>Ask users whether to make messages anonymous  [No]: No<br>Listing order [64]:<br>Room aide (or 'none') [none]:<br>Message expire policy (? for list) [0]:<br>Save changes (y/n)? Yes<br>Ok<br><br>Quiche Recipes)<br></pre>
2564 <p>Notice how the prompt changed? It was &gt; before, but it's ) now.
2565 That means it's a network room. Now you can tell Citadel that you want
2566 to
2567 share the room with frobozz. Enter this command:</p>
2568 <pre>Quiche Recipes) . Aide Network room sharing<br></pre>
2569 <p>Your text editor will pop up (you <i>did</i> configure Citadel to
2570 use
2571 your favorite text editor, right?) with a screen that looks like this:</p>
2572 <pre># Configuration for room: Quiche Recipes<br># Nodes with which we share this room<br># Specify one per line.<br></pre>
2573 <p>All you have to do is enter the name of the other Citadel node (i.e.
2574 "frobozz" in our example) on a line by itself. As usual, lines starting
2575 with a "#" are comments. Just go to the end of the file, type "frobozz"
2576 (without the quotes), save the file... and you're done!</p>
2577 <p>At this point, you just sit back and enjoy. Your Citadel and the
2578 other one will begin polling each other at regular intervals (once per
2579 hour by default) and sharing messages.</p>
2580 <h3><a name="Sending_mail"></a>Sending mail</h3>
2581 <p>You can send mail to any user on any node of your Citadel network.
2582 It may take a little while for your system to learn the entire node
2583 list, though, as this is done by watching incoming messages on the
2584 network and learning which nodes are out there.</p>
2585 <p>To send a private message, just enter <tt>user @ host</tt> as the
2586 recipient:</p>
2587 <pre>Mail&gt; Enter message                                                            <br>Enter recipient: Some other user @ frobozz<br> Feb 11 2003 11:36pm from I. M. Me to Some other user @ frobozz<br>type message here...<br><br>Entry command (? for options)  -&gt;<br><br></pre>
2588 <h3><a name="Changing_the_polling_interval"></a>Changing the polling
2589 interval</h3>
2590 <p>As previously mentioned, Citadel will poll other Citadel nodes for
2591 messages once per hour. If this is not an acceptable interval, you can
2592 change it using the <tt><b>.A</b>ide <b>S</b>ystem configuration <b>G</b>eneral</tt>
2593 command. Enter this command and look for the option:</p>
2594 <pre>How often to run network jobs (in seconds) [3600]:<br></pre>
2595 <p>Change it to whatever you like. For example, 15 minutes is 900
2596 seconds. So if you changed the default value to 900, network polling
2597 would occur every 15 minutes.</p>
2598 <hr>
2599 <h2 align="center"><a name="Database_maintenance"></a>Database
2600 maintenance</h2>
2601 <h3><a name="Introduction_"></a>Introduction</h3>
2602 The data store used by Citadel is reliable and self-maintaining.
2603 &nbsp;It requires very little maintenance.  This is primarily due
2604 to its use of the <a href="http://www.sleepycat.com">Berkeley DB</a>
2605 record manager. &nbsp;It is robust, high-performance, and transactional.<br>
2606 <br>
2607 A few small data files are kept in your main Citadel directory, but the
2608 databases are in the <tt>data/</tt> subdirectory.  The files with
2609 names that begin with "cdb" are the databases themselves; the files
2610 with names that begin with "log" are the logs (sometimes referred to as
2611 "journals").&nbsp; Log files will continue to appear as you use your
2612 system; each will grow to approximately 10 megabytes in size before a
2613 new one is started.  There is a system configuration setting
2614 (found in <span style="font-family: monospace;"><span
2615  style="font-weight: bold;">.A</span>ide <span
2616  style="font-weight: bold;">S</span>ystem-configuration <span
2617  style="font-weight: bold;">G</span>eneral</span> in the text mode
2618 client, or in <span style="font-family: monospace;">Administration
2619 --&gt; Edit site-wide configuration --&gt; Tuning</span> in the WebCit
2620 client) which specifies "Automatically delete committed database
2621 logs."&nbsp; If you have this option enabled, Citadel will
2622 automatically delete any log files whose contents have been fully
2623 committed to the database files.<br>
2624 <br>
2625 For more insight into how the database and log files work, you may wish
2626 to read the <a
2627  href="http://www.sleepycat.com/docs/ref/transapp/archival.html">Berkeley
2628 DB documentation</a> on this subject.<br>
2629 <br>
2630 <h3><a name="Backing_up_your_Citadel_database"></a>Backing up your
2631 Citadel database</h3>
2632 <span style="font-weight: bold;">Please read this section carefully.</span><br>
2633 <br>
2634 There are two backup strategies you can use, depending on your site's
2635 availability requirements and disk space availability.<br>
2636 <h5>Strategy #1: Standard backup</h5>
2637 The standard (or "offline") backup is used when your Citadel server is
2638 configured to automatically delete committed database logs.&nbsp; The
2639 backup procedure is as follows:<br>
2640 <ol>
2641   <li>Shut down the Citadel server.</li>
2642   <li>Back up all files (database files, log files, etc.) to tape or
2643 some other backup media.</li>
2644   <li>Start the Citadel server.</li>
2645 </ol>
2646 <span style="font-style: italic;">Advantage:</span> very little disk
2647 space is consumed by the logs.<br>
2648 <span style="font-style: italic;">Disadvantage:</span> Citadel is not
2649 available during backups.<br>
2650 <br>
2651 <h5>Strategy #2: "Hot" backup</h5>
2652 The "hot backup" procedure is used when your Citadel server is
2653 configured <span style="font-weight: bold;">not</span> to
2654 automatically delete committed database logs.&nbsp; The backup
2655 procedure is as follows:<br>
2656 <ol>
2657   <li>Back up all files.&nbsp; Make sure the database files (<span
2658  style="font-family: monospace;">cdb.*</span>) are backed up <span
2659  style="font-style: italic;">before</span> the log files (<span
2660  style="font-family: monospace;">log.*</span>).&nbsp; This will usually
2661 be the case, because the database files tend to appear first in both
2662 alphabetical and on-disk ordering of the <span
2663  style="font-family: monospace;">data/</span> directory.</li>
2664   <li>After verifying that your backup completed successfully, delete
2665 the committed log files with a command like this:</li>
2666 </ol>
2667 <span style="font-family: monospace;">/usr/local/citadel/sendcommand
2668 "CULL"</span><br>
2669 <br>
2670 <span style="font-style: italic;">Advantage:</span> Citadel continues
2671 to run normally during backups.<span style="font-style: italic;"><br>
2672 Disadvantage:</span> Much disk space is consumed by the log files,
2673 particularly if the full text indexer is turned on.<br>
2674 <br>
2675 <br>
2676 It is up to you to decide which backup strategy to use.&nbsp; <span
2677  style="font-weight: bold;">Warning: if you configure Citadel to
2678 automatically delete committed database logs, and do not shut the
2679 Citadel service down during backups, there is no guarantee that your
2680 backups will be usable!</span><br>
2681 <br>
2682 <h3><a name="Database_repair"></a>Database repair</h3>
2683 Although Citadel's data store is quite reliable, database corruption
2684 can occur in rare instances. &nbsp;External factors such as an
2685 operating
2686 system crash or an unexpected loss of power might leave the database in
2687 an unknown state. &nbsp;A utility is provided which may be able to
2688 repair
2689 your database if this occurs. &nbsp;If you find that your Citadel
2690 server
2691 is not running, and reading the logs shows that it is crashing because
2692 of
2693 an inability to validate a database, follow these steps:<br>
2694 <ol>
2695   <li>Edit <tt>/etc/inittab</tt> and switch the Citadel service from
2696 "respawn" to "off." &nbsp;Type <tt>init q</tt> to make this setting
2697 permanent.</li>
2698   <li><b>Make a backup of your data.</b> &nbsp;Either write it out to
2699 tape or copy it to another directory, or a tarball.<br>
2700   </li>
2701   <li><tt>cd</tt> to your Citadel directory and type <tt>./database_cleanup.sh</tt></li>
2702   <li>Let the cleanup script run. &nbsp;<b>Do not interrupt this
2703 process for any reason.</b><br>
2704   </li>
2705   <li>Edit <tt>/etc/inittab</tt> and switch the Citadel service from
2706 "off" to "respawn". &nbsp;Type <tt>init q</tt> to activate your
2707 changes.</li>
2708 </ol>
2709 If this procedure does not work, you must restore from your most recent
2710 backup.<br>
2711 <br>
2712 <h3><a name="ImportingExporting_your_Citadel"></a>Importing/Exporting
2713 your Citadel database<br>
2714 </h3>
2715 <p>Citadel contains an importer/exporter module, affectionately
2716 known as the "Art Vandelay" module (a not-so-obscure Seinfeld
2717 reference). It
2718 allows you to export the entire contents of your Citadel databases to a
2719 flat file, which may then be imported on another system. (This
2720 procedure
2721 is also known as "dump and load" to database gurus.)</p>
2722 <p>Why would you want to do this? &nbsp;Here are some scenarios: </p>
2723 <ul>
2724   <li>You are moving a Citadel installation to another computer, which
2725 uses a different CPU. Since Citadel stores data in an
2726 architecture-dependent format, the data files wouldn't work on the new
2727 computer as-is. </li>
2728   <li>Your computer crashed, lost power, etc. and you suspect that your
2729 databases have become corrupted. </li>
2730   <li>You want to switch to a different back-end data store. (For
2731 example, from GDBM to Berkeley DB) </li>
2732 </ul>
2733 <p>So ... how do we work this magic? Follow these steps <i>exactly</i>
2734 as documented and you should be able to do it all with very little
2735 trouble.</p>
2736 <ol>
2737   <li>This should be obvious, but it's still worth mentioning: &nbsp;<b>Make
2738 sure you have a backup of everything before you start this!&nbsp;</b>
2739 You're performing a major operation here. Don't risk it. </li>
2740   <li>First, get all the users logged off from your system. Disconnect
2741 it from the network if possible. You don't want anyone logging in while
2742 you're doing this. </li>
2743   <li>Log on as root, or some other user that has read/write access to
2744 all relevant files. </li>
2745   <li>Go to the directory that Citadel is installed in. For example,
2746 issue a command like <tt>cd /usr/local/citadel</tt> </li>
2747   <li>Export the databases with the following command:<br>
2748     <br>
2749     <tt>./sendcommand "ARTV export" &gt;exported.dat</tt><br>
2750     <br>
2751 This command may run for a while. On a very large system it could take
2752 an hour or more. Please be patient! </li>
2753   <li>When the export completes, check to make sure that <tt>exported.dat</tt>
2754 exists and has some data in it. (Type "ls -l exported.dat") </li>
2755   <li>Shut down the Citadel server. If you have a line in <tt>/etc/inittab</tt>
2756 that reads like this:<br>
2757     <br>
2758     <tt>c1:2345:respawn:/usr/local/citadel/citserver
2759 -h/usr/local/citadel</tt> <br>
2760 ...then you should change the <tt>respawn</tt> to <tt>off</tt> and
2761 then type <tt>/sbin/init q</tt> to make the changes take effect. </li>
2762   <li>Now it's time to delete your current binary databases. Type:<br>
2763     <br>
2764     <tt>rm -f citadel.config citadel.control data/*</tt> </li>
2765   <li>If you're moving Citadel to another computer, you should move the
2766     <i>entire</i> directory over at this time. <tt>exported.dat</tt>
2767 only contains the information that was in the binary databases.
2768 Information which was stored in portable formats doesn't need to be
2769 exported/imported, so
2770 you must bring it all over in its current form. </li>
2771   <li>Now get Citadel running on the new computer (or whatever). Run <tt>setup</tt>
2772 and turn the service back on (from <tt>/etc/inittab</tt>) but DO NOT
2773 log in. </li>
2774   <li>As root, run the import command:<br>
2775     <br>
2776     <tt>./sendcommand "ARTV import" &lt;exported.dat</tt><br>
2777     <br>
2778 This will import your databases. Again, it may run for a long time. </li>
2779   <li>Restart the Citadel server. You can do this any way you like.
2780 From the command line, you can do it with a command like:<br>
2781     <br>
2782     <tt>./sendcommand "DOWN"</tt> <br>
2783   </li>
2784   <li>Now you're finished. Log in and test everything. You may delete
2785 exported.dat at this time, or you might want to save it somewhere as a
2786 sort of pseudo-backup. </li>
2787 </ol>
2788 <hr>
2789 <center>
2790 <h2><a name="crypto"></a>Cryptography support (TLS/SSL)</h2>
2791 </center>
2792 <h3><a name="crypto_intro"></a>Overview</h3>
2793 <p>Citadel provides built-in support for encryption using Transport
2794 Layer Security (TLS) for ESMTP, IMAP, POP3, and the Citadel client
2795 protocol.
2796 A simple cryptographic configuration is installed automatically when
2797 you
2798 bring the system online. The remainder of this section describes how
2799 this
2800 configuration is built, and what you can do to make changes to it.</p>
2801 <p>Encryption files are kept in the <tt>keys/</tt> directory. The
2802 three
2803 files used by Citadel are:</p>
2804 <ul>
2805   <li><tt>citadel.key</tt> - Contains your system's RSA private key.
2806 Citadel
2807 generates a new key automatically if one is not found. </li>
2808   <li><tt>citadel.csr</tt> - Contains a Certificate Signing Request
2809 (CSR)
2810 for your system. Citadel generates a new CSR automatically, using your
2811 private key, if one is not found. </li>
2812   <li><tt>citadel.cer</tt> - Contains the public certificate for your
2813 system. The public key in the certificate <b>must</b> correspond with
2814 the
2815 private key in <tt>citadel.key</tt>, otherwise encryption will not
2816 function properly. Citadel will generate a self-signed certificate,
2817 again
2818 using your private key, if a certificate is not found. </li>
2819 </ul>
2820 <h3><a name="real_cert"></a>Generating and installing a Trusted
2821 Certificate</h3>
2822 <p>If you wish to interact with 3rd party clients
2823 that have hard coded lists of acceptable Certificate Authorities, and
2824 you
2825 do not want annoying dialog boxes popping up for the user on the first
2826 (or
2827 all) connections, then you will have to have your key signed by a valid
2828 Certificate Authority.</p>
2829 <p>It is beyond the scope of this document to provide a complete
2830 tutorial
2831 on SSL certificates. Here are the general rules to follow:</p>
2832 <ul>
2833   <li>Generally, the Certificate Signing Requeste which is
2834 automatically
2835 generated by Citadel will not contain enough information for any
2836 Certificate
2837 Authority to sign it. Generate a new CSR with the following commands:<br>
2838     <br>
2839     <tt>cd keys</tt><br>
2840     <tt>openssl req -new -key citadel.key -out citadel.csr</tt><br>
2841     <br>
2842 Answer all questions (your geographic location, organization name,
2843 etc.)
2844 and then send the new <tt>citadel.csr</tt> to your Certificate
2845 Authority
2846 when you order the certificate. </li>
2847   <li>When the certificate is received, simply save it as <tt>citadel.cer</tt>
2848 and restart the Citadel server. </li>
2849   <li>If your certificate authority delivers a 'chained' certificate
2850 (one
2851 with intermediate certificate authorities), simply append the
2852 intermediate
2853 certificate after your server's own certificate in the <tt>citadel.cer</tt>
2854 file.</li>
2855 </ul>
2856 <br>
2857 <hr style="width: 100%; height: 2px;">
2858 <div style="text-align: center;">
2859 <h2><a name="LDAP_Directory_Support"></a>LDAP (Directory) Support</h2>
2860 <div style="text-align: justify;">
2861 <h3><a name="Introduction_ldap"></a>Introduction</h3>
2862 LDAP (Lightweight Directory Access Protocol) has become the open
2863 standard protocol for directory access.&nbsp; There are many client
2864 programs which are capable of making use of an LDAP directory
2865 service.&nbsp; Therefore it may be beneficial for some sites to have a
2866 directory available which is populated with Citadel user information.<br>
2867 <br>
2868 Citadel does not contain its own LDAP service, because that would
2869 eliminate its ability to coexist with any existing directory you may
2870 already have in place at your organization.&nbsp; Instead, we provide
2871 the LDAP Connector for Citadel, which allows the Citadel service to
2872 populate an external LDAP directory.&nbsp; If you do not already have
2873 an LDAP directory in place, you can use the OpenLDAP server, which is
2874 probably already present in your operating system, or at least can be
2875 loaded from the installation CD's.&nbsp; The supplied configuration
2876 file <tt>citadel-slapd.conf</tt> can be used as a starting
2877 point to get your LDAP server running.<br>
2878 <br>
2879 <h3><a name="Preparing_your_LDAP_server_for_Citadel"></a>Preparing your
2880 LDAP server for Citadel connections</h3>
2881 It is difficult to find a commonly accepted LDAP scheme. It seems, most
2882 real life LDAP installations go for the domain oriented apporach
2883 and lay out the structure after an existing domain/subdomain structure.
2884 <p> The most widely accepted and standardized object for storing
2885 personal data clearly is "inetOrgPerson". Citadel therefore extends this
2886 standard schema with an object class called "citadelInetOrgPerson".</p>
2887 <p>If you are using OpenLDAP as your directory server, you should
2888 choose options similar to the following:</p>
2889 <pre>
2890 include         /etc/openldap/schema/core.schema
2891 include         /etc/openldap/schema/cosine.schema
2892 include         /etc/openldap/schema/inetorgperson.schema
2893 include         /etc/openldap/schema/rfc2739.schema
2894 include         /etc/openldap/schema/citadel.schema
2895  
2896 ...
2897
2898 database        bdb
2899 suffix          "dc=example,dc=com"
2900 rootdn          "cn=manager,dc=example,dc=com"
2901 rootpw          secret
2902 directory       /var/openldap-data
2903
2904 </pre>
2905
2906 <p>Notes on this configuration:
2907 <ul>
2908   <li>Obviously, you can make your suffix and rootdn whatever you wish,
2909 but in most cases you'd simply follow a DC path that looks similar to
2910 your DNS domain.</li>
2911   <li>In earlier versions of OpenLDAP, you could use the
2912 option <span style="font-family: monospace;">schemacheck off</span> to
2913 make life easier by relaxing the strict schema checking.  This option
2914 has been removed from OpenLDAP, so now you <strong>must</strong> install
2915 the supplied schema extensions.  <tt>rfc2739.schema</tt> and
2916 <tt>citadel.schema</tt> are included with the Citadel distribution.</li>
2917   <li>Your <span style="font-family: monospace;">rootdn</span> and <span
2918  style="font-family: monospace;">rootpw</span> can be whatever you
2919 want.&nbsp; Usually the rootdn is <span style="font-family: monospace;">cn=manager,</span>
2920 followed by your usual suffix.&nbsp; Please don't use <span
2921  style="font-family: monospace;">secret</span> as your password, as in
2922 this example.&nbsp; Select a new password for your site.</li>
2923 </ul>
2924 <br>
2925 Your LDAP service <span style="font-weight: bold;">must</span> be up
2926 and running before you attempt to connect Citadel to it.<br>
2927 <br>
2928 <h3><a name="Configuring_the_LDAP_Connector_for"></a>Configuring the
2929 LDAP Connector for Citadel</h3>
2930 Once you've located or installed your LDAP server, connecting Citadel
2931 to it is easily completed with the <span style="font-weight: bold;"><span
2932  style="font-family: monospace;">.A</span></span><span
2933  style="font-family: monospace;">ide <span style="font-weight: bold;">S</span>ystem-configuration
2934 <span style="font-weight: bold;">G</span>eneral command:<br>
2935 </span>
2936 <pre>Lobby&gt; . Aide System configuration General<br><br><span
2937  style="font-style: italic;">(lots of other stuff omitted for brevity...)</span><br><br>Connect this Citadel to an LDAP directory [Yes]: <span
2938  style="font-weight: bold;">Yes</span><br>Host name of LDAP server []: <span
2939  style="font-weight: bold;">127.0.0.1</span><br>Port number of LDAP service [389]: <span
2940  style="font-weight: bold;">389</span><br>Base DN []: <span
2941  style="font-weight: bold;">dc=servername,dc=domain,dc=org</span><br>Bind DN []: <span
2942  style="font-weight: bold;">cn=manager,dc=servername,dc=domain,dc=org</span><br>Password for bind DN []: <span
2943  style="font-weight: bold;">secret</span><br style="font-weight: bold;"><br><span
2944  style="font-style: italic;">(more questions omitted...)</span><br><br>Save this configuration? <span
2945  style="font-weight: bold;">Yes</span><br></pre>
2946 Once you've done this, restart your Citadel service with the <span
2947  style="font-weight: bold;"><span style="font-family: monospace;">.A</span></span><span
2948  style="font-family: monospace;">ide <span style="font-weight: bold;">T</span>erminate-server
2949 <span style="font-weight: bold;">N</span>ow</span> command.&nbsp; When
2950 Citadel restarts, it will connect to your LDAP directory.&nbsp; Note
2951 that we gave Citadel the same Base DN, Bind DN, and password that was
2952 in our LDAP server configuration example.&nbsp; Obviously, everything
2953 needs to be identical on both sides or the connection will be
2954 refused.&nbsp; 127.0.0.1 is the loopback address, and 389 is the
2955 standard port number for LDAP, so this would be the proper host and
2956 port combination for an LDAP service running on your local
2957 server.&nbsp; It could just as easily be on another server, for example
2958 an organization-wide directory server.<br>
2959 <br>
2960 You can also configure the LDAP Connector for Citadel from a WebCit
2961 session.&nbsp; Log on as an Aide and click on Advanced Options --&gt;
2962 Edit Site-Wide Configuration --&gt; Directory, and you will be
2963 presented with the same set of questions.<br>
2964 <br>
2965 So, what kind of information will be entered into LDAP?&nbsp; As a
2966 rule, anything that gets saved to your Global Address Book room will
2967 also be saved to LDAP.&nbsp; Citadel will set up OU's (Organizational
2968 Units) for each node on your Citadel network, so if you are running
2969 multiple Citadel servers in an organization, you will automatically
2970 have a hierarchial view built for you.&nbsp; Below the OU's will be an
2971 entry for each user who has a vCard registered on the system.&nbsp;
2972 Citadel automatically translates vCard information to LDAP.<br>
2973 <br>
2974 If you already have a Global Address Book full of existing information,
2975 you can execute an <span style="font-family: monospace;">IGAB</span>
2976 (Initialize Global Address Book) server command to rebuild it.&nbsp; In
2977 addition to performing its usual function of rebuilding the internal
2978 Internet e-mail address mapping table, Citadel will also repopulate
2979 LDAP with all existing vCards.&nbsp; You should be aware, however, that
2980 existing LDAP entries will not be cleared from your directory
2981 server.&nbsp; If your directory contains only Citadel data, you can
2982 safely delete your database and start over, because it will be
2983 repopulated.&nbsp; Otherwise, Citadel will merely update any existing
2984 records with fresh information.<br>
2985 <br>
2986 The LDAP Connector for Citadel is a recent development, so expect more
2987 functionality in this space in the near future.<br>
2988 </div>
2989 <br>
2990 </div>
2991 <hr>
2992 <center>
2993 <h2><a name="utilities"></a>Utilities</h2>
2994 </center>
2995 <h3><a name="overview"></a>Overview</h3>
2996 <p>The following utilities will be discussed: </p>
2997 <ul>
2998   <li><b>aidepost</b> - Post standard input to the Aide&gt; room </li>
2999   <li><b>whobbs</b> - Who is on the system </li>
3000   <li><b>msgform</b> - Format a binary message to the screen (stdin or
3001 in a file) </li>
3002   <li><b>userlist</b> - Print the userlist </li>
3003   <li><b>sendcommand</b> - Send a server command </li>
3004 </ul>
3005 <p>It is up to you to decide which utilities should be made accessible
3006 only to system administrators. It is important that you set the file
3007 permissions correctly. All utilities should have access to the Citadel
3008 data files. We
3009 will attempt to address each program individually.</p>
3010 <h3><a name="aidepost"></a>aidepost</h3>
3011 <p>The nature of this program is rather simple. Standard input (stdin)
3012 is converted into a message, filed in the main message store, and
3013 posted in the Aide&gt; room. This is useful for keeping transcripts of
3014 system activity that has to do with Citadel operations. You might even
3015 elect to send all of
3016 your system logs there, too.</p>
3017 <p><tt>aidepost</tt> also accepts the usage <tt>aidepost -rTargetRoom</tt>,
3018 where TargetRoom is the name of a room to which you'd like the message
3019 to be sent.</p>
3020 <h3><a name="whobbs"></a>whobbs</h3>
3021 <p>This program is similar to the <tt>who</tt> command. It lists all
3022 of the users who are currently connected to your Citadel server, either
3023 locally or
3024 across a network. Unless you're running a standalone system, <tt>who</tt>
3025 and <tt>whobbs</tt> will probably not have a one-to-one
3026 correspondence. Remember
3027 that you will see sessions for SMTP, POP, and IMAP users, as well as
3028 users
3029 running a Citadel client.</p>
3030 <p>One thing to keep in mind is that the <tt>whobbs</tt> utility
3031 actually opens a connection to the server. If the server is maxed out, <tt>whobbs</tt>
3032 will still be able to provide a listing, because it doesn't need to log
3033 in to execute the <tt>RWHO</tt> command. Note that whobbs does not
3034 list its own session.</p>
3035 <p>The <tt>whobbs</tt> utility is smart enough to know when it is
3036 being invoked by a web server as a CGI program. In this situation, it
3037 will output its listing
3038 as a nicely formatted web page instead of plain text. This makes it
3039 easy
3040 to just put a link to the whobbs binary in your cgi-bin directory,
3041 allowing
3042 a quick and easy way for web surfers to see who is online.</p>
3043 <p>Running the <tt><b>W</b>ho is online</tt> command from the Citadel
3044 client does <b>not</b> call this utility. It has this functionality
3045 built in.<br>
3046 <br>
3047 </p>
3048 <h3><a name="msgform"></a>msgform</h3>
3049 <p>The <tt>msgform</tt> utility reads its standard input (stdin)
3050 looking for
3051 Citadel messages stored in the internal format used on disk and over
3052 the
3053 network, and sends them in a human-readable format to standard output
3054 (stdout). There is no longer much use for this program, but it is
3055 included for hack
3056 value.</p>
3057 <h3><a name="userlist"></a>userlist</h3>
3058 <p>This is a program to print the userlist. There are two flags that
3059 may be
3060 set when running this program. When called without any arguments, <tt>userlist</tt>
3061 will display all users (except those who have chosen to be unlisted),
3062 their user numbers, times called, messages posted, screen width, and
3063 date of their most recent call.</p>
3064 <p><tt>userlist</tt> is simply the same user listing code that is in
3065 the
3066 client, made into a standalone utility for convenience.<br>
3067 </p>
3068 <h3><a name="sendcommand"></a>sendcommand</h3>
3069 <p><tt>sendcommand</tt> will interpret its arguments (except for <tt>-hDIRNAME</tt>)
3070 as a server command, which is sent to the server. Commands which
3071 require textual input will read it from stdin. Commands which generate
3072 textual output will be sent to stdout.</p>
3073 <p>This utility is intended to be used to enable Citadel server
3074 commands to
3075 be executed from shell scripts.</p>
3076 <p><b>NOTE:</b> be sure that this utility is not world-executable. It
3077 connects to the server in privileged mode, and therefore could present
3078 a security hole if not properly restricted.</p>
3079 </div>
3080 <br>
3081 </body>
3082 </html>