1 public-inbox (server-side) installation
2 ---------------------------------------
4 This is for folks who want to setup their own public-inbox instance.
5 Clients should use normal git-clone/git-fetch, or NNTP clients
6 if they want to import mail into their personal inboxes.
8 TODO: this still needs to be documented better,
9 also see the scripts/ and sa_config/ directories in the source tree
14 public-inbox requires a number of other packages to access its full
15 functionality. The core tools are, of course:
19 * SQLite (needed for Xapian use)
21 To accept incoming mail into a public inbox, you'll likely want:
23 * MTA - postfix is recommended (for public-inbox-mda)
24 * SpamAssassin (spamc/spamd) (for public-inbox-watch/public-inbox-mda)
26 Beyond that, there is a long list of Perl modules required, starting with:
28 * Date::Parse deb: libtimedate-perl
29 rpm: perl-Time-ParseDate
31 * Email::MIME deb: libemail-mime-perl
34 * Email::MIME::ContentType deb: libemail-mime-contenttype-perl
35 rpm: perl-Email-MIME-ContentType
37 * Encode::MIME::Header deb: libencode-perl
40 * Plack deb: libplack-perl
41 rpm: perl-Plack, perl-Plack-Test,
42 (for HTML/Atom generation)
44 * URI::Escape deb: liburi-perl
46 (for HTML/Atom generation)
48 Where "deb" indicates package names for Debian-derived distributions and
49 "rpm" is for RPM-based distributions (only known to work on Fedora).
51 Numerous optional modules are likely to be useful as well:
53 - Search::Xapian deb: libsearch-xapian-perl
54 rpm: perl-Search-Xapian
55 (for NNTP service or gzipped mbox over HTTP)
57 - IO::Compress::Gzip deb: perl-modules (or libio-compress-perl)
59 (for gzipped mbox over HTTP)
61 - DBI deb: libdbi-perl
63 (for gzipped mbox over HTTP)
65 - DBD::SQLite deb: libdbd-sqlite3-perl
67 (for NNTP service or gzipped mbox over HTTP)
69 - Danga::Socket deb: libdanga-socket-perl
70 rpm: perl-Danga-Socket
71 (for bundled HTTP and NNTP servers)
73 - Net::Server deb: libnet-server-perl
75 (for HTTP/NNTP servers as standalone daemons,
76 not needed as systemd services)
78 - Filesys::Notify::Simple deb: libfilesys-notify-simple-perl
79 rpm: perl-Filesys-Notify-Simple
80 (for public-inbox-watch)
82 - Inline::C[7] deb: libinline-c-perl
83 (speeds up spawning of git(1) on Linux
84 (see public-inbox-daemon(8))
86 - Plack::Middleware::ReverseProxy
88 deb: libplack-middleware-reverseproxy-perl
89 rpm: perl-Plack-Middleware-ReverseProxy
90 (ensures redirects are correct when running
91 behind nginx or Varnish)
93 - Plack::Middleware::Deflater
95 deb: libplack-middleware-deflater-perl
96 rpm: perl-Plack-Middleware-Deflater
97 (saves bandwidth on responses)
99 - Socket6 deb: libsocket6-perl
101 (pulled in by SpamAssassin and Net::Server,
102 only necessary if using IPv6 with
103 Plack::Middleware::AccessLog or similar)
105 On Fedora systems, you'll probably also end up wanting
106 perl-Test-HTTP-Server-Simple, perl-Devel-Peek, and perl-IPC-Run to run the
107 test suite. On Debian systems, libxml-feed-perl and libipc-run-perl
108 will aid in running the test suite (XML::Feed and IPC::Run respectively,
111 standard MakeMaker installation (Perl)
112 --------------------------------------
114 Once the dependencies are installed, you should be able to build and
115 install the system (into /usr/local) with:
120 make install # root permissions may be needed
122 When installing Search::Xapian, make sure the underlying Xapian
123 installation is not affected by an index corruption bug:
125 https://bugs.debian.org/808610
127 For Debian 8.x (jessie), this means using Debian 8.5 or later.
129 public-inbox will never store unregeneratable data in Xapian
130 or any other search database we might use; Xapian corruption
131 will not destroy critical data.
133 See the public-inbox-overview(7) man page for the next steps once the
134 installation is complete.
139 Copyright 2013-2019 all contributors <meta@public-inbox.org>
140 License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>