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