Using Puppet to set MailScanner FE general Settings

Discuss the ConfigServer MailScanner Front-End script
Post Reply
Neutrall
Junior Member
Posts: 6
Joined: 12 Aug 2014, 15:18
Location: Canada

Using Puppet to set MailScanner FE general Settings

Post 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!
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: Using Puppet to set MailScanner FE general Settings

Post by Sarah »

You need to run /usr/mscpanel/mscpanel.pl to update the rules files.

Regards,
Sarah
Neutrall
Junior Member
Posts: 6
Joined: 12 Aug 2014, 15:18
Location: Canada

Re: Using Puppet to set MailScanner FE general Settings

Post 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?
Post Reply