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