with the recent addtion of adjustable SA-rule scores, we introduced
'/etc/mail/spamassassin/pmg-scores.cf' as a new file and included it in the
cluster synchronization.
If the file does not exist the `rsync` command complains leading to misleading
errors in the journal.
Unconditionally creating the file (like we do for the already existing
'custom.cf') removes the warnings.
Reported-by: Martin Maurer <martin@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
$changes = 1 if unlink '/root/.spamassassin/bayes_toks';
}
- # make sure we have a custom.cf file (else cluster sync fails)
+ # make sure we have the custom SA files (else cluster sync fails)
IO::File->new('/etc/mail/spamassassin/custom.cf', 'a', 0644);
+ IO::File->new('/etc/mail/spamassassin/pmg-scores.cf', 'a', 0644);
$changes = 1 if $self->rewrite_config_file(
'local.cf.in', '/etc/mail/spamassassin/local.cf');