6f0b295
Post-install instruction for RPM package
6f0b295
6f0b295
                                    Aug 28 2018
6f0b295
                                    by IKEDA Soji <ikeda@conversion.co.jp>
6f0b295
6f0b295
If you are reading this text, you may have successfully installed sympa
6f0b295
package.  A bunch of work is needed to start your Sympa service.
6f0b295
6f0b295
1 Initial configuration
6f0b295
=======================
6f0b295
6f0b295
  * Edit ``/etc/sympa/sympa.conf`` as you prefer.
6f0b295
6f0b295
For more details see "Generate initial configuration" in "Sympa Administration
6f0b295
Manual":
6f0b295
https://sympa-community.github.io/manual/install/generate-initial-configuration.html
6f0b295
6f0b295
2 Setup database
6f0b295
================
6f0b295
6f0b295
See "Setup database" in "Sympa Administration Manual":
6f0b295
https://sympa-community.github.io/manual/install/setup-database.html
6f0b295
6f0b295
You have to install appropriate package providing database driver:
6f0b295
perl-DBD-MySQL, perl-DBD-Oracle, perl-DBD-Pg or perl-DBD-SQLite.
6f0b295
6f0b295
3 Configure mail server
6f0b295
=======================
6f0b295
6f0b295
See "Configure mail server" in "Sympa Administration Manual":
6f0b295
https://sympa-community.github.io/manual/install/configure-mail-server.html
6f0b295
6f0b295
(Optional) Automatic lists
6f0b295
--------------------------
6f0b295
6f0b295
See "Automatic list creation" in "Sympa Administration Manual":
6f0b295
https://sympa-community.github.io/manual/customize/automatic-lists.html
6f0b295
6f0b295
If you want to use sympa-milter, you may install ``sympa-milter`` package.
6f0b295
Note that sympa-milter 0.7 or later is required.
6f0b295
6f0b295
4 Configure HTTP server
6f0b295
=======================
6f0b295
6f0b295
a. Apache HTTP Server
6f0b295
---------------------
6f0b295
6f0b295
  * Install ``sympa-httpd`` package.  It also requires mod_fcgid package
6f0b295
    and so on.
6f0b295
6f0b295
  * Edit /etc/httpd/conf.d/sympa.conf as you prefer.
6f0b295
6f0b295
  * Run ``systemctl restart httpd.service``.
6f0b295
6f0b295
b. lighttpd
6f0b295
-----------
6f0b295
6f0b295
  * Install ``sympa-lighttpd`` package.  It also requires lighttpd-fastcgi
6f0b295
    package and so on.
6f0b295
6f0b295
  * Edit /etc/lighttpd/sympa.conf as you prefer.
6f0b295
6f0b295
  * Edit /etc/lighttpd/lighttpd.conf to add following line at bottom:
6f0b295
    ```
6f0b295
    include /etc/lighttpd/sympa.conf
6f0b295
    ```
6f0b295
6f0b295
  * Run ``systemctl restart lighttpd.service``.
6f0b295
6f0b295
c. nginx
6f0b295
--------
6f0b295
6f0b295
  * Install ``sympa-nginx`` package.  It also requires spawn-fcgi package
6f0b295
    and so on.
6f0b295
6f0b295
  * Edit /etc/nginx/conf.d/sympa.conf as you prefer.
6f0b295
6f0b295
  * Run ``systemctl restart nginx.service``.
6f0b295
6f0b295
(Optional) Configure SOAP/HTTP server
6f0b295
-------------------------------------
6f0b295
6f0b295
See "SOAP/HTTP API" in "Sympa::Administration Manual":
6f0b295
https://sympa-community.github.io/manual/customize/soap-api.html
6f0b295
6f0b295
You have to install ``perl-SOAP-Lite`` package.
6f0b295
6f0b295
5 Start mailing list service
6f0b295
============================
6f0b295
6f0b295
  * Ensure that RDBMS is running (on SQLite, service need not to be run).
6f0b295
6f0b295
  * Ensure that MTA and HTTP server are running.
6f0b295
6f0b295
  * Run ``systemctl start sympa.service``.
6f0b295
6f0b295
      * If you are using separate FastCGI service (i.e. the case of nginx, or
6f0b295
        case of Apache with mod_proxy_fcgi), you must run
6f0b295
        ``systemctl start wwsympa.service`` too.
6f0b295
6f0b295
          * In the same case, if you also wish to use SOAP service, you must
6f0b295
            run ``systemctl start sympasoap.service`` too.
6f0b295
6f0b295
  * Start Web browser and access to <http://your.host.dom.ain/sympa>.
6f0b295
6f0b295
  * Follow ``First login`` link, input listmaster address chosen on the
6f0b295
    first section, and then click ``Send my password`` button.
6f0b295
6f0b295
  * E-mail describing how to choose your password (are you a listmaster,
6f0b295
    aren't you?) will be sent.  According to description, choose your
6f0b295
    password.
6f0b295
6f0b295
6 Automating Startup
6f0b295
====================
6f0b295
6f0b295
  * Units should be customized to ensure Sympa starts after database server
6f0b295
    (if you run it except SQLite on the same host as Sympa).  It can be done
6f0b295
    by editing configuration file:
6f0b295
6f0b295
      /etc/systemd/system/sympa.service.d/dependencies.conf
6f0b295
6f0b295
    Note that database service should also start before HTTP service.
6f0b295
6f0b295
  * Run ``systemctl enable sympa.service`` to activate sympa service.
6f0b295
6f0b295
      * If you are using separate FastCGI service (i.e. the case of nginx, or
6f0b295
        case of Apache with mod_proxy_fcgi), you must run
6f0b295
        ``systemctl enable wwsympa.service`` too.
6f0b295
6f0b295
          * In the same case, if you also wish to use SOAP service, you must
6f0b295
            run ``systemctl enable sympasoap.service`` too.
6f0b295
6f0b295
----
6f0b295
[![CC BY-SA 3.0](https://i.creativecommons.org/l/by-sa/3.0/80x15.png)](http://creativecommons.org/licenses/by-sa/3.0/)