AnonSec Shell
Server IP : 92.204.138.22  /  Your IP : 3.147.76.251
Web Server : Apache
System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : internationaljou ( 1019)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/self/root/scripts//build_maxemails_config
#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/build_maxemails_config          Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

package scripts::buildMaxEmailsConfig;
use strict;
use warnings;

use Cpanel::EmailTracker ();
use File::Basename       ();
use Getopt::Long         ();

main() if not caller();

sub main {

    my %opts;
    Getopt::Long::GetOptions( \%opts, qw(help) ) or die usage();
    if ( $opts{'help'} ) {
        usage();
        return 0;
    }
    Cpanel::EmailTracker::build_maxemails_config();
    return;
}

sub usage {
    my $b = File::Basename::basename($0);

    print <<"END";

Usage: `$b [options]`

This script is used to set the max hourly rate limits on
emails per domain to the value `maxemailsperhour` set in
/var/cpanel/cpanel.config. `$b` is automatically called as part of upcp
maintenance.

Options:

   --help          Print this help information to standard output

END

    return 0;
}

1;

Anon7 - 2022
AnonSec Team