chore(deploy): 调整 rspamd 与 dovecot 启动配置

- 为 `rspamd` 指定运行用户/组,提升容器内启动一致性。
- 将 `dovecot` 配置格式整理为多行块,保持配置可读性。
- 在 `rspamd` 入口脚本中按可用账号选择启动参数,并保留兜底启动方式。
This commit is contained in:
LanQin
2026-06-16 21:48:42 +08:00
parent 4fc933bc89
commit 7788e93f0e
3 changed files with 30 additions and 9 deletions
+6 -1
View File
@@ -10,4 +10,9 @@ fi
/usr/local/bin/lanqin-rspamd-sync-dkim --once || true
/usr/local/bin/lanqin-rspamd-sync-dkim &
exec rspamd -f
if id _rspamd >/dev/null 2>&1; then
exec rspamd -f -u _rspamd -g _rspamd
elif id rspamd >/dev/null 2>&1; then
exec rspamd -f -u rspamd -g rspamd
fi
exec rspamd -f --insecure