email: rspamd: Log to journald via syslog

Unified querying, reduce random writes for SD cards, eliminate need for separate
log rotation.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-02-23 16:18:06 -08:00 committed by James Valleroy
parent 265534a6bf
commit 56f95ddf97
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
type=syslog

View File

@ -40,7 +40,8 @@ def _compile_sieve():
def _setup_rspamd():
"""Adjust configuration to include FreedomBox configuration files."""
configs = [('milter_headers.conf', 'freedombox-milter-headers.conf'),
('redis.conf', 'freedombox-redis.conf')]
('redis.conf', 'freedombox-redis.conf'),
('logging.inc', 'freedombox-logging.inc')]
base_path = pathlib.Path('/etc/rspamd/local.d')
for orig_path, include_path in configs:
_setup_local_include(base_path / orig_path, base_path / include_path)