1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/etc/chasquid
Alberto Bertogli 7e38a877e8 hooks: Fix dkimpy's diff check
When running a diff for dkimpy's output, we expect that diff to exit with
non-zero code.

Unfortunately, the way we set that expectation (by prefixing the diff
invocation with `!` is incorrect.

Running `! diff ...` will not cause the hook to fail if diff exits with
0, instead `!` will cause the exit code to be ignored.

This patch fixes the problem by running `diff ... && exit 1` instead.

This was caught by shellcheck, https://www.shellcheck.net/wiki/SC2251.
2022-08-27 23:58:26 +01:00
..
2022-08-27 23:58:26 +01:00

This directory contains chasquid's configuration.

- chasquid.conf          Main config file.

- domains/               Domains' data.
  - example.com/
    - users          User and password database for the domain.
    - aliases        Aliases for the domain.
  ...

- certs/                 Certificates to use, one dir per pair.
  - example.com/
    - fullchain.pem  Certificate (full chain).
    - privkey.pem    Private key.
  ...


Note the certs/ directory matches certbot's structure, so if you use it you
can just symlink to /etc/letsencrypt/live.

You need at least one certificate, or the server will refuse to start.
Ideally there should be a certificate for each DNS name pointing to you.

Make sure the user you use to run chasquid under ("mail" in the example
systemd files) can access the certificates and private keys.


The user databases can be created and edited with the chasquid-util tool.