/var/log/rspamd/*log {
    daily
    rotate 10
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
        if test -d /run/systemd/system ; then
                systemctl kill -s USR1 --kill-who=main rspamd.service
        else
                test -r /run/rspamd/rspamd.pid && kill -USR1 $(cat /run/rspamd/rspamd.pid) &>/dev/null
        fi
    endscript
}
