From: Oleg Broytman Date: Tue, 9 Jun 2026 00:30:48 +0000 (+0300) Subject: Feat(email): Allow `spamd` to process bigger messages X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=db1dcb00f74f924046aa916b471aa4db12241704;p=ansible.git Feat(email): Allow `spamd` to process bigger messages --- 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