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 authored and James Valleroy committed 2022-03-02 07:39:06 -05:00
1 parent 265534a6bf
commit 56f95ddf97
2 files changed
+3 -1

No files matched your search

@@ -0,0 +1 @@
type=syslog
+2 -1
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)