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