1 .\" Copyright 2009 The Archiveopteryx Developers <info@aox.org>
2 .TH archiveopteryx 7 2009-07-13 aox.org "Archiveopteryx Documentation"
4 Overview of Archiveopteryx.
6 .B /etc/init.d/archiveopteryx {start,stop}
12 Archiveopteryx is a mail server system optimised for long-term storage
13 and heavy access. It comprises a set of server programs that provide
14 access to mail stored in a relational database (PostgreSQL).
16 The following five steps should suffice to install Archiveopteryx. If they
17 don't, or if anything is unclear, more detailed instructions are
18 available at http://www.archiveopteryx.org/installation
19 .SS "1. Install Archiveopteryx"
20 Usually, this is as simple as:
22 .B "apt-get install archiveopteryx"
25 .B "portinstall archiveopteryx"
28 http://www.archiveopteryx.org/installation explains what to do in
33 .B $LIBDIR/archiveopteryx start
35 to start Archiveopteryx using the default configuration from
36 .BR archiveopteryx.conf ,
37 which tries hard to be sensible.
46 to create a username and password.
47 .SS "3. Inject some test mail"
50 to inject some mail you already have.
52 This command injects all the messages from a berkeley mbox file:
54 formail -s deliver yourname@domain < mbox
56 .SS "4. Check that you can read mail"
57 The mail you just delivered is in your inbox, and you can read it with
58 any IMAP or POP3 client.
59 .SS "5. Configure your MTA"
60 The normal way to deliver mail from your MTA into Archiveopteryx is via LMTP.
61 By default, Archiveopteryx listens on 127.0.0.1 port 2026.
63 On aox.org we describe how to configure some common MTAs to work with
64 Archiveopteryx. See e.g. http://www.archiveopteryx.org/postfix for
68 Archiveopteryx consists of a number of frontend servers, each of which uses
71 The RDBMS is where all the mail is stored. At present only PostgreSQL
74 The log server is an internal server which filters log entries so
75 useful messages are logged while noise is suppressed.
77 This proxy performs TLS certificate and encryption services for the
78 other servers. It's based on Cryptlib.
80 Each server is described more fully in its own man page:
86 .BR archiveopteryx (8)
87 for the frontend server, which serves IMAP, POP3, LMTP and/or SMTP and
90 Normally, there is one
92 process running. In addition there will be at least one
94 process running. There may be an arbitrary number of frontend server
95 and tlsproxy processes.
97 The servers use TCP to communicate internally, so they can be
98 distributed across a server cluster. Generally, one host will run the
99 database backend, one host (perhaps the same) will run
101 and as many as required will run frontends.
103 The man pages for each server explain the use and configuration of
105 .BR archiveopteryx.conf (5)
106 for more about configuring Archiveopteryx in general.
108 All Archiveopteryx servers run in chroot directories.
110 The user-facing servers run in a special jail directory. They have
111 neither read nor write access to this directory.
113 The internal servers, ie.
117 run chrooted to other directories. All of the servers close all open
118 files at startup and drop root privileges. By default they run as user
122 although these names can be changed using
123 .BR archiveopteryx.conf (5).
125 The servers check that they lose prvileges as expected, and refuse to
126 start if they're too privileged.
130 must have permission to create the
133 Archiveopteryx does not store mail in the RFC-822 format. It parses each
134 message upon delivery, and stores a normalized representation, optimized
135 for fast and reliable search and categorization.
137 This offers the following advantages, among others:
139 One example: Each address is stored exactly once, as Unicode and with
140 RFC-2047 encoding undone. Finding all messages sent from/to a given
141 name is extremely fast, because only a single SQL SELECT is necessary,
142 and it accesses just two small tables.
143 .IP "Long-term Stability"
144 Archiveopteryx handles today's common syntax problems and stores the
145 correct form in the database. Because of that, the mail reader which
146 looks at old mail in the year 2020 will not need to be bug compatible
147 with today's version of Microsoft Outlook.
148 .IP "Scalability and Flexibility"
149 Only the database size limits Archiveopteryx's capacity. Many other servers
150 limit individual folders to 2GB (or less), or cannot support more than
151 a few thousand subfolders/messages in a folder. With Archiveopteryx, you
152 don't need to invent workarounds for such artificial limitations.
154 Because mail is stored normalized and parsed, large attachments are
155 generally stored only once, and mail parsing exploits are rendered
156 harmless before reaching the MUA. A movie clip sent to a hundred
157 recipients is not a problem, because it's stored just once.
159 Archiveopteryx is available under two
160 licences, namely the OSL 3.0 license and a commercial software license.
162 The OSL 3.0 (see http://www.archiveopteryx.org/opensource) is a fairly
163 restrictive open source license similar to the more well-known GNU
164 licenses. It includes a disclaimer of responsibility.
166 Our commercial license offers more flexibility than the OSL and a full
167 warranty. There are also extra services. Contact info@aox.org for
168 more details, or see http://www.archiveopteryx.org/commercial
170 The configurable file and directory names in this build are as follows:
172 (where servers live) is
175 (where other executables live) is
178 (where the startup script lives) is
181 (where manpages live) is
184 (where pidfiles live) is
187 (where supporting files live) is
190 (the working directory of the user-facing servers) is
192 and can be overridden using the
195 .BR archiveopteryx.conf (5).
197 (where the configuration files live) is
200 (the full name of the logfile) is
202 and can be overridden using the
205 .BR archiveopteryx.conf (5).
207 These variables can be changed only by editing the file Jamsettings
208 and recompiling Archiveopteryx. Jamsettings also contains some variables
209 used only during compilation and/or installation, and some which
211 .BR archiveopteryx.conf (5)
214 .IP $CONFIGDIR/archiveopteryx.conf
215 contains the Archiveopteryx configuration.
216 .IP $LIBDIR/automatic-key.p15
217 contains a private key and self-signed certificate used by
219 (and indirectly by the other servers).
221 The Archiveopteryx Developers, info@aox.org.
223 This man page covers Archiveopteryx version 3.1.2, released 2009-07-13,
224 http://www.archiveopteryx.org/3.1.2
226 .BR archiveopteryx (8),
227 .BR archiveopteryx.conf (5),
231 http://www.archiveopteryx.org