-rf ${file}"; }; }; # Obtain entry for STATUS_FILE ($class, $flags, $files, $options) = &Parse_mc::entry_dbs('STATUS_FILE'); $file = @{$files}[0]; ($ok, $stats) = &Parse_conf::get_value('DAEMON_MAILSTATS'); if ( $ok and $file ne '-' ) { if ( $stats and ! -e $file) { print STDOUT "Enabling MTA statistics file($file).\n"; open 'STATS', ">$file"; close 'STATS'; my $gid = getgrnam('smmsp'); chown '0', $gid, $file; chmod 0640, $file; } elsif ( ! $stats and -e $file ) { print STDOUT "Disabling MTA statistics file($file).\n"; unlink $file; }; }; # Obtain entry for MSP_STATUS_FILE ($class, $flags, $files, $options) = &Parse_mc::entry_dbs('MSP_STATUS_FILE'); $file = @{$files}[0]; ($ok, $stats) = &Parse_conf::get_value('MSP_MAILSTATS'); if ( $ok and $file ne '-') { if ( $stats and ! -e $file ) { print STDOUT "Enabling MSP statistics file($file).\n"; open 'STATS', ">$file"; close 'STATS'; my $gid = getgrnam('smmsp'); chown '0', $gid, $file; chmod 0660, $file; } elsif ( ! $stats and -e $file ) { print STDOUT "Disabling MSP statistics file($file).\n"; unlink $file; }; }; };