diff -Nur smeserver-spamassassin-2.7.0.old/createlinks smeserver-spamassassin-2.7.0/createlinks --- smeserver-spamassassin-2.7.0.old/createlinks 2021-02-19 00:56:23.637000000 -0500 +++ smeserver-spamassassin-2.7.0/createlinks 2021-02-19 01:01:07.008000000 -0500 @@ -33,6 +33,8 @@ event_link("systemd-reload", $event, "89"); # systemctl daemon-reload event_link("spamassassin-update", $event, "99"); # Hopefully restarts spamassassin safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/spamd"); +templates2events("/etc/rsyslog.conf",$event); +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); # email-update events required? $event = "email-update"; diff -Nur smeserver-spamassassin-2.7.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32spamd smeserver-spamassassin-2.7.0/root/etc/e-smith/templates/etc/rsyslog.conf/32spamd --- smeserver-spamassassin-2.7.0.old/root/etc/e-smith/templates/etc/rsyslog.conf/32spamd 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-spamassassin-2.7.0/root/etc/e-smith/templates/etc/rsyslog.conf/32spamd 2021-02-19 00:57:46.665000000 -0500 @@ -0,0 +1,5 @@ + +#spamd +:programname, isequal, "check" /var/log/spamd/spamd.log +:programname, isequal, "check" stop + diff -Nur smeserver-spamassassin-2.7.0.old/root/etc/logrotate.d/spamd smeserver-spamassassin-2.7.0/root/etc/logrotate.d/spamd --- smeserver-spamassassin-2.7.0.old/root/etc/logrotate.d/spamd 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-spamassassin-2.7.0/root/etc/logrotate.d/spamd 2021-02-19 00:59:10.790000000 -0500 @@ -0,0 +1,13 @@ +/var/log/spamd/spamd.log +{ + missingok + notifempty + sharedscripts + delaycompress + su root root + create 600 root root + postrotate + /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true + endscript +} +