Page 1 of 1

Using Puppet to set MailScanner FE general Settings

Posted: 07 Jul 2017, 15:26
by Neutrall
Hi,

We currently have between 15-20 shared hosting server using cPanel (With CSF, MailScanner FE, etc...)

In order to ease up the maintenance on our servers we are using Puppet. So far, we can manage pretty much every feature from cPanel. But for MailScanner FE, it's a little bit harder!

We can modify the "/usr/mscpanel/msconfig.txt" configuration file, but once this file is modify, the rules in the "/usr/mailscanner/etc/rules/" need to be updated.

The web GUI for MailScanner FE is updating those automaticly, but how can we update them manually by SSH ?

I've tried runnung "/usr/mscpanel/msupdate.pl" in SSH, this will work only if they was an update to be applied, otherwise the rules will not be updated.

Thank you for any insight!

Re: Using Puppet to set MailScanner FE general Settings

Posted: 07 Jul 2017, 16:23
by Sarah
You need to run /usr/mscpanel/mscpanel.pl to update the rules files.

Regards,
Sarah

Re: Using Puppet to set MailScanner FE general Settings

Posted: 11 Jul 2017, 16:50
by Neutrall
Thank you Sarah,

I've tried to suggested command,
Prior the change, I've set the "lowscore=" to 5 in the /usr/mscpanel/msconfig.txt file.

ran the /usr/mscpanel/mscpanel.pl script

But the result in # "tail /usr/mailscanner/etc/rules/spam.score.rules" still shows "FromOrTo: default 6"

Is there a parameter to pass to the Perl script to force a refresh?