mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-29 15:02:30 +00:00
dovecot: auto-detect sockets in /run/dovecot2
NixOS uses this path, and it seems generic enough to be worth adding here. The `/var/run` paths should probably also be updated to `/run`, but I'm not going to risk breaking anything :) Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Adjusted comments.
This commit is contained in:
committed by
Alberto Bertogli
parent
33049893f0
commit
f69fdc1b1a
+2
-2
@@ -45,8 +45,8 @@ dovecot_auth: true
|
||||
```
|
||||
|
||||
That should be it, because chasquid will "autodetect" the full path to the
|
||||
dovecot sockets, by looking in the usual places (tested in Debian, Ubuntu, and
|
||||
CentOS).
|
||||
dovecot sockets, by looking in the usual places (tested in Debian, Ubuntu,
|
||||
CentOS, and NixOS).
|
||||
|
||||
If chasquid can't find them, the paths can be set with the
|
||||
`dovecot_userdb_path` and `dovecot_client_path` options.
|
||||
|
||||
@@ -34,11 +34,21 @@ var (
|
||||
)
|
||||
|
||||
var defaultUserdbPaths = []string{
|
||||
// NixOS.
|
||||
"/run/dovecot2/auth-chasquid-userdb",
|
||||
"/run/dovecot2/auth-userdb",
|
||||
|
||||
// Debian, Ubuntu, CentOS.
|
||||
"/var/run/dovecot/auth-chasquid-userdb",
|
||||
"/var/run/dovecot/auth-userdb",
|
||||
}
|
||||
|
||||
var defaultClientPaths = []string{
|
||||
// NixOS.
|
||||
"/run/dovecot2/auth-chasquid-client",
|
||||
"/run/dovecot2/auth-client",
|
||||
|
||||
// Debian, Ubuntu, CentOS.
|
||||
"/var/run/dovecot/auth-chasquid-client",
|
||||
"/var/run/dovecot/auth-client",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user