1 50794f47 2023-04-04 op .\" This file is in the public domain.
2 50794f47 2023-04-04 op .Dd April 4, 2023
7 50794f47 2023-04-04 op .Nd FastCGI mail archive query server
12 50794f47 2023-04-04 op .Op Fl p Ar path
13 50794f47 2023-04-04 op .Op Fl s Ar socket
14 50794f47 2023-04-04 op .Op Fl u Ar user
16 50794f47 2023-04-04 op .Sh DESCRIPTION
18 50794f47 2023-04-04 op is a server which implements the FastCGI Protocol to provide search
19 50794f47 2023-04-04 op facilities for the mail archive.
21 50794f47 2023-04-04 op It opens a socket at
22 50794f47 2023-04-04 op .Pa /var/www/run/msearchd.sock ,
23 50794f47 2023-04-04 op owned by www:www with permissions 0660.
28 50794f47 2023-04-04 op and drop privileges to user
30 50794f47 2023-04-04 op Three child processes are ran to handle the incoming traffic on the
31 50794f47 2023-04-04 op FastCGI socket.
34 50794f47 2023-04-04 op the database is closed and re-opened.
35 50794f47 2023-04-04 op The default database used is at
36 50794f47 2023-04-04 op .Pa /msearchd/mails.sqlite3
37 50794f47 2023-04-04 op inside the chroot.
39 50794f47 2023-04-04 op The options are as follows:
40 50794f47 2023-04-04 op .Bl -tag -width Ds
42 50794f47 2023-04-04 op Do not daemonize.
43 50794f47 2023-04-04 op If this option is specified,
45 50794f47 2023-04-04 op will run in the foreground and log to standard error.
49 50794f47 2023-04-04 op child processes.
50 50794f47 2023-04-04 op .It Fl p Ar path
58 50794f47 2023-04-04 op effectively disables the chroot.
59 50794f47 2023-04-04 op .It Fl s Ar socket
60 50794f47 2023-04-04 op Create an bind to the local socket at
62 50794f47 2023-04-04 op .It Fl u Ar user
63 50794f47 2023-04-04 op Drop privileges to
65 50794f47 2023-04-04 op instead of default user www and
67 50794f47 2023-04-04 op to their home directory.
69 50794f47 2023-04-04 op Enable more verbose (debug) logging.
72 50794f47 2023-04-04 op options increase the verbosity.
75 50794f47 2023-04-04 op .Bl -tag -width /var/www/msearchd/mails.sqlite3 -compact
76 50794f47 2023-04-04 op .It Pa /var/www/msearchd/mails.sqite3
77 50794f47 2023-04-04 op Default database.
78 50794f47 2023-04-04 op .It Pa /var/www/run/msearchd.sock
79 50794f47 2023-04-04 op .Ux Ns -domain socket.
82 50794f47 2023-04-04 op Example configuration for
83 50794f47 2023-04-04 op .Xr httpd.conf 5 :
84 50794f47 2023-04-04 op .Bd -literal -offset -indent
85 50794f47 2023-04-04 op server "localhost" {
86 50794f47 2023-04-04 op listen on * port 80
88 50794f47 2023-04-04 op location "/search" {
89 50794f47 2023-04-04 op fastcgi socket "/run/msearchd.sock"
96 50794f47 2023-04-04 op .An Omar Polo Aq Mt op@openbsd.org