]> git.phdru.name Git - ansible.git/commitdiff
Feat(email): Allow `spamd` to process bigger messages
authorOleg Broytman <phd@phdru.name>
Tue, 9 Jun 2026 00:30:48 +0000 (03:30 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 9 Jun 2026 00:30:48 +0000 (03:30 +0300)
playbooks/roles/debian/email/tasks/main.yaml

index 64ce81186faa3f88533849f7d4779298a199dd64..cea95999e6949a30fc5dc4b7279fd21c446496a9 100644 (file)
     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