From db1dcb00f74f924046aa916b471aa4db12241704 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 Jun 2026 03:30:48 +0300 Subject: [PATCH] Feat(email): Allow `spamd` to process bigger messages --- playbooks/roles/debian/email/tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/playbooks/roles/debian/email/tasks/main.yaml b/playbooks/roles/debian/email/tasks/main.yaml index 64ce811..cea9599 100644 --- a/playbooks/roles/debian/email/tasks/main.yaml +++ b/playbooks/roles/debian/email/tasks/main.yaml @@ -14,3 +14,19 @@ regexp: '^OPTIONS="--create-prefs --max-children 5 --helper-home-dir"$' replace: 'OPTIONS="--create-prefs --max-children 5 --helper-home-dir --socketpath=/run/spamassassin.sock"' notify: Restart spamd + +- name: Allow spamd to process bigger messages + become: true + lineinfile: + path: /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm + regexp: '^use constant BIG_BYTES => 500\*1024;$' + line: 'use constant BIG_BYTES => 1024*1024;' + notify: Restart spamd + +- name: Allow spamd to process bigger messages - fix comment + become: true + lineinfile: + path: /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm + regexp: '^# 500 KiB is a big email, unless stated otherwise$' + line: '# 1 MiB is a big email, unless stated otherwise' + notify: Restart spamd -- 2.47.3