1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-27 16:17:03 +00:00
Files
go-chasquid-smtp/etc/chasquid
Alberto Bertogli 13ee3ba482 courier: Use the hostname in SMTP HELO
The SMTP courier, which handles outgoing connections, uses the domain of
the envelope's from as the domain in the HELO/EHLO greeting.

This works fine in practice, but ideally the domain used in the greeting
should match the reverse DNS record. This used to be more relevant but
nowadays it is not really enforced; however, it sometimes comes up in
self checks, and might cause some confusion when troubleshooting.

So this patch makes it use the configured hostname instead, which is
under the users' control and more likely to be compliant. It also
simplifies the code.

The documentation of the hostname configuration option is also updated
to mention this behaviour.

Thanks to Jonas Seydel (thor77) for bringing this up.
2020-05-13 20:27:17 +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.