mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-12-18 14:04:17 +01:00
17 lines
661 B
Bash
17 lines
661 B
Bash
#!/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.
|
|
echo 'gtube_patterns = "all"' >>/etc/rspamd/local.d/options.inc
|
|
|
|
# We want Dovecot to be very detailed about what it is doing,
|
|
# specifically for Sieve because we need to check whether the
|
|
# 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
|