File manager - Edit - /usr/local/cpanel/install/KamRules.pm
Back
package Install::KamRules; # Copyright 2025 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. use cPstrict; use Whostmgr::TweakSettings::Mail (); use parent qw( Cpanel::Task ); our $VERSION = '1.0'; =head1 DESCRIPTION Re-enable KAM rules if they were previously enabled, and clear out old symlinks. =over 1 =item Type: Fresh Install =item Frequency: once =item EOL: never =back =cut exit __PACKAGE__->runtask() unless caller; sub new { my $proto = shift; my $self = $proto->SUPER::new; $self->set_internal_name('kamrules'); return $self; } sub perform { my $self = shift; $self->do_once( version => '11.132_kamrules', eol => 'never', code => sub { # KAM rules are enabled if the symlink exists. # Transfer Tool might copy the file instead of symlinking it. my $kam_config = '/etc/mail/spamassassin/KAM.cf'; my $kam_enabled = ( -e $kam_config || -l $kam_config ) ? 1 : 0; Whostmgr::TweakSettings::Mail::configure_kam_rulesets($kam_enabled); } ); return 1; } 1; __END__
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings