What does this cron do?

#!/usr/bin/perl
open(CONF, “/etc/usermin/miniserv.conf”) || die “Failed to open /etc/usermin/miniserv.conf : $!”;
while() {
$root = $1 if (/^root=(.*)/);
}
close(CONF);
$root || die “No root= line found in /etc/usermin/miniserv.conf”;
$ENV{‘PERLLIB’} = “$root”;
$ENV{‘WEBMIN_CONFIG’} = “/etc/usermin”;
$ENV{‘WEBMIN_VAR’} = “/var/usermin”;
chdir("$root/mailbox");
exec("$root/mailbox/auto.pl", @ARGV) || die “Failed to run $root/mailbox/auto.pl : $!”;

From the file itself:

# Scan through all folders, and apply the scheduled deletion policy for each

is this a virtualmin thing, or something that came when the domain where this script exists was migrated across from cpanel?
can i safely delete it?

It is part of Usermin. Deleting it would make scheduled deletion of mails stop working. It is only created when scheduled deletion is enabled, as far as I know…so, you created it. :wink:

Doh…I must do a lot of server management when sleepwalking :rofl:

its harmless thats the main thing!

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.