2021-01-29 14:21:25 +05:00
|
|
|
|
Contribute or troubleshoot
|
|
|
|
|
==========================
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
2021-03-10 22:46:03 +05:00
|
|
|
|
To report an issue, please go to
|
|
|
|
|
`<https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues>`_.
|
|
|
|
|
|
2021-05-27 11:59:38 +05:00
|
|
|
|
You can also chat with us on the Libera IRC channel ``#nixos-mailserver``.
|
2021-03-10 22:46:03 +05:00
|
|
|
|
|
2020-07-07 01:23:03 +05:00
|
|
|
|
Run NixOS tests
|
|
|
|
|
---------------
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
2021-07-10 19:05:25 +05:00
|
|
|
|
To run the test suite, you need to enable `Nix Flakes
|
2022-12-01 18:22:27 +05:00
|
|
|
|
<https://nixos.wiki/wiki/Flakes#Installing_flakes>`_.
|
2021-07-10 19:05:25 +05:00
|
|
|
|
|
|
|
|
|
You can then run the testsuite via
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
$ nix flake check -L
|
|
|
|
|
|
|
|
|
|
Since Nix doesn't garantee your machine have enough resources to run
|
|
|
|
|
all test VMs in parallel, some tests can fail. You would then haev to
|
|
|
|
|
run tests manually. For instance:
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2021-07-10 19:05:25 +05:00
|
|
|
|
$ nix build .#hydraJobs.x86_64-linux.external-unstable -L
|
|
|
|
|
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
2020-07-07 01:23:03 +05:00
|
|
|
|
Contributing to the documentation
|
|
|
|
|
---------------------------------
|
|
|
|
|
|
2022-12-01 18:22:27 +05:00
|
|
|
|
The documentation is written in RST (except option documentation which is in CommonMark),
|
2022-12-01 02:30:45 +05:00
|
|
|
|
built with Sphinx and published by `Read the Docs <https://readthedocs.org/>`_.
|
2020-07-07 01:23:03 +05:00
|
|
|
|
|
2022-12-01 18:22:27 +05:00
|
|
|
|
For the syntax, see the `RST/Sphinx primer
|
|
|
|
|
<https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html>`_.
|
2020-07-07 01:23:03 +05:00
|
|
|
|
|
2022-12-01 18:22:27 +05:00
|
|
|
|
To build the documentation, you need to enable `Nix Flakes
|
|
|
|
|
<https://nixos.wiki/wiki/Flakes#Installing_flakes>`_.
|
2020-07-07 01:23:03 +05:00
|
|
|
|
|
2021-07-14 13:06:58 +05:00
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2022-12-01 18:22:27 +05:00
|
|
|
|
$ nix build .#documentation
|
|
|
|
|
$ xdg-open result/index.html
|
2021-07-14 13:06:58 +05:00
|
|
|
|
|
2020-07-03 00:02:47 +05:00
|
|
|
|
Nixops
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
You can test the setup via ``nixops``. After installation, do
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-07 01:23:03 +05:00
|
|
|
|
$ nixops create nixops/single-server.nix nixops/vbox.nix -d mail
|
|
|
|
|
$ nixops deploy -d mail
|
|
|
|
|
$ nixops info -d mail
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
|
|
|
|
You can then test the server via e.g. \ ``telnet``. To log into it, use
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-07 01:23:03 +05:00
|
|
|
|
$ nixops ssh -d mail mailserver
|
2020-07-03 00:02:47 +05:00
|
|
|
|
|
|
|
|
|
Imap
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
To test imap manually use
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
2020-07-07 01:23:03 +05:00
|
|
|
|
$ openssl s_client -host mail.example.com -port 143 -starttls imap
|