From 1d75c8f493d39751fba36014ed5bbf517af78130 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 12 Feb 2026 11:07:52 +0300 Subject: [PATCH] Feat(debian/email): Put spamd's socket in `/run` Move the socket outside of SystemD private `/tmp/`. --- playbooks/roles/debian/email/handlers/main.yaml | 4 ++-- playbooks/roles/debian/email/tasks/main.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/roles/debian/email/handlers/main.yaml b/playbooks/roles/debian/email/handlers/main.yaml index 3bb8061..95dad5a 100644 --- a/playbooks/roles/debian/email/handlers/main.yaml +++ b/playbooks/roles/debian/email/handlers/main.yaml @@ -1,5 +1,5 @@ -- name: Restart spamassassin +- name: Restart spamd become: true service: - name: spamassassin + name: spamd state: reloaded diff --git a/playbooks/roles/debian/email/tasks/main.yaml b/playbooks/roles/debian/email/tasks/main.yaml index baae9fb..64ce811 100644 --- a/playbooks/roles/debian/email/tasks/main.yaml +++ b/playbooks/roles/debian/email/tasks/main.yaml @@ -12,5 +12,5 @@ replace: path: /etc/default/spamd regexp: '^OPTIONS="--create-prefs --max-children 5 --helper-home-dir"$' - replace: 'OPTIONS="--create-prefs --max-children 5 --helper-home-dir --socketpath=/tmp/spamassassin.sock"' - notify: Restart spamassassin + replace: 'OPTIONS="--create-prefs --max-children 5 --helper-home-dir --socketpath=/run/spamassassin.sock"' + notify: Restart spamd -- 2.47.3