2023-04-23 14:02:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Enable GTUBE test patterns so we can properly check whether
|
|
|
|
# Rspamd is rejecting mail, adding headers, etc.
|
|
|
|
#
|
|
|
|
# We do not use `custom-commands.conf` because this a feature
|
|
|
|
# we are testing too.
|
2024-09-28 13:27:34 +02:00
|
|
|
echo 'gtube_patterns = "all"' >>/etc/rspamd/local.d/options.inc
|
2023-04-23 14:02:56 +02:00
|
|
|
|
|
|
|
# We want Dovecot to be very detailed about what it is doing,
|
2024-03-11 20:02:22 +09:00
|
|
|
# specifically for Sieve because we need to check whether the
|
2023-04-23 14:02:56 +02:00
|
|
|
# Sieve scripts are executed so Rspamd is trained when using
|
|
|
|
# `RSPAMD_LEARN=1`.
|
|
|
|
echo 'mail_debug = yes' >>/etc/dovecot/dovecot.conf
|
|
|
|
sed -i -E '/^}/d' /etc/dovecot/conf.d/90-sieve.conf
|
|
|
|
echo -e '\n sieve_trace_debug = yes\n}' >>/etc/dovecot/conf.d/90-sieve.conf
|