1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-10-28 15:02:28 +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:
ThinkChaos
2025-08-12 20:04:00 -04:00
committed by Alberto Bertogli
parent 33049893f0
commit f69fdc1b1a
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -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",
}