Files
lotherk b654bf74a2 docs: add The Makronix Guide and its four installed forms
One DocBook source in docs/guide produces the manual pages, one HTML
file, the PDF and an MCDE information library.  The guide follows the
structure of The NetBSD Guide, describes Makronix 0.99.10
(Camouflage), and has its own chapters for MCDE, the Information
Manager and the display.

The forms are installed by the release:

  /usr/share/doc/makronix/makronix-guide.html
  /usr/share/doc/makronix/makronix-guide.pdf
  /usr/share/doc/makronix/infolib/makronix.dti/   (base-sys-share)
  /usr/share/man/man7/makronix-guide*.7           (man-reference-man)
  /etc/dt/config/Xsession.d/0000makronix          (etc-sys-etc)
  /etc/dt/infolib/en_US.UTF-8/makronix.dti        (symlink)

The information library is built with MCDE's dtdocbook2infolib from a
small Lua writer for the CDE DocBook SGML dialect; tools/test-tools.sh
runs docs/guide/check.sh on the installed copies and proves that a
missing manual page falls red.
2026-11-15 21:21:49 +00:00

77 lines
3.6 KiB
XML

<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
<chapter id="mailweb">
<title>Mail and the Web</title>
<para>Two services that a small machine often provides: a mail transfer
agent that delivers local mail, and a web server that serves a directory.
Both are NetBSD base services; Makronix ships the clients and the desktop
programs that read the results.</para>
<sect1 id="mailweb-mail">
<title>Mail</title>
<para>The base system's mail transfer agent is
<application>Postfix</application>. A desktop that only needs local
mail &#x2014; the daily security report, cron's output, the messages of
the package tools &#x2014; runs it with the default configuration and
reads the mail with <command>mail</command> or MCDE's
<citerefentry><refentrytitle>dtmail</refentrytitle><manvolnum>1</manvolnum></citerefentry>:</para>
<screen># echo 'postfix=YES' &gt;&gt; /etc/rc.conf
# /etc/rc.d/postfix start
$ mail</screen>
<para><filename>/etc/postfix/main.cf</filename> is the configuration. A
machine that should accept mail from the network sets
<literal>inet_interfaces</literal> and a proper
<literal>myhostname</literal>, and needs a DNS name with an MX record.
That is a mail server, not a desktop; the NetBSD Guide's mail chapter
and the Postfix documentation describe the decisions, and the firewall
chapter describes the port that has to be opened.</para>
<para>Local mail is delivered to <filename>/var/mail/</filename><replaceable>name</replaceable>.
If mail does not arrive, read <filename>/var/log/maillog</filename>;
Postfix writes there, and <command>postfix check</command> reports a
configuration that it cannot use.</para>
</sect1>
<sect1 id="mailweb-web">
<title>A web server</title>
<para>The base system's HTTP server is
<citerefentry><refentrytitle>bozohttpd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
installed as <command>httpd</command>. It serves one directory, which
is enough for a documentation page or a small site:</para>
<screen># echo 'httpd=YES' &gt;&gt; /etc/rc.conf
# echo 'httpd_flags="-b /var/www"' &gt;&gt; /etc/rc.conf
# /etc/rc.d/httpd start
$ curl http://localhost/</screen>
<para><filename>/var/www</filename> is the document root; the index file
is <filename>index.html</filename>. A server that needs CGI, PHP, TLS
or virtual hosts should use a package: <application>nginx</application>
or <application>apache</application>, with their own documentation and
their own service scripts.</para>
<para>TLS needs a certificate. For a public name, the certificate
authority's client (for example <application>certbot</application>)
obtains and renews it; for a name that only the local network uses, a
self-signed certificate is enough, and every client has to be told to
trust it. A certificate that has expired is the most common reason a
site that worked yesterday does not work today.</para>
</sect1>
<sect1 id="mailweb-clients">
<title>The desktop clients</title>
<para>Firefox reads the web, Thunderbird reads mail and news, and
<command>dtmail</command> reads local mail in the MCDE style. All three
are on the medium as packages; the installer can put them on the
machine, and <command>pkg_add</command> installs them later
(<xref linkend="pkgsrc"/>). Their settings belong to the user, not to
the system, and live under <filename>~/.mozilla</filename>,
<filename>~/.thunderbird</filename> and <filename>~/.dt</filename>.</para>
</sect1>
</chapter>